Re: php as user apache
| From: | Travis Low | Date: | Thu, 03 Jun 2004 19:59:08 +0000 |
| Subject: | Re: php as user apache | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187575@lists.php.net to get a copy of this message | ||
John W. Holmes wrote:
From: "Nirnimesh" <nirnimesh@students.iiit.net>Is there a way to cause PHP scripts to run as the user and group associated with the apache virtual host? cheers, Travis -- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>I have a problem regarding using my php scripts to write files to my account. We know that php runs as user apache. Now giving write permissions to apache for uploading files to my account essentially means that I have to give write permissions for apache (i.e. o+w). Now, does that not mean that any user which is can run php scripts can have access to my account?Yes (well, has access to that directory).Is there any configuration setting that I'm missing.Safe mode, open_basedir, etc.