我通过apt-get在我的Ubuntu上安装了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文件:http://pastebin.com/yafW00S6 你可以输入:
netstat -lnptu
在您的终端。然后寻找阻止80端口的程序。此程序需要关闭或必须使用另一个端口:)
权限问题,尝试使用root权限重新启动apache2:
sudo /etc/init.d/apache2 restart