Re: mkdir permissions and AllowOverride
| From: | (Lutz Horn) | Date: | Thu, 16 Aug 2001 18:10:00 +0000 |
| Subject: | Re: mkdir permissions and AllowOverride | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11457@lists.php.net to get a copy of this message | ||
Hi Taylor,
* Taylor Fletcher [Thu, 16 Aug 2001 09:16:23 -0700]:
> Im getting a permission denied when I try to mkdir. What I can deduce
> is that PHP is running under the user nobody through apache. I need to
> be able to add the web root to the directories that user nobody can
> use.
The DocumentRoot option is set for Apache in your httpd.conf. If you are
running some version of *nix, you can either add user nobody to the
group the DocumentRoot belongs to, or you can use chown to change the
owner of this directory to nobody.
> There is a default line in the httpd.conf that has AllowOveride set to
> None. If I change this to AllowOverride to All, will that fix the
> problem? Is that recommended?
No, this Apache option has nothing to do with Apache/PHP being able to
write to files or directory. It governs which Apache options can be
overriden in sub directories.
Lutz
--
** Please read these useful resources. **
Java Anon Proxy: http://anon.inf.tu-dresden.de/
Attribution FAQ: http://www.math.fu-berlin.de/~guckes/faq/attribution.html
Signature FAQ: http://www.math.fu-berlin.de/~guckes/message/sig.etiquette.html