[solved] problem executing external script from php
Posted: Wed Sep 21, 2005 10:16 pm
i'm trying to execute a program through php using backticks (or shell_exec) and it's not working.
it just returns null and the program doesn't run, no errors.
this is the code:
and i get one line in the error_log that says
the 'fop.sh' script is 755 and the directory is owned by apache (which is what the webserver runs as)
the server is fedora 4 and apache was installed using yum
SELinux is disabled
any ideas?
it just returns null and the program doesn't run, no errors.
this is the code:
Code: Select all
<?php
echo shell_exec('/opt/fop/fop.sh simple.fo simple.pdf');
?>Code: Select all
sh: /opt/fop/fop.sh: Permission deniedthe server is fedora 4 and apache was installed using yum
SELinux is disabled
any ideas?