Monday, January 12, 2015

Apache 2.4 Installation Redhat Linux 6

Overview given in apache website


Download $ lynx http://httpd.apache.org/download.cgi
Extract $ gzip -d httpd-NN.tar.gz
$ tar xvf httpd-NN.tar
$ cd httpd-NN
Configure $ ./configure --prefix=PREFIX
Compile $ make
Install $ make install
Customize $ vi PREFIX/conf/httpd.conf
Test $ PREFIX/bin/apachectl -k start

 PREFIX is the path where you want to install

For Apache 2.4 apr,apr-util and pcre are the prerequisite software.

Download apr and apr-util  from here.
Download pcre from here

Configure apr ,
make
Check make is fine with command make clean
then make install

Configure pcre using the below command
./configure --disable-cpp --disable-shared --prefix=/usr/local/pcre-8.35
make
make clean
make install

Once the prerequisite softwares are successfully installed lets configure apache

./configure --prefix=/home/apache --enable-pcre=static --with-pcre=/usr/local/pcre-8.35

make
It will take time as it has to compile many modules

check make using make clean command

make install.

The Apache 2.4 is installed.

Configure the httpd.conf as needed

Go to apache home and start the httpd.

ps -ef|grep httpd to check the process is started


If you want to uninstall apache use yum erase  or yum remove to uninstall .

yum search httpd will give  the packages installed.

yum erase httpd httpd-tools

yum remove httpd

No comments:

Post a Comment

Your suggestions please