shell_exec
| From: | Rodney Green | Date: | Wed, 06 Aug 2003 14:07:45 +0000 |
| Subject: | shell_exec | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-158464@lists.php.net to get a copy of this message | ||
Hello. I've been attempting to write a script that will run a shell script
using the shell_exec function and haven't had any success with getting it to
run in the browser. My web server runs as the user 'apache.' I'm able to run
the script successfully from the command line as root but when I run it in
the browser the shell script executes but fails. Is there a way to trace
what is happening when it is being run from the browser to figure out what
the problem is? Any suggestiosn? I've set the permissions of the script to
be executable for anyone.
Thanks,
Rod