昨天我毫无问题地执行了订单localhost/phpmyadmin
,但从那以后,它就不再起作用了。当我localhost/phpmyadmin
在浏览器中执行此操作时,我只得到一个空白页。
这是我的文件/var/log/apache2/error.log
:
[Wed Mar 14 23:49:47.718093 2018] [mpm_prefork:notice] [pid 3412]
AH00163: Apache/2.4.29 (Debian) configured -- resuming normal
operations
[Wed Mar 14 23:49:47.718156 2018] [core:notice] [pid 3412] AH00094:
Command line: '/usr/sbin/apache2'
[Wed Mar 14 23:49:50.449163 2018] [mpm_prefork:notice] [pid 3412]
AH00169: caught SIGTERM, shutting down
[Wed Mar 14 23:49:50.547506 2018] [mpm_prefork:notice] [pid 3478]
AH00163: Apache/2.4.29 (Debian) configured -- resuming normal
operations
[Wed Mar 14 23:49:50.547550 2018] [core:notice] [pid 3478] AH00094:
Command line: '/usr/sbin/apache2'
请帮我了解一下哪里出了问题!
答案1
$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.045 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.042 ms
^C
--- localhost ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.042/0.043/0.045/0.006 ms
OP 得到:
# ping localhost
PING localhost (localhost (:: 1)) 56 octets de données
64 octets de localhost (:: 1): icmp_seq = 1 ttl = 64 temps = 0.027 ms
64 octets de localhost (:: 1): icmp_seq = 2 ttl = 64 temps = 0.095 ms
他正尝试通过 IPv6 访问他的服务器,但他的服务器仅配置为 IPv4。
答案2
问题解决了,这是最简单、最愚蠢的方法。我只需卸载并重新安装 phpmyadmin,一切又恢复正常。老实说,我不知道先发生了什么,但我正在努力解决。对于所有遇到类似问题的人,请尝试这种老方法,它几乎总是有效。