Apache Localhost 403 Forbidden with macOS Sierra [closed]

Here’s the steps I followed to fix this:

Go to /private/etc/apache2
Open httpd.conf.bak, copy the contents, overwrite httpd.conf with it then save

In httpd.conf, change

Options FollowSymLinks Multiviews

to

Options FollowSymLinks Multiviews Indexes

Change

DocumentRoot "/Users/username/Sites"
<Directory "/Library/WebServer/Documents">

to

DocumentRoot "/Users/username/Sites"
<Directory "/Users/username/Sites">

Then save

Check the /users/ directory and go to your *.conf file and check it is similar to below:

<Directory "/Users/username/Sites/">
Options Indexes MultiViews
AllowOverride All
# OSX 10.10 / Apache 2.4
Require all granted
</Directory> 

Then run sudo apachectl restart

That should then work 🙂

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)