为了账号安全,请及时绑定邮箱和手机立即绑定

wamp安装完后,也按教程配置了,访问localhost和127.0.0.1出现下列提示,应怎么调整?

wamp安装完后,也按教程配置了,访问localhost和127.0.0.1出现下列提示,应怎么调整?

PHP
黑与白的3言2语 2016-05-29 20:55:50
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'


查看完整回答
2 反对 回复 2016-05-30
?
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 反对 回复 2016-05-30
  • 3 回答
  • 1 关注
  • 3711 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信