PHPMyadmin xampp 错误 [英] PHPMyadmin xampp error
问题描述
我正在拼命尝试在 xampp 上获得 phpmyadmin 访问权限,适用于 linux 1.8.0,适用于 ubuntu 12.04 LTS.我知道这是一个常见问题,但我已经在网络上尝试了许多线程,但仍然无法解决问题.
I'm desperately trying to get phpmyadmin access on xampp for linux 1.8.0 for ubuntu 12.04 LTS. I know this is a common problem, but I have tried many threads across the web, and I am still stuck getting it going.
Xampp 似乎运行正常,本地主机启动页面良好,包括侧栏中的 phpmyadmin 链接.当我点击该链接时,我收到 403 错误:
Xampp seems to be running ok, localhost start page good, including link to phpmyadmin in the sidebar. When I follow that link I get a 403 error:
禁止访问!
新的 XAMPP 安全概念:
New XAMPP security concept:
只能从本地访问请求的目录网络.
Access to the requested directory is only available from the local network.
这个设置可以在httpd-xampp.conf"文件中进行配置.
This setting can be configured in the file "httpd-xampp.conf".
如果您认为这是服务器错误,请联系网站管理员.
If you think this is a server error, please contact the webmaster.
错误 403
本地主机 Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4
localhost Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4
我尝试了很多事情,包括修改 httpd-xampp.conf,其相关部分现在看起来像:http://pastebin.com/J4f4tNVs
I have tried numerous things, including amending httpd-xampp.conf, the relevant bits of which now look like: http://pastebin.com/J4f4tNVs
我的/opt/lampp/phpmyadmin/config.inc.php 看起来像:http://pastebin.com/5PZPXK5s
my /opt/lampp/phpmyadmin/config.inc.php looks like: http://pastebin.com/5PZPXK5s
按照其他说明,我更改了/lampp 的所有权:
Following other instructions I changed ownership of /lampp with:
chown -Rv nobody:root ./lampp/*
请帮帮我!
谢谢,马特
推荐答案
我在这里找到了解决方案:http://www.apachefriends.org/f/viewtopic.php?f=17&t=50902&p=196185#p196185
I've found a solution here: http://www.apachefriends.org/f/viewtopic.php?f=17&t=50902&p=196185#p196185
编辑/opt/lampp/etc/extra/httpd-xampp.conf 并在块的底部添加 Require all allowed 行
有以下代码:
Edit /opt/lampp/etc/extra/httpd-xampp.conf and adding Require all granted line at bottom of block <Directory "/opt/lampp/phpmyadmin">
to have the following code:
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
这篇关于PHPMyadmin xampp 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!