While trying to browse a website, the error
'403 Forbidden' appears:
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/domain.tld/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://domain.tld/
Apache does not have permission to read the vhost folder.
apacheuser to the
# usermod -a -G psaserv apache
If the above steps do not help, change folder permissions to 775:
# chmod 775 `/var/www/vhosts/domain.tld/`
DocumentRoot of website
Finally, check that the domain has the correct ownership. It should look like:
# ls -ld /var/www/vhosts/domain.tld drwx--x--- 5 ftp_user psaserv 4096 Aug 30 08:33 /var/www/vhosts/domain.tld
Note: If your server is running on Proxmox VE, this configuration will not work as expected. Please contact Proxmox support for further assistance.