Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX El Capitan - Apache 403 Forbidden

I just upgraded from Yosemite to El Capitan but unfortunately forgot to copy my old httpd.conf and now i need to configure all of its settings again.

I already changed the documentroot to the previous one /users/admin/www, and also configured to release access to this folder:

<Directory "/users/admin/www">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Restarted Apache but even this way I get the 'Forbidden' error when trying to access 127.0.0.1.

What am I'm missing here?

like image 706
delphirules Avatar asked Oct 01 '15 16:10

delphirules


1 Answers

Do the following:

  • Open Terminal
  • Run:

    cd /etc/apache2/
    sudo mv httpd.conf httpd.conf.OLD
    sudo mv httpd.conf~previous httpd.conf
    sudo apachectl restart
    

After spending 3 hours on the issue - this worked for me!

like image 141
uiuxhub Avatar answered Oct 14 '22 08:10

uiuxhub