win8新裝的wamp,打開瀏覽器輸入localhost就發(fā)現(xiàn)403錯誤,經(jīng)測試輸入127.0.0.1可以正常訪問。
解決方法如下。
打開httpd.conf
搜索Deny from all定位到
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
將Deny from all改為Allow from all
繼續(xù)搜索Deny from all定位到
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
將Deny from all改為Allow from all
如果不能用localhost打開phpmyadmin,請看下面
找到并打開wamp/alias/phpmyadmin.conf
找到
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
將Allow from 127.0.0.1改為Allow from ::1 |