Apache unable to access you sites on OS X

Posted on Tuesday 17 April 2007

So you’ve just turned on Apache on OS X. You access http://localhost/ and it works just fine, but http://localhost/~username gives you an ominous 403 - Forbidden error.

Do you have FileVault enabled?

I had the same problem. FileVault seems to have changed the permissions on the home directory. You’ll need to execute:


chmod 701 ~
chmod 705 ~/Sites

Bonus: If you’re wondering how this is automagically mapped, look for UserDir on /etc/httpd/httpd.conf.


1 Comment for 'Apache unable to access you sites on OS X'

  1.  
    March 11, 2008 | 11:28 pm
     

    [...] using PHP or MySQL, read this page. You’ll also need to execute the instructions I outlined some time back if you’re using [...]

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI