phpMyAdmin 上的内部服务器错误
Internal server error on phpMyAdmin
我刚刚重新安装了网络服务器,发现自己遇到了一个我一无所知的错误:(
我正在使用 apache 2,我假设我的 mysql 环境安装良好,尽管我不知道如何检查它。我刚刚将 phpmyadmin 4.5 解压缩到 www/ 文件夹,创建了配置文件夹,赋予它正确的权限,将我的 config.ini.php 移到里面,但每当我尝试访问 domainname/phpMyAdmin 或 domainname/phpMyAdmin/设置/我得到这个:
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 日志:
[Sun Aug 23 19:11:23 2015] [error] [client 79.91.191.99] Application.cpp 中的 SoftException:350: 脚本的 UID“/home/MGC/www/phpMyAdmin/index.php " 小于 min_uid
[Sun Aug 23 19:11:23 2015] [error] [client 79.91.191.99] 脚本听众过早结束:index.php
运行 ssh 终端中的以下内容
在 phpmyadmin 根目录中修复权限
chmod -R 0755 *
找到apache用户
ps aux | egrep '(apache|httpd|www)'
在 phpmyadmin 目录之外设置所有权
chown -R www-data:www-data *
www-data
是 ubuntu 上的 apache 用户,在您的发行版上可能不同
我刚刚重新安装了网络服务器,发现自己遇到了一个我一无所知的错误:(
我正在使用 apache 2,我假设我的 mysql 环境安装良好,尽管我不知道如何检查它。我刚刚将 phpmyadmin 4.5 解压缩到 www/ 文件夹,创建了配置文件夹,赋予它正确的权限,将我的 config.ini.php 移到里面,但每当我尝试访问 domainname/phpMyAdmin 或 domainname/phpMyAdmin/设置/我得到这个:
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 日志:
[Sun Aug 23 19:11:23 2015] [error] [client 79.91.191.99] Application.cpp 中的 SoftException:350: 脚本的 UID“/home/MGC/www/phpMyAdmin/index.php " 小于 min_uid
[Sun Aug 23 19:11:23 2015] [error] [client 79.91.191.99] 脚本听众过早结束:index.php
运行 ssh 终端中的以下内容
在 phpmyadmin 根目录中修复权限
chmod -R 0755 *
找到apache用户
ps aux | egrep '(apache|httpd|www)'
在 phpmyadmin 目录之外设置所有权
chown -R www-data:www-data *
www-data
是 ubuntu 上的 apache 用户,在您的发行版上可能不同