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 this simple steps.

    [root@server /]# yum install httpd
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons:
     * base:
     * extras:
     * updates:
    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
     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
      httpd.i386 0:2.2.3-43.el5.centos.3
    [root@server /]# /etc/rc.d/init.d/httpd start
    Starting httpd:                                            [  OK  ]
    [root@server /]# chkconfig httpd on
Leave a Reply

Your email address will not be published. Required fields are marked *

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee