Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to change my document root in apache so I can start a new project and keep an old one available so I can reference the files. Whenever I try to change the document root, though, I get a 403 Forbidden error.

It seems like I've tried EVERYTHING. In the httpd.conf file, I change the document root line and the line in brackets:

DocumentRoot "/Full/Path/To/Root"
<DIRECTORY /Full/Path/To/Root /> I'm not looking at the file right now, but I've changed this part too

I'm putting the new root directory in the same location as the default, so those permissions should be OK. I've changed the root directory's permissions to 777 and 744 and it still won't work. I've been spending a lot of time looking for a working solution, but so far, nothing has worked.

In the apache error logs, the message coming up says "Permission denied due to server configuration" (when I get the chance to find the exact message, I'll be sure and post it.)

Any help is very appreciated. I'm running Mac OS Lion with Apache v2 and php 5.5 (if that matters).

Edit: The error in the error log says [Mon Jul 22 14:43:38 2013] [error] [client fe80::1] client denied by server configuration: /Library/Webserver/CustomServer/

share|improve this question
File permissions on the target {directory, index file}? – voretaq7 Jul 22 '13 at 20:37
The directory's permissions right now are drwxr-xr-x but I've had it set so everyone has read, write, and execute access. The index.html file is set to -rw-r--r-- – David Jul 22 '13 at 21:27
I just changed the directory's permissions to 707 (like what the default doc root) is and it still is throwing a 403. – David Jul 22 '13 at 21:35

Ok, after more tinker with the httpd.conf file, I changed the <DIRECTORY > tab to say allow from all instead of deny from all. I'm not looking at the file right now, so I can't remember exactly what the tag says, but I can look it up if anyone else needs to know exactly.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.