Apache Installation from source tar.gz file

Dependencies installation

#yum install gcc gcc-c++    #C compiler

#yum install pcre-devel

#yum install openssl-devel     #if you need ssl website

#yum install libxml2

 

Creating Installation directory for apache

#mkdir /usr/local/apache

Downloading httpd tar.gz file

#wget http://apache.techartifact.com/mirror//httpd/httpd-2.2.24.tar.gz

Extracting tarball

#tar -xzvf httpd-2.2.24.tar.gz

Entering to extracted directory

#cd httpd-2.2.24

Configuring and Installing

#./configure –prefix=/usr/local/apache –enable-so –enable-ssl

#make

#make install

Softlink creation of apache conf file to /etc

#ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf

Copying of apachectl to /usr/bin to work it as command

#cp /usr/local/apache/bin/apachectl /usr/bin/apache

Starting Apache

#apache start

Checking

#elinks <ip>

Leave a Reply

Your email address will not be published. Required fields are marked *