【发布时间】:2016-05-17 17:50:53
【问题描述】:
我一般是服务器和 Apache 的新手。我正在尝试建立一个 apache 2.4 服务器来学习 php 和 mysql。我按照 apache 文档进行设置以及此处的指南 http://php.net/manual/en/install.unix.apache2.php
现在当我运行“service apache2 start”时,我收到了这个错误:
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.
*
* The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
从这里我做了'desktop@desktop-pc:~$ sudo netstat -tulpn | grep:80' 结果如下:
[sudo] password for desktop:
tcp6 0 0 :::80 :::* LISTEN 19493/httpd
desktop@desktop-pc:~$
在我看来,这似乎没有使用端口 80。我只是不太了解端口或这个错误。我在网上搜遍了,要么不明白解决方案,要么无法实现。
感谢您提供的任何帮助。如果需要更多信息,我将尽我所能提供。我也在 Ubuntu 12.04 上。 谢谢。
【问题讨论】:
-
使用
sudo service apache2 status。 -
格式化的代码和消息。