Note the following steps for compiling and installing Apache in Ubuntu: make and makeinstall are successful, but apache cannot be started. In the/usr/local/apache directory, when you start the service, the following message is displayed: The first message is a good understanding of servername. Therefore, you can find the apache configuration file, http. in conf, find the servername configuration and change the comment to Serv.
Notes for compiling and installing Apache in Ubuntu
In this case, make and make install are successful step by step, but apache cannot be started,
Start the service in the/usr/local/apache directory and the following message is displayed:
The first line of information is very understandable, that is, the servername problem, so find the apache configuration file, in http. conf,
Find the servername configuration and change the comment:
ServerName localhost: 80
Then start again, and the result is the following prompt
Then the Internet access information is poor, saying that port 80 is occupied or something, use the command to find the process that occupies port 80, and then kill it,
Run the command netstat-lnp | grep 80
The result is still not found.
Continue to query the information. The result shows that the port below 1024 must be started by the root user.
Sudo bin/apachectl start
Haha, the result is successful.
Then, view the port
Sudo netstat-lnp | grep 80
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2