Hi
I am trying to run a shell script within a perl cgi script , however it is
not getting executed .
cat /vae/www/cg-bin/syscscript.pl
:
:
my $openvpn = `ps aux |grep openvpn |grep -v grep`;
unless ( $openvpn) {
system(" /usr/sbin/openvpn /etc/openvpn/DC.ovpn ");
}
-----
cat
When i run this file on command line ( perl /vae/www/cg-bin/syscscript.pl )
it works fine , but when i run it in the browser it does not execute i
have even given root execution permission and apache ownership ( chmod
4755 /usr/sbin/openvpn ; chown -R apache:apache /usr/sbin/openvpn
/etc/openvpn ) but still .... it gives me the following error
Nov 9 16:47:30 linux-qa openvpn[22812]: OpenVPN 2.1_rc4
x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] built on Feb 13 2011
Nov 9 16:47:30 linux-qa openvpn[22812]: WARNING: file
'/etc/openvpn/passwdfile' is group or others accessible
Nov 9 16:47:30 linux-qa openvpn[22812]: WARNING: No server certificate
verification method has been enabled. See http://openvpn.net/
howto.html#mitm for more info.
Nov 9 16:47:30 linux-qa openvpn[22812]: Cannot load certificate file
agnello.crt: error:02001002:system library:fopen:No such file or
directory: error:20074002:BIO routines:FILE_CTRL:system lib:
error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib
Nov 9 16:47:30 linux-qa openvpn[22812]: Exiting
if any one has any idea it would be of great use , i have heard that people
generally create wrapper to work around this , but i dont know C .
--
Regards
Agnello D'souza