繁体   English   中英

phpMyAdmin上的内部服务器错误

[英]Internal server error on phpMyAdmin

我刚刚重新安装了Web服务器,发现自己遇到了一个我不知道的错误:(

我正在使用apache 2,我假设我的mysql环境安装正确,尽管我不知道如何检查。 我只是在www /文件夹上解压缩了phpmyadmin 4.5,创建了config文件夹,赋予了它正确的权限,将config.ini.php移到了其中,但是每当我尝试访问domainname / phpMyAdmin或domainname / phpMyAdmin / setup /时,得到这个:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@domainname 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.

这是apache2日志:

[2015年8月23日星期日19:11:23] [错误] [客户端79.91.191.99] Application.cpp:350中的SoftException:脚本“ /home/MGC/www/phpMyAdmin/index.php”的UID小于min_ uid

[2015年8月23日星期日19:11:23] [错误] [客户端79.91.191.99]脚本听众过早结束:index.php

在ssh终端中运行以下命令

  1. 在phpmyadmin根目录中修复权限

     chmod -R 0755 * 
  2. 查找apache用户

     ps aux | egrep '(apache|httpd|www)' 
  3. 在phpmyadmin目录之外设置所有权

     chown -R www-data:www-data * 

www-data是ubuntu上的apache用户,您的发行版可能有所不同

暂无
暂无

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

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