我刚刚安装了 Linux 版 xampp 1.8.0,当我打开 phpmyadmin 时出现此错误 禁止访问!!
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".
我试过this发布但没有运气。请帮忙。我是从我自己的电脑而不是从任何其他网络打开它。
最佳答案
如果您看到以下错误消息,请尝试输入 phpyAdmin
:
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".
接下来您可以执行以下操作(对于部署在 UNIX 系统上的 XAMPP):
您可以尝试更改 <Directory "/opt/lampp/phpmyadmin">
的配置
# vi /opt/lampp/etc/extra/httpd-xampp.conf
并将安全设置更改为
#LoadModule perl_module modules/mod_perl.so
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
第一个 - 评论 pl 模块,第二个 - 更改节点目录的配置。
之后,您应该重新启动 httpd
守护进程
# /opt/lampp/xampp restart
关于phpmyadmin - 只能从本地网络 phpmyadmin 访问所请求的对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11999371/