OSX El Capitan - Apache 403 Forbidden

delphirules picture delphirules · Oct 1, 2015 · Viewed 22.8k times · Source

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?

Answer

uiuxhub picture uiuxhub · Oct 19, 2015

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!