Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 978
Nistor Alexandru Avatar asked Dec 03 '11 10:12

Nistor Alexandru


People also ask

How do you fix you don't have permission to access phpMyAdmin on this server?

Change the file content of c:\wamp\alias\phpmyadmin. conf to the following. You should remember to set the Allow Directive to allow it from your local machine for security purposes. The directive Allow from all is insecure and should be limited to your local machine.

How do you fix forbidden you don't have permission to access on this server?

You don't have permission to access on this server error message is due to the IP address allocated by your Internet Provider. Try switching to another browser if you get this error message on your PC. Sometimes you need to adjust your extensions or browser settings to fix this error.

How do I access phpMyAdmin in Wamp?

From the WAMP start page (http://localhost) under “Tools”, start phpMyAdmin (or find the WAMP icon in the notification area, left click to open and select phpMyAdmin).


2 Answers

Change the file content of c:\wamp\alias\phpmyadmin.conf to the following.

Note: You should set the Allow Directive to allow from your local machine for security purposes. The directive Allow from all is insecure and should be limited to your local machine.

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">     Options Indexes FollowSymLinks MultiViews     AllowOverride all         Order Deny,Allow         Allow from all </Directory> 

Here my WAMP installation is in the c:\wamp folder. Change it according to your installation.

Previously, it was like this:

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">     Options Indexes FollowSymLinks MultiViews     AllowOverride all         Order Deny,Allow     Deny from all     Allow from 127.0.0.1 </Directory> 

Modern versions of Apache 2.2 and up will look for a IPv6 loopback instead of a IPv4 loopback (your localhost).

The real problem is that wamp is binding to an IPv6 address. The fix: just add Allow from ::1 - Tiberiu-Ionuț Stan

<Directory "c:/wamp22/apps/phpmyadmin3.5.1/">     Options Indexes FollowSymLinks MultiViews     AllowOverride all         Order Deny,Allow     Deny from all     Allow from localhost 127.0.0.1 ::1 </Directory> 

This will allow only the local machine to access local apps for Apache.

Restart your Apache server after making these changes.

like image 167
Akhil Thayyil Avatar answered Oct 06 '22 09:10

Akhil Thayyil


You have to just check whether your WAMP server is online or not.

To put your WAMP server online, follow these steps.

  1. Go to your WAMP server notification icon (in the task bar).
  2. Single click on the WAMP server icon.
  3. Select last option from the menu, that is, Put Online
  4. Your server will restart automatically (in the latest versions only). Otherwise, you have to restart your server manually.

And you are DONE...

like image 40
Mehul Avatar answered Oct 06 '22 07:10

Mehul