- Plesk for Linux
While trying to browse a website, the error
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
The domain's error log
contains the following:
(13)Permission denied: /var/www/vhosts/example.com/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://example.com/
(13)Permission denied: [client 203.0.113.2:39024] AH00529: /var/www/vhosts/example.com/httpdocs/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/vhosts/example.com/httpdocs/' is executable
Apache service does not have proper permissions to
Connect to the server using SSH and run '
plesk repair fs example.com' in bash/Terminal where example.com is affected domain. If the issue persists, do the following:
Find the username that is used by the Apache service. This username is defined in the
Add that user to the
psaservgroup. For example, if the Apache user is
www-data, you would add the user in the
psaservgroup as below:
# usermod -a -G psaserv www-data
Restart web server
# service apache2 restart
- Add the
apacheuser to the
# usermod -a -G psaserv apache
Restart web server
# service httpd restart
If the above steps do not help, change folder permissions to 775:
# chmod 775 /var/www/vhosts/example.com
Finally, check that the domain has the correct ownership. It should look like:
# ls -ld /var/www/vhosts/example.com
drwx--x--- 5 ftp_user psaserv 4096 Aug 30 08:33 /var/www/vhosts/example.com
# ls -ld /var/www/vhosts/example.com/httpdocs
drwx--x--- 5 ftp_user psaserv 4096 Aug 30 08:33 /var/www/vhosts/example.com/httpdocs
Note : If the server is running on Proxmox VE, this configuration will not work as expected. Please contact Proxmox support for further assistance.
In case, of several domains are affected by the issue, fix ownership for their