How to Install Apache Httpd Server on RHEL 6

Related Articles

In this post, i will show on how to install Apache Httpd server on Redhat Enterprise Linux 6 (RHEL 6). The Apache HTTP Server is an open-source HTTP server for modern operating systems such as Unix, Linux and windows platform. This post assumed that you have set up local yum repository using your DVDROM. If you haven’t set up the local yum repository, please proceed to this steps :
How to Setup Local Yum Repository from CD-ROM/DVD-ROM image on RHEL 6

Simply run this command to install Apache Httpd server :

    [root@rhel6 ~]# yum install httpd -y
    Loaded plugins: rhnplugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package httpd.i686 0:2.2.15-5.el6 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ====================================================================================================
     Package           Arch             Version                  Repository                        Size
    ====================================================================================================
    Installing:
     httpd             i686             2.2.15-5.el6             DVD-RHEL6-Repository             813 k
    
    Transaction Summary
    ====================================================================================================
    Install       1 Package(s)
    Upgrade       0 Package(s)
    
    Total download size: 813 k
    Installed size: 2.8 M
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : httpd-2.2.15-5.el6.i686                                                      1/1
    
    Installed:
      httpd.i686 0:2.2.15-5.el6
    
    Complete!
    

Command to start Httpd service :

    [root@rhel6 ~]# service httpd start
    Starting httpd:                                            [  OK  ]
    

Command to stop Httpd service :

    [root@rhel6 ~]# service httpd stop
    Stopping httpd:                                            [  OK  ]
    

Command to restart Httpd service :

    [root@rhel6 ~]# service httpd restart
    Stopping httpd:                                            [  OK  ]
    Starting httpd:                                            [  OK  ]
    

Make Apache Httpd service auto start at boot :

    [root@rhel6 ~]# chkconfig httpd on
    
Sign up for the WP Engine affiliate program and receive a minimum of $150 per referral!

As always if you need any help you can reach us on twitter @ehowstuff or drop us a comment below. Jumping through archives page to read more articles..


Skytech is a part time blogger that has over 6 years experience in servicing, repairing and configuring computers and administering the server systems.

Related Articles

Powered by WordPress · Designed by Theme Junkie