suPHP 出现内部服务器错误 phpMyAdmin

suPHP 出现内部服务器错误 phpMyAdmin

我最近在我们的专用服务器上安装了 phpMyAdmin。它一直运行良好,直到磁盘空间已满,我们不得不将 /home 移至新分区。现在,我们在访问 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

我查看了错误日志文件,只发现一个与 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"

这与权限问题或虚拟主机有关吗?在磁盘空间出现问题之前,它运行良好。

谢谢

答案1

suPHP 不允许 phpMyAdmin 运行,因为它位于 /usr/share/phpMyAdmin/ 而不是 Vhost“/home/flourish/public_html”的根目录。

解决这个问题的最简单方法是将check_vhost_docroot=truesuphp.conf 中的标志更改为 false。

如果这对您来说太不安全,您可以将 phpMyAdmin 设为它自己的 VHOST。

相关内容