安装了wamp,为什么还是不能访问localhost

2024-11-15 20:04:38
推荐回答(1个)
回答1:

# onlineoffline tag - don't remove
Order Deny,Allow
Deny from
all
Allow from 127.0.0.1



把最后两行改为

# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all



记得重启!搞定!

如果访问phpmyadmin的时候不能访问,出现:You don't have permission to access
/phpmyadmin/ on this server.

同样,在wamp\alias下找到phpmyadmin.conf,




Options Indexes
FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from
all
Allow from 127.0.0.1


改为


Options Indexes
FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from
all


重启,搞定!