在Ubuntu 14.04上安装后,Apache 2错误和phpmyadmin无法正常工作

时间:2014-07-16 09:06:53

标签: php linux apache ubuntu phpmyadmin

我在我的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文件:

http://pastebin.com/yafW00S6

2 个答案:

答案 0 :(得分:1)

你可以输入:

netstat -lnptu

在您的终端中。然后查找阻止端口80的程序。 该程序需要关闭或必须使用另一个端口:)

答案 1 :(得分:0)

权限问题,尝试使用root权限重启apache2:

sudo /etc/init.d/apache2 restart