I get the "Forbidden error" when trying to access a site

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Windows
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:53:27 UTC

Modified:

2016-12-21 19:28:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

I get the "Forbidden error" when trying to access a site

Symptoms

I get the "Forbidden" error when trying to access a site

Resolution

In general, this error means that the Apache process cannot access some file/directory because the system the user's Apache server is running under (usually httpd or www ) has no read/search permissions or access is forbidden by Apache settings. The reason may be one of the following:

  • There is no index file in this directory, or the index file is not listed in the DirectoryIndex directive in the Apache configuration file.

  • There are Inhibitory settings in the .htaccess file in the folder

Find out what user Apache is run under. For example, with the ' ps -axu | grep httpd ' command, the user name can be found in httpd.conf in the User directive. Check if this user has the read permission for the needed file and the execute/search permission for every folder in a path to the file.

If you see the error below in the Apache error_log ...

pcfg_openfile: unable to check htaccess file, ensure it is readable.

... then make sure that the Apache user is included in the psaserv group:

# grep psaserv /etc/group
psaserv:x:2523:apache,psaftp,psaadm
Have more questions? Submit a request
Please sign in to leave a comment.