ForbiddenYou 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 回答
已采纳
竹马君
TA贡献64条经验 获得超115个赞
在/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'
ADKi
TA贡献7条经验 获得超3个赞
在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了。
- 3 回答
- 1 关注
- 3711 浏览
添加回答
举报
0/150
提交
取消