Article ID: 125857, created on Jun 11, 2015, last review on Oct 7, 2016

  • Applies to:
  • Plesk Automation

Symptoms

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/

Cause

Apache does not have permission to read the vhost folder.

Resolution

CentOS:

  1. Add the apache user to the 'psaserv' group:

    # usermod -a -G psaserv apache
    

If the above steps do not help, change folder permissions to 775:

# chmod 775 `/var/www/vhosts/domain.tld/`

Note: /var/www/vhosts/domain.tld/ is DocumentRoot of website domain.tld

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.

Search Words

Ошибки в панели PPA и не работает apache на сервис ноде

forbidden

403

e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF