> I noticed today that PHP apps run as the WWW user, not the User/Group
> specified in httpd.conf for virtualhosts.
>
> (Module version of PHP running in Apache 1.3.17).
>
> Is there any way to get the PHP module to assume the identity
> similar to the SUexec module will do for CGI?
Not in Apache 1.3.x
User/Group inside Virtual is just ignored, I think.
Apache 2.0 was rumored to have had that on its desired feature list.
Whether it made it into reality, I dunno. (Anybody wants to clue me in
direct email 'twould be welcome.)
fhttpd (a "competitor" to Apache) has that capability if you need it bad
enough to switch to a not-so-well-known but pretty cool software package.
Another option is to run suExec-wrapped PHP as CGI using a different
mime-type for a critical few pages that need User/Group settings. Those
particular pages take the CGI performance hit, but may be not horrible for
your overall server needs. It would not even be terribly difficult to
script the changes to httpd.conf and set this up for a moderately sized
Virtual hosting environment, I should think... The added value of being
able to run PHP as a specific user for certain pages could be quite a "deal"
for some power-users.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
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]