【发布时间】:2020-10-06 06:35:38
【问题描述】:
我尝试安装和配置我的 phpmyadmin,但是当我尝试访问网站/phpmyadmin 时出现此错误
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
这就是我在/var/log/apache2/error.log中拥有的东西
[Wed Jun 17 06:25:03.213504 2020] [mpm_prefork:notice] [pid 18553] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Wed Jun 17 06:25:03.213527 2020] [core:notice] [pid 18553] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 17 17:06:21.488126 2020] [authn_file:error] [pid 22625] (2)No such file or directory: [client 88.125.106.51:64647] AH01620: Could not open password file: /etc/phpmyadmin/.htpasswd
我用这个修改了 htaccess 文件
sudo nano /usr/share/phpmyadmin/.htaccess
并输入此内容
AuthType Basic
Authname "Restricted files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user
【问题讨论】:
-
您需要查看您的 http 服务器的错误日志文件。这是记录有关问题的详细信息的地方。通常像
/var/log/apache2/error.log或类似的东西......