I get the "Forbidden" error when trying to access a site
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
.htaccessfile 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
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