Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running mac osx 10.8.

when I go to localhost or my browser says: "It Works!".

However when I go to localhost/~admin/ or my browser says:


You don't have permission to access /~admin/ on this server."

How do I change this?!??!?! It's driving me nuts!

This is my /etc/apache2/users/admin.conf:

<Directory "/Users/admin/Sites/">
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all

I created aliases in my .bash_profile file so that I can start, restart and stop Apache quickly:

alias startApache="sudo apachectl start"
alias stopApache="sudo apachectl stop"
alias restartApache="sudo apachectl restart"

In my /etc/apache2/httpd.conf file I turned on php5:

LoadModule php5_module        libexec/apache2/libphp5.so

I also made sure to change the permissions for my admin.conf file with this command in terminal:

sudo chmod 644 username.conf
share|improve this question
Is your username actually admin? Does ~/Sites/ exist? –  ؘؘؘؘ Dec 7 '12 at 21:48
yeah my username is admin lol I typed ~/Sites/ in terminal and it gave me this so it exists I think: -bash: /Users/admin/Sites/: is a directory –  Pavan Katepalli Dec 7 '12 at 22:06
@ekaj I tried that and it didn't work –  Pavan Katepalli Dec 7 '12 at 22:22
@ekaj I also made sure to restart apache after doing chmod 755 –  Pavan Katepalli Dec 7 '12 at 22:23
Hey guys help!!! It's still not working :( –  Pavan Katepalli Dec 7 '12 at 22:35

Your Answer


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

Browse other questions tagged or ask your own question.