PHPMyadmin Xampp错误 [英] PHPMyadmin xampp error

查看:111
本文介绍了PHPMyadmin Xampp错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拼命试图在ubuntu 12.04 LTS的Linux 1.8.0的xampp上获得phpmyadmin访问权限.我知道这是一个普遍的问题,但是我在网络上尝试了许多线程,但仍然无法解决问题.

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:

禁止访问!

Access forbidden!

新的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/*

请帮助我!

谢谢, 马特

推荐答案

我在这里找到了解决方案:

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并在<Directory "/opt/lampp/phpmyadmin">块底部添加要求所有已授予行以具有以下代码:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆