Re: Running virtualhosts under different users

From: Date: Sat, 22 Sep 2001 04:22:34 +0000
Subject: Re: Running virtualhosts under different users
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68280@lists.php.net to get a copy of this message
suExec will only work with PHP running as CGI, not a Module. You *CAN* have PHP in Apache "twice" with different extensions (.php and .phpcgi) and corresponding mime-type (application/x-httpd-php and application/x-httpd-phpcgi) and then the one site will have to use .phpcgi for its files, or you could even do a ForceType or somesuch in httpd.conf to make that site always use PHP CGI... Probably better to change the extension of the specific single *page* that needs suExec, for performance reasons. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com 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 ----- Original Message ----- From: Adam Plocher <aplocher@erepublic.com> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Friday, September 21, 2001 11:19 AM Subject: Running virtualhosts under different users > I realize this is more of an apache question, not a php question, but I > thought you guys of all people, would be able to help me... > > I have an apache server setup, hosting a number of sites. I need one site > to be ran under a different user so it can execute shell commands via > system() under that user. Does anybody know how I can do this? I installed > the suexec module for apache, and either it doesn't work the way I need it > to, or I just misconfigured it. > > I'm baffled, any information would be greatly appreciated. > > Thanks > -Adam >

« previous php.general (#68280) next »