简体   繁体   English

Apache2服务器无法启动

[英]Apache2 Server Won't Start

I am new to servers and Apache in general. 我是服务器和Apache的新手。 I am trying to set up an apache 2.4 server to learn php and mysql on. 我试图建立一个Apache 2.4服务器来学习php和mysql。 I followed the apache documentation for setup as well as the guide here http://php.net/manual/en/install.unix.apache2.php 我按照apache文档进行设置以及此处的指南http://php.net/manual/zh/install.unix.apache2.php

Now when I run 'service apache2 start' I get this error: 现在,当我运行“ 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

From here I did 'desktop@desktop-pc:~$ sudo netstat -tulpn | 从这里,我做了'desktop @ desktop-pc:〜$ sudo netstat -tulpn | grep :80' and the result is below: grep:80',结果如下:

[sudo] password for desktop: 
tcp6       0      0 :::80                   :::*                    LISTEN      19493/httpd     
desktop@desktop-pc:~$ 

To me this looks like nothing is using port 80. I simply do not understand ports or this error too well. 对我来说,这似乎没有使用80端口。我根本不了解端口,或者这个错误太好了。 I have scoured the Internet, but I either do not understand the solution or cannot implement it. 我已经搜寻了Internet,但是我要么不理解解决方案,要么无法实现它。

I thank you for any help you can provide. 感谢您提供的任何帮助。 If more information is needed I will provide it to the best of my abilities. 如果需要更多信息,我将尽我所能提供。 Also I am on Ubuntu 12.04. 我也在Ubuntu 12.04上。 Thanks. 谢谢。

First try to start Apache on an other port. 首先尝试在其他端口上启动Apache。 If it didn't work, your antivirus programm is maybe blocking the Apache-service. 如果它不起作用,则您的防病毒程序可能正在阻止Apache服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM