WAMP服务器错误“禁止,您无权访问此服务器上的/phpmyadmin/."

问题描述:

朋友,我以前使用的是XAMP Server,但是当我安装joomla模板时,它会产生很多错误.现在,我安装了WAMP,但是问题是: 1.我可以使用127.0.0.1访问,但不能使用"localhost"访问. 2当我访问phpmyadmin时,出现此错误.

Hi Friends previously I am using XAMP Server but when I install joomla Templates it creates alots of error. Now I installed the WAMP, but the issues are: 1. I can access with 127.0.0.1, but I cant access with "localhost". 2 When i access phpmyadmin i get this error.

禁止访问您无权访问此服务器上的/phpmyadmin/.

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

 Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.4.5/" 

# to give access to phpmyadmin from outside 
# replace the lines
#
#        Order Deny,Allow
#   Deny from all
#   Allow from 127.0.0.1
#
# by
#
#        Order Allow,Deny 
#   Allow from all
#

更改后,它看起来像这样

After changing, it will look like this

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

之后,只需重新启动Wamp

After this just restart Wamp

转到C:\wamp\alias.打开文件phpmyadmin.conf并更改

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

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

问题解决了