只能从本地网络 phpmyadmin 访问请求的对象 [英] Access to the requested object is only available from the local network phpmyadmin
本文介绍了只能从本地网络 phpmyadmin 访问请求的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚为 linux 安装了 xampp 1.8.0,当我打开 phpmyadmin 时出现此错误禁止访问!!
<前>新的 XAMPP 安全概念:只能从本地网络访问所请求的对象.此设置可以在文件httpd-xampp.conf"中配置.我尝试了这篇帖子,但没有成功.请帮忙.我是从我自己的 PC 而非任何其他网络打开它.
解决方案
打开你的 http.conf 文件
vim/opt/lampp/etc/extra/httpd-xampp.conf
在以下部分评论拒绝所有人",
<代码>## 新的 XAMPP 安全概念#<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">订单拒绝,允许#拒绝所有人允许从 ::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/16ErrorDocument 403/error/XAMPP_FORBIDDEN.html.var</LocationMatch>
尝试在ErrorDocument"行之前添加Allow from all".希望有帮助.
I just installed xampp 1.8.0 for linux and when I opened phpmyadmin I got this error Access Forbidden!!
New XAMPP security concept: Access to the requested object is only available from the local network. This setting can be configured in the file "httpd-xampp.conf".
I tried this post but with no luck. please help. I am opening it from my own PC not from any other network.
解决方案
open your http.conf file
vim /opt/lampp/etc/extra/httpd-xampp.conf
Comment "Deny from all" in the following section,
#
# 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>
Edit:
Try to add "Allow from all" before "ErrorDocument" line.
Hope it helps.
这篇关于只能从本地网络 phpmyadmin 访问请求的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文