Friday 29 November 2013

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server IP ADDRESS valid,localhost accept

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server
IP ADDRESS valid,localhost accept
Change the file content of c:\wamp\alias\phpmyadmin.conf to the following.
<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>
Restart your Apache server after making these changes.

Smaat solution is :  Have to do task in 2 files in different places.

c:/wamp/apps/phpmyadmin4.0.  
   
    <Directory "c:/wamp/apps/phpmyadmin4.0.4/">
 
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    #Deny from all
    Allow from all
</Directory>

C;\wamp\bin\apache\apache2.4.4\conf\extra

Add this at the end of this file

<VirtualHost *:80>
    DocumentRoot "C:/wamp/www"
    ServerName localhost
</VirtualHost>

No comments:

Post a Comment