Monday, March 23, 2015

How to install httpd apache server in RHEL 7 using RPMs



Check whether httpd package installed in your system using below command,

[akila@localhost] systemctl status httpd

If it says you don’t have httpd in your system (and if you don’t have direct internet connection to online repositories) you have to download httpd rpm and install it. But the problem is you have resolve dependency issues by installing another RPMs,

First download and install httpd-tools-2.4.6-31.el7.x86_64.rpm using below command,

[akila@localhost  ~]# rpm  –ivh  httpd-tools-2.4.6-31.el7.x86_64.rpm

Then download and install shared-mime-info-1.1-7.el7.x86_64.rpm using below command,



[akila@localhost  ~]# rpm –ivh shared-mime-info-1.1-7.el7.x86_64.rpm

Then download and install mailcap-2.1.41-2.el7.noarch.rpm using below command,

[akila@localhost  ~]# rpm –ivh mailcap-2.1.41-2.el7.noarch.rpm

Now you can install httpd-2.4.6-31.el7.x86_64.rpm using below command,

[akila@localhost  ~]# rpm –ivh httpd-2.4.6-31.el7.x86_64.rpm

Also install below rpm as well,

[akila@localhost  ~]# rpm –ivh httpd-manual-2.4.6-31.el7.noarch.rpm

Now you are successfully installed httpd in your system. (please note that you may need more dependencies due to your OS installation)

1 comment:

  1. Very nice post, impressive. its quite different from other posts. Plz visit my site...!
    Thanks for sharing.
    Server-Installation

    ReplyDelete