Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 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/

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? – user495470 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

You must log in to answer this question.

Browse other questions tagged .