http://localhost/~admin/ gets a 403
- by Pavan Katepalli
When I go to localhost/~admin/ or 127.0.0.1/~admin/ my browser says:
"Forbidden
You don't have permission to access /~admin/ on this server."
How do I change this?!??!?! It's driving me nuts!
when I go to localhost or 127.0.0.1/ my browser says: "It Works!".
I'm running mac osx 10.8.
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
This is my /etc/apache2/users/admin.conf:
<Directory "/Users/admin/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>