我是服务器和 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。我只是不太了解端口或这个错误。我已经搜索了 Internet,但我不了解解决方案或无法实现。
感谢您提供的任何帮助。如果需要更多信息,我会尽我所能提供。我也在 Ubuntu 12.04 上。 谢谢。
最佳答案
首先尝试在其他端口上启动 Apache。如果它不起作用,您的防病毒程序可能会阻止 Apache 服务。
关于linux - Apache2 服务器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37283143/