You don't have permission to access this resource error in local host folders code example Example: You don't have permission to access this resource. $ sudo systemctl restart apache2