redhat, php, and exec

Hill, Greg grhill at
Wed Jan 3 16:13:33 MST 2007

>     I have a php script which uses exec.  When I run it from the
> line as the apache user it works.  when I try to run it through the
> server it doesn't.  No errors or anything not even in the logs.  I'm
> using rhel 4 and php 4.3.9
> Can anyone tell me what's wrong or how to debug this?

Wouldn't you need to be root to exec the apache process?  Or does php
not run inside apache processes like mod_perl?  You should probably fork
the script that uses exec into its own process, if I had to randomly


More information about the PLUG mailing list