访问localhost显示You don't have permission to access / on this serv

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Yiright/article/details/53619715

在安装wampserver 2.2 时安装好后启动服务器,访问localhost显示You don't have permission to access / on this server.  

造成这个问题的原因是Apache 的http.conf内的默认配置是 

# onlineoffline tag -

 don't remove Order Deny,

Allow Deny from all

 Allow from 127.0.0.1 只允许127.0.0.1访问,点击wampserver图标让后点击Putonline,http.conf内的以上默认配置自动修改为 # onlineoffline tag - don't remove Order Allow,Deny Allow from all 现在localhost可以访问了。

同样phpMyadmin在localhost下不能正常访问,

解决方法: 

点击根目录下的alias目录,打开phpmyadmin.conf配置文件,

和上面修改http.conf一样把 Deny from all Allow from 127.0.0.1 修改为 Allow from all

展开阅读全文

没有更多推荐了,返回首页