CentOS Linux Server Guide

CentOS Web Server

 

Installing Apache Web Server

 

Apache Web Server Installation Method

There are few method you can use to install Apache Web Server on CentOS.

1)  Installing Apache Web Server via yum command
yum install -y httpd

The above command tell yum to check the dependencies of the packages and download the Apache Web Server packages from internet and then install it without asking for confirmation by user

 

2) Installing Apache Web Server via rpm packages
rpm -ivh httpd-*.rpm

If you have the CentOS DVD or ISO. You can install Apache we Server using the rpm command.

 

3) Installing Apache Web Server from source code.

If you prefer to install Apache Wev Server from source code, you can follow the following step

 

Download the source code from Apache official web site, http://www.apache.org
wget httpd-version.tar.gz

 

The source code is archived. Thus, you must unpack the downloaded archive.

gzip -d httpd-version.tar.gz

tar xvf httpd-version.tar.gz

 

We must configure the installation path for Apache
./configure -prefix=/usr/local/apache2

 

Finally we compile and install the Apache package into CentOS
make

make install

 

Back to CentOS Apache Web Server



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy