Could not open input file
Posted: Mon Jul 12, 2021 2:42 pm
Hi,
I set up an openvpn server with username/password authentication by adding auth-user-pass-verify line as below
auth-user-pass-verify "/usr/bin/php /home/www/domains/openvpn/scripts/login.php" via-env
I start the openvpn services by "sudo systemctl start openvpn-server@server.service". when I try to login, the log file complains "Could not open input file: /home/www/domains/openvpn/scripts/login.php", and the authentication fails.
I tried both
user nobody
group nobody
and
user root
group root
All have the same error. The /home/www/domains/openvpn/scripts/login.php exists.
I then run openvpn from command line as below, everything works perfectly.
sudo /usr/sbin/openvpn --config /etc/openvpn/server.conf
Can anyone show me how to handle this problem?
Thank you.
I set up an openvpn server with username/password authentication by adding auth-user-pass-verify line as below
auth-user-pass-verify "/usr/bin/php /home/www/domains/openvpn/scripts/login.php" via-env
I start the openvpn services by "sudo systemctl start openvpn-server@server.service". when I try to login, the log file complains "Could not open input file: /home/www/domains/openvpn/scripts/login.php", and the authentication fails.
I tried both
user nobody
group nobody
and
user root
group root
All have the same error. The /home/www/domains/openvpn/scripts/login.php exists.
I then run openvpn from command line as below, everything works perfectly.
sudo /usr/sbin/openvpn --config /etc/openvpn/server.conf
Can anyone show me how to handle this problem?
Thank you.