I know that this has been posted about a ton, but I have spent the last day scouring through answers, trying everything and nothing is working. I've changed permissions, I've looked into the Apache2 logs, I've altered configuration files, and I'm still getting the 403 forbidden error. Here are the apache2. My html files are in /var/www/html
.
I'm not completely sure, but I do recall troubles starting after trying to create user directories using:
sudo a2enmod userdir
Inside the Apache error logs, the only thing on there that could be leading to something is this:
(13)Permission denied: [client myip] AH00035: access to
/folder/data/index.html denied (filesystem path
'/var/www/html/folder/data/index.html') because search permissions are
missing on a component of the path
In my /etc/apache2/sites-available/000-default.conf
, I added the following at the very end:
<Directory /var/www/html>
AllowOverride All
</Directory>
In my apache2.conf
I have the following:
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>
Again, I'm very sorry that I needed to make this thread, but I don't want to continue to copy and paste solutions that could do more harm than good.
/var/www/html
? Also check here for possible solution : superuser.com/questions/882594/…find /var/www -type d -exec ls -lh {} \;
(for directories) and thisfind /var/www -type f -exec ls -lh {} \;
(for files) to be sure.AllowOverride
set toALL
instead ofnone
and this can cause a 403 error sometimes. stackoverflow.com/questions/23171951/… Have you tried any of these other solutions outlined in this post?