Help please.
Setup: RH EL3, PHP 4.3.5, Apache 1.3.29 running as user "nobody".
Have a bash script named shell_script.
Telnet to server as user "nobody" ("nobody" having been given /bin/bash
as temp shell), can run this script from command line, no problems.
Created a php script including the line:
system ("/path/to/shell_script");
but get error message in apache error logs:
/bin/bash: /root/.bashrc: Permission denied
Appears that PHP is using root environment rather than "nobody" env?
phpinfo seems to list env vars for root under the "Environmen t" section.
Will compiling PHP as "nobody" instead of root solve or cause other
probs?
Geoff M
Setup: RH EL3, PHP 4.3.5, Apache 1.3.29 running as user "nobody".
Have a bash script named shell_script.
Telnet to server as user "nobody" ("nobody" having been given /bin/bash
as temp shell), can run this script from command line, no problems.
Created a php script including the line:
system ("/path/to/shell_script");
but get error message in apache error logs:
/bin/bash: /root/.bashrc: Permission denied
Appears that PHP is using root environment rather than "nobody" env?
phpinfo seems to list env vars for root under the "Environmen t" section.
Will compiling PHP as "nobody" instead of root solve or cause other
probs?
Geoff M
Comment