我在我的 Ubuntu 上通过 apt-get 安装了 PHPMyAdmin,我在 apache2.conf 中设置了目录,但是当启动服务器时,http://127.0.0.1/phpmyadmin
访问和以下消息出现在我的控制台中:
juninho-desktop:~$ /etc/init.d/apache2 restart
* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: 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
这是我的/etc/apache2/apache2.conf 文件:
最佳答案
你可以输入:
netstat -lnptu
在您的终端中。然后寻找阻止端口 80 的程序。 该程序需要关闭或必须使用其他端口:)
关于php - 在 Ubuntu 14.04 上安装后 Apache 2 错误和 phpmyadmin 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24776634/