Magento – Forbidden 403

Symptoms: When you attempt to browse to your Magento installation or Magento directory you receive a 403 Forbidden Error.

Solution: This is a normal web server response when the requesting user does not have the rights to access the content it is trying to access. To resolve this issue check the following information:

1. Check the owner of the folder for /httpdocs/ and all subdirectories for the magento installation. The correct owner should be as follows:  username:usergroup

In a Plesk 11.5 hosted environment this would be:  yourusername:psaserv

If the user is root (which often happens with command line installation) change the owner of the files in httpdocs or the subfolder with the magento installation using SSH and type:  chown -R yourusername:psaserv httpdocs/*

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden

Symptoms:Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden

Either the .htaccess file is missing the followsymlinks option or another .htaccess is overriding the options.

NOTE: There are TWO Solutions to this problem, I recommend trying Solution #2 first.

Solution #1:

Add: 

Options FollowSymLinks

Above:
RewriteEngine On
RewriteBase /

(Note: you must have “AllowOverride Options” in effect to permit the use of the “Options” directive in .htaccess files.)

If you are trying to access a pearl type file in a cgi-bin or other directory that does not require the rewrite rule, add an .htaccess file with RewriteEngine off.  This will prevent the above error from occurring.

It is best to add this solution to the httpd.conf file if you have access, the how-to on that file can be found here:

http://httpd.apache.org/docs/current/howto/htaccess.html

 Solution #2:

Modify the dir.conf in apache.

Step 1: From root SSH: vi /etc/apache2/mods-enabled/dir.conf

Step 2 Change:

DirectoryIndex at_domains_index.html index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml index.cfm

to:

DirectoryIndex at_domains_index.html index.html index.cgi index.php index.pl index.xhtml index.htm index.shtml index.cfm

A Simple change in order fixes the symlinks issue.

Special Thanks to XAMeLeOH for posting this for the community.