WampServer服务器多站点配置后打不开phpMyAdmin的解决办法 (Forbidden You don't have permission to access / on this server.解决方法)
1、首先找到wampserver
安装目录下面的httpd.conf
配置文件 文件路径:电脑磁盘:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf
打开httpd.conf
配置文件,找到下面代码:
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
将这段代码修改为:
# onlineoffline tag - don't remove
Order Allow,Deny
Allow from all
2、保存之后重启wampserver服务即可。
(Forbidden You don't have permission to access /phpmyadmin/ on this server. 解决办法)
1、首先找到wampserver安装目录下面的phpmyadmin.conf
配置文件
文件路径:电脑磁盘:\wamp\alias\phpmyadmin.conf
打开phpmyadmin.conf
配置文件,找到下面代码:
<directory alias="" f:="" phpmyadmin3.5.1="" software="" wamp="">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</directory>
将这段代码修改为:
<directory apps="" f:="" phpmyadmin3.5.1="" software="" wamp="">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</directory>
2、保存之后重启wampserver服务即可。