Tuesday, March 31, 2015

Apace Installation on Linux

Step1: Download Apache http server from $ lynx http://httpd.apache.org/download.cgi

Step2: Extract the source from the Apache HTTP tar
         a. $ gzip -d httpd-NN.tar.gz
               b. $ tar xvf httpd-NN.tar
                       c. $ cd httpd-NN

Step3: Configure the Apache HTTPd Source tree $ ./configure --prefix=PREFIX

Step4: Build the various parts which form the Apache HTTPd package by running $ make

Step5: Install the package under the configured installation PREFIX by running $ make install

Step6: You can Customize the server by editing httpd.conf file $ vi PREFIX/conf/httpd.conf

Step7: You can start Apache HTTP server by running $ PREFIX/bin/apachectl -k start

Step8:  Verify that Apache is up and running by using ps -ef|grep httpd

No comments:

Post a Comment