本文主要是介绍安装wamp后,127.0.0.1可以访问,localhost不能访问,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天安装wamp后,127.0.0.1可以访问,localhost不能访问,出现
“error
You don't have permission to access”的错误,
网上查了下,很多方法都不行,最后用这个方法解决:
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
把最后两行改为
# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
</Directory>
记得重启!搞定!
如果访问phpmyadmin的时候不能访问,出现:You don't have permission to access /phpmyadmin/ on this server.
同样,在wamp\alias下找到phpmyadmin.conf,
把
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
改为
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
重启,搞定!
这篇关于安装wamp后,127.0.0.1可以访问,localhost不能访问的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!