Skip to content


Apache Error: Client denied by server configuration

Apache 2.0 changed the default DocumentRoot permissions to be very restrictive. While I can’t argue this is a better security paradigm than less restrictive default permissions, in the real world upgrading a server with 300+ domains, it can be a pain to script permissions changes in all of the config files.

<Directory />
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

Change the default permissions to be less restrictive with this instead:

<Directory />
    AllowOverride None
    Order Deny,Allow
</Directory>

Popularity: 67% [?]

Posted in SysAdmin.


5 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. TDavis says

    Terrific fix. Many thanks.

  2. moecklund says

    Lovely lovely lovey
    That was it
    thx!

  3. Gazbrad says

    At last! Thank you very much for this info.

    I’m doing some Apache/PHP/mySQL tutorials and not being able to start my personal web pages for testing was driving me insane. All is well with the world now and I can stick my virtual hair back onto my head.

  4. mao says

    thanks a lot . You save my job. I have confused with this error for a week, try to solve it from google but always fail. Until I find the right solution from you. Thank you guy!

Continuing the Discussion

  1. Permission denied when accessing Sites directory on a Mac - paulcarvill.com linked to this post on 6/18/2009

    [...] thanks to Damon Parker. See his site for an explanation of why you need to fix this in the first [...]



Some HTML is OK

or, reply to this post via trackback.