Alex Rivera | Logout

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server

Asked 2011-12-03T10:15:21.133
287

I am new to WAMP and I have just installed it today.

The setup went well and localhost seems to work, but when I try to access phpMyAdmin I get this error:

Forbidden
You don't have permission to access /phpmyadmin/ on this server.

Why do I get this permission access error with phpMyAdmin?

I am using Windows 7.

Edit
Report

3 Answers

21

If you are on Windows 7 or 8 then Apache might be seeing the connections coming from "::1" which is the IPv6 equivalent of 127.0.0.1.

You can check this by looking in the Apache Access Log (reachable from the WAMP menu)

::1 - - [20/Dec/2012:21:35:04 +0000] "GET /phpmyadmin/ HTTP/1.1" 403 213

The ::1 at the start is the clients address. The 403 at the end is the Access Denied code.

The answers above will remove all restrictions and open phpmyadmin to all, but if you still want to restrict phpmyadmin to your machine only (generally a good idea) then under the line...

Allow from 127.0.0.1

..add the following:

Allow from ::1

(edit: Added suggestion from Nukeface)

answered 2012-12-20T21:56:33.940
2

For Apache 2.4.2 the solution is: in httpd.conf on line 265 change Require none to Require all granted. That's all.

answered 2013-03-04T15:27:55.103
2

I had commented out the ::1 line in my hosts file.

answered 2013-03-28T17:43:53.937

Your Answer