You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lars Nielsen <la...@mit-web.dk> on 2010/03/30 18:33:14 UTC

[users@httpd] VirtualHost with different users?

Hi,

Is there a way that I can just add a normal user to my system and then
run a virtual host as that user?

Sys: Debian lenny
apache 2.2.9
php 5.3.1

regards

Lars Nielsen
lars@mit-web.dk


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] VirtualHost with different users?

Posted by Jonas Eckerman <jo...@frukt.org>.
On 2010-03-30 18:33, Lars Nielsen wrote:

> Is there a way that I can just add a normal user to my system and then
> run a virtual host as that user?

Thowthoutgt:

1: Why? If you just want PHP and CGI applications to run as that user, 
check out suexec  and running PHP as fastcgi.

2: We're using mpm-itk to do this on a couple of systems. It's a MPM 
based on prefork made for just this purpose. It works fine here.

regards
/Jonas
-- 
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] VirtualHost with different users?

Posted by Nilesh Govindarajan <li...@itech7.com>.
On 03/30/2010 10:03 PM, Lars Nielsen wrote:
> Hi,
>
> Is there a way that I can just add a normal user to my system and then
> run a virtual host as that user?
>
> Sys: Debian lenny
> apache 2.2.9
> php 5.3.1
>
> regards
>
> Lars Nielsen
> lars@mit-web.dk
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See<URL:http://httpd.apache.org/userslist.html>  for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

SuExec. Read the docs for SuExec.

-- 
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org