我試圖設置Xampp進行家庭開發。它的安裝正確,我可以訪問像演示,安全,狀態等xampp頁面,甚至使用phytin-gui來啓動和停止服務器。Xampp:我無法從本地主機訪問phpMyAdmin
但是,當涉及使用訪問phpMyAdmin的「http://localhost/phpmyadmin」我得到了一個錯誤:
Access forbidden!
New XAMPP security concept:
Access to the requested directory is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
我檢查了我的httpd-xampp.conf,似乎是正確的。我試圖改變拒絕所有的允許所有,但沒有工作。
我的主機文件指向localhost到127.0.0.1,這是預計訪問所有xampp文件。
我乳寧XAMPP 1.8.1在Ubuntu 12.04機器
有人說有同樣的問題?我失去了2個小時的谷歌搜索,但所有我發現的是,當試圖從其他網絡或機器訪問服務器時發生此錯誤。但對我來說,情況是我直接在服務器上工作,所以它假設我可以訪問phpMyAdmin作爲默認值。
我的httpd-xampp.conf
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
看: http://stackoverflow.com/a/16617319/2395363 – Andy