- Plesk for Linux
While trying to browse a website, the error
CONFIG_TEXT: 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:
CONFIG_TEXT: (13)Permission denied: /var/www/vhosts/example.com/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://example.com/
CONFIG_TEXT: (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
- Make sure that PHP Handler is set to FastCGI in Domains > example.com > Hosting Settings
- Connect to the server via SSH
Change domain's permissions to correct:
# chown systemuser.psaserv /var/www/vhosts/example.comwhere <systemuser> is an owner of the subscription:
# chown systemuser.psaserv /var/www/vhosts/example.com/httpdocs
# chown -R systemuser.psacln /var/www/vhosts/example.com/httpdocs/*
and example.com is the name of an 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
- Run plesk repair utulity:
# plesk repair fs -y
Note: If the server is running on Proxmox VE, this configuration not going to work as expected. Please contact Proxmox support for further assistance.