STEP 1:Download $ lynx http://httpd.apache.org/download.cgi
STEP 2:Extract $ gzip -d httpd-NN.tar.gz //Where NN must be replaced with the version number
$ tar xvf httpd-NN.tar
$ cd httpd-NN
STEP 3:Configure $ ./configure --prefix=PREFIX //Where PREFIX has to replaced with the installation directory
STEP 4:Compile
$ make
STEP 5:Install
$ make install
STEP 6:Customize
$ vi PREFIX/conf/httpd.conf
STEP 7:Test
$ PREFIX/bin/apachectl -k start