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