31 May 2015

How to Install | Compile | Configure Apache-http Server

Download the binnary from http://httpd.apache.org/download.cgi
at the time of writing this post 2.2.29 is most stable version of apache thus used in the example.

If you are using Linux dist. you should download one which is in format of tar.gz like : httpd-2.2.29.tar.gz

# extract it
$ tar -xzf httpd-2.2.29.tar.gz $ rpm -qa | grep gcc     usually it will show this two packages         libgcc-4.4.7-4.1.el6_5.i686         libgcc-4.4.7-4.1.el6_5.x86_64
# install gcc, a mandate package to run apache on Linux dis. $ sudo yum install gcc     gcc-4.4.7-4.1.el6_5.x86_64 # switch to installer directory and run following commands $ ./configure -prefix=/setups/apache/http-2.2.29 // defining
the installaition Location $ make // this command will compile the Apache $ make install // this command will configure the Apache $ cd /bin $ ./apachectl -k start

access the url

if everything goes well it will display
It works!

No comments:

Post a comment