How to Install Apache Httpd Web Server on Linux

Apache Httpd is a common web server that was used in World Wide Web. It is the best open-source web server that I ever used. To install this Apache on Linux, you can follow these simple steps.

[root@server /]# yum install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.oscc.org.my
 * base: mirror.oscc.org.my
 * extras: centos.maulvi.net
 * updates: centos.maulvi.net
addons                                                       |  951 B     00:00
base                                                         | 2.1 kB     00:00
extras                                                       | 2.1 kB     00:00
kbs-CentOS-Extras                                            | 1.9 kB     00:00
kbs-CentOS-Testing                                           | 1.9 kB     00:00
updates                                                      | 1.9 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-43.el5.centos.3 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================
 Package        Arch          Version                        Repository        Size
====================================================================================
Installing:
 httpd          i386          2.2.3-43.el5.centos.3          updates          1.2 M

Transaction Summary
====================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
httpd-2.2.3-43.el5.centos.3.i386.rpm                         | 1.2 MB     00:22
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : httpd                                                        1/1

Installed:
  httpd.i386 0:2.2.3-43.el5.centos.3

Complete!
[root@server /]# /etc/rc.d/init.d/httpd start
Starting httpd:                                            [  OK  ]
[root@server /]# chkconfig httpd on