Apache refusing to serve with you don’t have permission to access error
Here are things to fix the problem
Have your config in your apache config like this:
ServerName someWebname.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
Options All
AllowOverride All
require all granted
1. Make sure the directory you are accessing has at least 755 permission mode
2. Make sure to restart the server after you change the configs
3. Check if you have .htaccess file with different setting
4. In some cases, make sure the directory is accessible by apache – www-data.