Re: Apache virtualhosts with different user
| From: | Philip Hallstrom | Date: | Wed, 09 Jan 2002 05:28:07 +0000 |
| Subject: | Re: Apache virtualhosts with different user | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79862@lists.php.net to get a copy of this message | ||
You could also run separate instances of the httpd binary with different
configs telling them what ip/port to bind/listen to...then run the server
as that user...
not very efficient for a lot of users, but it would work for a small set.
On Wed, 9 Jan 2002, Rich Buggy wrote:
>
> > if I define 'user' in virtualhost section of apache's httpd.conf, then my
> > cgi scripts will be running as 'user' if suexec has been set up correctly.
> > It's okay. But how can I tell apache to run the whole virtualhost as
> > 'user'? Including accessing html files, and especially php.
>
> In 1.3 you can't. Last I heard version 2 was supposed to include something
> that would let you do this.
>
> > Is it possible somehow? Having read the apache docs, I haven't found
> > anything useful, but there must be a solution if I don't want my users to
> > run php scripts as www-data.
>
> Run PHP as a cgi instead of a module. The PHP docs tell you how
>
> Rich
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>