Friday, May 25, 2012

Install Apache HTTP Server in Linux


Install Apache HTTP Server in Linux

To install apache http server in linux, please follow the below steps.

1. Download the apache file from the below location.

http://linux-files.com//httpd/httpd-2.2.22.tar.bz2

2. Copy the httpd-2.2.22.tar.bz2 file in to the destination folder

Eg: /u01/apache/httpd-2.2.22.tar.bz2

3. Follow the below commands to install apache
# tar -jxvf httpd-2.2.22.tar.bz2
    # cd httpd-2.2.22
    # ./configure --prefix=/usr/local/apache --enable-module=so
    # make
    # make install
4. To start the apache server,
#cd /usr/local/apache
#apachectl start

Check the http://<hostname>/ in browser and you will get a text 'IT Works'.

5. To stop the apache server,
#cd /usr/local/apache
#apachectl stop

No comments:

Post a Comment