今天安装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.
同样,在wampalias下找到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>
重启,搞定!
【段子】我一朋友和她男朋友分手后QQ签名就改成了“两个月,成功甩掉63kg”。。。。