How to install apache in linux

Apache HTTP Server

1. cd to /opt/ make a folder named Apache2.2.9.

2. Download apache2.2.9 to /opt/ from archive.apache.org

wget http://archive.apache.org/dist/httpd/httpd-2.2.9.tar.gz

3. Untar and unzip the httpd-2.2.9.tar.gz file using below command:
Example: tar –xvzf httpd-2.2.9.tar.gz

4. Untar should create a folder named httpd-2.2.9, cd to httpd-2.2.9 folder and run the below commands to compile and make installation.
./configure –prefix=/opt/Apache2.2.9

a) Once you see configuration success. execute below command.
make

b) Wait for the make command to finish. Once finished execute below command.
make install

5. Wait till the installation completes.

6. Once installation completed cd to /opt/Apache2.2.9/bin folder and run
./apachectl start

7. If it starts successfully then installation is complete.

In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.