Permission denied when accessing Sites directory on a Mac at paulcarvill.com, the home of Paul Carvill on the web

link: paulcarvill at flickr

paulcarvill.com

Hi, I'm Paul Carvill and I'm a web developer. I am Head of Interface Development at LBi, Europe's largest digital agency.

I also like walking, cooking, Bollywood and rock 'n' roll.

Permission denied when accessing Sites directory on a Mac

posted: Thursday, June 18th, 2009 at 1:43 pm

Solution:

Open your Apache conf file:

sudo vi /private/etc/apache2/httpd.conf

…and relax the permissions somewhat by commenting out (with a #) or removing the ‘deny from all’ line:

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

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

Tags:

One Response to “Permission denied when accessing Sites directory on a Mac”

  1. [...] semtantic text description options are so granular I had to spend several minutes pondering whether my previous code snippet about relaxing Apache permissions warranted <code>, <kbd>, or <samp> elements, or a combination of all [...]