当我尝试在 Ubuntu Server 14.04 上重新启动 Apache2 时遇到问题。我收到此错误:
Restarting web server apache2
[Fri May 23 18:50:56.662042 2014] [alias:warn]
[pid 8635] AH00671: The Alias directive in /etc/apache2/conf-enabled/phpmyadmin.conf at line 3 will probably never match because it overlaps an earlier Alias.
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
有人能帮我修复这个错误吗?
答案1
添加“包括 /etc/phpmyadmin/apache.conf”导致以下错误:
[警告] /etc/phpmyadmin/apache.conf 第 3 行中的 Alias 指令可能永远不会匹配,因为它与之前的 Alias 重叠。
重新启动 Apache 时。
再次将其注释掉即可解决此问题。
根据这个https://help.ubuntu.com/community/phpMyAdmin添加包含行不是必要的,至少在 Ubuntu 9.04 中不需要(并且大概在 Ubuntu 12.04 中也能正常工作)。
来源:https://www.digitalocean.com/community/articles/how-to-install-and-secure-phpmyadmin-on-ubuntu-12-04(Arjan Dasselaar 的评论)
您还可以尝试重命名 phpmyadmin.conf 进行测试。