Sunday, May 11, 2014

You don't have permission to access / on this server on wamp

After WAMP server installation, when I tried to access it using URL

http://localhost:8080

it through me below message

"You don't have permission to access / on this server on wamp"

This message is appeared when you have an Operating System (Windows  8, Window 7, etc.) which is IPv6 compatible. This is because Apache server assumes that it will receive messages from ::1 port while we are only sending it from 127.0.0.1. To resolve the issue, you need to make changes in httpd.conf file (C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf)  and in phpmyadmin.conf (C:\wamp\alias\phpmyadmin.conf). First you need to replace below line in httpd.conf file

Allow from 127.0.0.1

to

Allow from 127.0.0.1 ::1

Similarly, in phpmyadmin.conf file you need to replace the same line

    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
Deny from all
Allow from 127.0.0.1

to

    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1

After saving the changes in both files, restart the wamp server and now try to access the link "http://localhost:8080" .

Hope that issue is resolved now.

In case if above post resolve your problem then kindly comment to increase the credibility of the post.