Apache Error – Forbidden You Don’t have Permission to access this Site

Return to Snapwhole.com Main Page


This happens when you try to access a directory that is not setup in Apache2

Its easy to fix….

sudo nano /etc/apache2/apache2.conf

add these lines

<Directory /var/www/”mysite”>

Options FollowSymLinks

Allow Override All

Order deny,allow

Allow from all

</directory>

Cntl-o to save, Cntl-X to exit Nano

systemctl restart apache2

Test to ensure it working, if its not working, check that you entered the correct directory, fix and restart as necessary

Return to Snapwhole.com Main Page


Loading

Leave a Reply