phpapache.htaccesshttpforbiddenhandler

Forbidden You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe


Right now I'm getting this message in a single site of my whole reseller account: Forbidden

You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

It happened all of a sudden. I tried renaming the root htaccess to anything else, and the error is still there, I even tried setting up 744 permissions to the file, still the same thing. Currently the file is using the default files permissions, 644. The error is ocuring at: http://lucrebem.com.br


Solution

  • You need to add a <Directory block to your apache config

    <Directory "/path/to/source/file/directory/www">
        Options Indexes FollowSymLinks
        AllowOverride all
        Require all granted
    </Directory>
    

    This grants the required permission