Notes for compiling and installing Apache in Ubuntu

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.