> I'm running Suse 7.0 as root, apache runs as wwwrun, so i guess the php
> calls also run as wwwrun.

Not only does php run as wwwrun, it also runs with a different shell,
environment, and most notably path than you do when you log in.

You should probably just get in the habit of providing full paths to
system/exec for any binary or file involved.

If the shell scripts are relying on the current working directory or other
environment variables, you'd better be sure you have them set up.

You can use PutEnv() in PHP to set them, or alter the wwwrun user's
.profile/.bashrc or whatever it is using, if it even has one...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to