Install Apache httpd in Ubuntu Linux

Source: Internet
Author: User
Tags gz file fully qualified domain name

Apache httpd version: 2.2.9
Installation Directory:/usr/devsoft/Apache

1. Download the Apache for Linux source code package from the Apache website (I downloaded: httpd-2.2.9.tar.gz );
2. Copy the Beibei file httpd-2.2.9.tar.gz to the/usr/devsoft/Apache directory. If the directory does not exist, create it;
3. Go to the/usr/devsoft/apachedirectory and decompress the httpd-2.2.9.tar.gz file;
CD/usr/devsoft/Apache
Tar-zxvf httpd-2.2.9.tar.gz
Enter the extract directory
CD/usr/devsoft/Apache/httpd-2.2.9
Configure and install
./Configure -- prefix =/usr/devsoft/Apache
Make
Make install
4. Start the service
/Usr/devsoft/Apache/bin/apachectl start
5. Enter http: // 127.0.0.1 in the browser. If it works is displayed !, The installation is successful.
6. Stop the service
/Usr/devsoft/Apache/bin/apachectl stop

Note:
A) when starting the Service (/usr/devsoft/Apache/bin/apachectl start), if the following error occurs:
Httpd: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for servername
Solution:
Modify the configuration file CONF/httpd. conf
Find row
# Servername www.example.com: 80
To:
Servername www. Your Domain Name. com: 80
You can write one

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/coolhty/archive/2009/03/12/3985040.aspx

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.