Re: php under user permissions

From: Date: Sun, 30 Jan 2005 11:29:34 +0000
Subject: Re: php under user permissions
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-15367@lists.php.net to get a copy of this message
On Sat, 2005-01-29 at 23:41, Marian wrote: > > > I’m posting this again. > > > ______________________________________________________________________ > > From: Marian [mailto:smarian@rdslink.ro] > Sent: Friday, January 28, 2005 02:15 > To: 'php-install@lists.php.net' > Subject: > > > > > Hello all. > > > > I need apache/php run under user’s permissions, for example if i type > http://xx.yy.zz/~user1, then i want apache/php run under uid of > user1. > How can this be done? > > > > Thanks, > > Marian Apache httpd runs as a single user. If on unix and using CGI then the setuid feature may be of interest (http://httpd.apache.org/docs-2.0/suexec.html). For PHP, using "safe mode" (http://www.php.net/manual/en/features.safe-mode.php) is probably what you need. Hope this helps Chris

« previous php.install (#15367) next »