我最近在我们的专用服务器上安装了phpMyAdmin。 它工作正常,直到我们有磁盘空间已满,不得不移动/新的分区。 现在我们在访问xxxx.xx.xxxx.xxxx / phpMyAdmin /或domain.com/phpMyAdmin/时出现以下错误,我们得到内部服务器错误。
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.2.15 (CentOS) Server at domain.com Port 80
我查看了错误日志文件,只能find一个与phpMyAdmin相关的错误
[Fri Nov 16 01:11:06 2012] [info] Executing "/home/flourish/public_html/index.php" as UID 2010, GID 2010 [Fri Nov 16 01:11:15 2012] [warn] File "/usr/share/phpMyAdmin/index.php" is not in document root of Vhost "/home/flourish/public_html" [Fri Nov 16 01:11:16 2012] [warn] File "/usr/share/phpMyAdmin/index.php" is not in document root of Vhost "/home/flourish/public_html"
这是关系到权限问题或虚拟主机? 在我们遇到磁盘空间问题之前,它工作正常。
谢谢
suPHP不允许phpMyAdmin运行,因为它位于/ usr / share / phpMyAdmin /而不是Vhost的“/ home / flourish / public_html”的根目录。
解决这个问题的最简单方法是在check_vhost_docroot=true标志改为false。
如果这对你的血液来说太不安全了,你可以让phpMyAdmin成为自己的VHOST。