Linux PHPMyadmin xampp 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11630412/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PHPMyadmin xampp error
提问by KindOfGuy
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 上为 ubuntu 12.04 LTS 获取 linux 1.8.0 的 phpmyadmin 访问权限。我知道这是一个常见问题,但我已经在网络上尝试了许多线程,但我仍然无法解决问题。
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 似乎运行正常,本地主机启动页面很好,包括侧栏中的 phpmyadmin 链接。当我点击该链接时,出现 403 错误:
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".
If you think this is a server error, please contact the webmaster.
Error 403
localhost Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4
禁止访问!
新的 XAMPP 安全概念:
只能从本地网络访问请求的目录。
此设置可以在文件“httpd-xampp.conf”中配置。
如果您认为这是服务器错误,请联系网站管理员。
错误 403
本地主机 Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4
I have tried numerous things, including amending httpd-xampp.conf, the relevant bits of which now look like: http://pastebin.com/J4f4tNVs
我尝试了很多事情,包括修改 httpd-xampp.conf,其中的相关部分现在看起来像:http://pastebin.com/J4f4tNVs
my /opt/lampp/phpmyadmin/config.inc.php looks like: http://pastebin.com/5PZPXK5s
我的 /opt/lampp/phpmyadmin/config.inc.php 看起来像:http://pastebin.com/5PZPXK5s
Following other instructions I changed ownership of /lampp with:
按照其他说明,我更改了 /lampp 的所有权:
chown -Rv nobody:root ./lampp/*
Please help me!
请帮我!
Thanks, Matt
谢谢,马特
采纳答案by Marco Giorgetti
I've found a solution here: http://www.apachefriends.org/f/viewtopic.php?f=17&t=50902&p=196185#p196185
我在这里找到了一个解决方案:http: //www.apachefriends.org/f/viewtopic.php?f=17&t=50902& p=196185#p196185
Edit /opt/lampp/etc/extra/httpd-xampp.conf and adding Require all grantedline at bottom of block <Directory "/opt/lampp/phpmyadmin">
to have the following code:
编辑 /opt/lampp/etc/extra/httpd-xampp.conf 并在块底部添加需要所有授予的行<Directory "/opt/lampp/phpmyadmin">
以具有以下代码:
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>