我试图设置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