Installing Apache 2.2 from Source

Below details the basic steps required to compile Apache 2.2 upon a CentOS based distro.

Update System

yum install gcc

Download Source

cd /var/tmp/

Unzip / Untar

gunzip httpd-2.2.19.tar.gz
mkdir httpd
cd httpd
tar -xvf ../httpd-2.2.19.tar
cd httpd-2.2.19/




make install

Confirm Install

[root@localhost httpd-2.2.19]# /usr/local/apache2/bin/apachectl -v
Server version: Apache/2.2.19 (Unix)
Server built: Jul 10 2011 17:59:10

Rick Donato

Want to become a Linux expert?

Here is our hand-picked selection of the best courses you can find online:
Linux Mastery course
Linux Administration Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial