It’s pretty straightforward to install apache 2.2 on centos. download the source file and compile it, then make install.
|cd /tmp |
tar zxvf httpd-2.2.17.tar.gz
then switch to the decompressed folder
After that, start the httpd, there is one apachectl utility to control the start/stop operation of httpd
|/opt/apache/bin/apachectl start |
#start the httpd daemon
you can change the index.html located in the /opt/apache/htdocs/ to something else like hello world.
To add the httpd to service.
ln -s /opt/apache/bin/apachectl /etc/init.d/apache2
add it to the chkconfig