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 you should download one which is in format of tar.gz like : httpd-2.2.29.tar.gz
If you are using Linux 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
$ sudo yum install gcc
the above command will install which is much needed for apache to run on any linux machine
$ 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
$ sudo yum install gcc
the above command will install which is much needed for apache to run on any linux machine
gcc-4.4.7-4.1.el6_5.x86_64
switch to your binnary 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
switch to your binnary 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
http://localhost:80/
if everything goes well it will display
It works!