Most of the times when you install WAMP server you may face an error when try to open local host by giving “localhost/your_website” in your browser

403 Forbidden: You don’t have permission to access / on this server.

this can be partial (means it is possible with some browsers you can access local host with “localhost/your_website” while in some you are facing 403 error and using 127.0.0.1 to access the local host.

Files Changing in this Tutorial

[C:\wamp\alias]

phpmyadmin.conf
sqlbuddy.conf
webgrind.conf

[C:\wamp\bin\apache\apache2.2.22\conf]

httpd.conf

 

Step 1:

Go to C:\wamp\alias

You will see 3 files

phpmyadmin.conf
sqlbuddy.conf
webgrind.conf

Step 2:

Open All the three files and check them 1 by 1

you will find this written:

AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

Change the above mentioned lines with the following lines:

AllowOverride all
Order Allow,Deny
Allow from all

Step 3:

Now when you have changed all 3 files mentioned above and saved them, Go to C:\wamp\bin\apache\apache2.2.22\conf. Find and open the file named httpd.conf

find this line:

# onlineoffline tag – don’t remove

below this you find:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

Change above lines to this:

Order Allow,Deny
Allow from all
Allow from 127.0.0.1

After saving restart your WAMP server and browser, now will be able to access local host using localhost/ or http://localhost