仅在本地网络phpmyadmin中可以访问请求的对象 [英] Access to the requested object is only available from the local network phpmyadmin
本文介绍了仅在本地网络phpmyadmin中可以访问请求的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚为Linux安装了xampp 1.8.0,当我打开phpmyadmin时出现此错误 禁止访问!
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".
我尝试了这篇帖子,但是没有运气.请帮忙.我是通过自己的PC而不是任何其他网络打开它的.
I tried this post but with no luck. please help. I am opening it from my own PC not from any other network.
推荐答案
打开您的http.conf文件
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>
修改:
尝试在"ErrorDocument"行之前添加全部允许".
希望对您有所帮助.
Try to add "Allow from all" before "ErrorDocument" line.
Hope it helps.
这篇关于仅在本地网络phpmyadmin中可以访问请求的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文