You don't have permission to access / on this server.
Apache/2.4.17 (Win64) PHP/5.6.16 Server at 127.0.0.1 Port 80
黑与白的3言2语
浏览 3712回答 3
3回答
竹马君
在/wamp/alias下的phpmyadmin.conf文件中,文档开始的几行就写了如下的注释:# to give access to phpmyadmin from outside
# replace the lines
#
#Require local
#
# by
#
# Require all granted
#到这里,答案就很明显了。于是找到apache2.4.9\conf\httpd.conf文件,把里面<Directory>节点的最后一行的:将'Require local'替换为'Require all granted'
在httpd.conf文件下找到这段:<span style="font-size: x-small;">#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory></span> 将之修改为<span style="font-size: x-small;"># 允许指向外部的目录进行访问
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory></span> 然后重启apache,就ok了。