1LT John W. Holmes wrote:
Are PHP script supposed to run as the user or as the web server?
Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP
scripts run as apache, not as the user. I'm wonder if I can run the
scripts as the user and how do I fix this?

As a module, that's the way it is. I think you can install it as a CGI and
it'll run as the user.


coments valid for apache/linux

if you run the module all the php scripts run as the user/group set in apache conf

if you run in cgi mode you can set a different user/group for each virtual host (running php in cgi mode is slower)

for security scripts should be run as a user with few system priveleges (ie the apache user)

--

Sean




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to