简体   繁体   English

ubuntu 12.04上phpmyadmin的403错误

[英]403 error of phpmyadmin on ubuntu 12.04

I installed phpmyadmin on ubuntu 12.04 using the command "sudo apt-get install phpmyadmin". 我使用命令“ sudo apt-get install phpmyadmin”在ubuntu 12.04上安装了phpmyadmin。 So, phpmyadmin is on the directory /usr/share/phpmyadmin. 因此,phpmyadmin位于目录/ usr / share / phpmyadmin上。 Then I created a link under /etc/www/ using the command "sudo ln -s /usr/share/phpmyadmin". 然后,使用命令“ sudo ln -s / usr / share / phpmyadmin”在/ etc / www /下创建了一个链接。 But when I visited phpmyadmin using browser, I got the error meesage "Forbidden.You don't have permission to access /phpmyadmin on this server." 但是,当我使用浏览器访问phpmyadmin时,出现错误消息“禁止。您无权在此服务器上访问/ phpmyadmin。” I searched a lot on the Internet to find a solution. 我在互联网上进行了大量搜索以找到解决方案。 One solution is to add those following codes in the httpd.conf file(my httpd.conf file is empty.). 一种解决方案是在httpd.conf文件中添加以下代码(我的httpd.conf文件为空。)。
<Directory “/usr/share/phpmyadmin/”>
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Howerver, it didn't work! 但是,它没有用! Is there any one who can tell me where the problem is. 有谁能告诉我问题出在哪里。 Thanks in advance. 提前致谢。

First try to add 首先尝试添加

Options FollowSymLinks

before 之前

AllowOverride None

Also here is a tip: 另外这里有一个提示:

If you created a symbolic link with a root user in example, then you might get that error because original resource is maybe somebody's else but link is owned by root. 如果在示例中使用根用户创建了符号链接,则可能会收到该错误,因为原始资源可能是别人的,但链接是由根用户拥有的。 This usually happens on C-Panel hostings of course. 当然,这通常发生在C-Panel托管上。 I'm not sure it will happen under Ubuntu. 我不确定在Ubuntu下会不会发生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM