Show Table of Contents

19.3.3. Install Apache HTTP Server in Blood-red Lid Enterprise Linux (RHEL) 5, vi, and 7 (RPM)

Prerequisites

  • Root-level access.

  • The latest version of elinks package installed (required for the apachectl functionality).

  • Subscribe to Reddish Hat Enterprise Linux (RHEL) channels (to install Apache HTTP Server from RHEL channels).

  • Subscribe to jbappplatform-6-Curvation-server-VERS-rpm Red Chapeau Network (RHN) channel (to install EAP specific distribution of Apache HTTP Server).

You tin install Apache HTTP Server using either of the following methods:

  • From Red Hat Enterprise Linux (RHEL) channels: An active subscription to Red Hat Enterprise Linux (RHEL) channels is necessary to install Apache HTTP server.

  • From jbappplatform-6-ARCH-server-VERS-rpm channel (JBoss EAP specific distribution): JBoss EAP distributes its ain version of the Apache HTTP Server. An active subscription to jbappplatform-six-ARCH-server-VERS-rpm channel is necessary to install the JBoss EAP specific distribution of Apache HTTP Server.

Procedure 19.3. Install and Configure Apache HTTP Server in Scarlet Hat Enterprise Linux 5 and 6 (RPM)

  1. Install httpd

    To install the JBoss EAP specific version of httpd package run the following command:

    yum install httpd

    To install httpd explicitly from Red Hat Enterprise Linux (RHEL) channels run the following control:

                                  yum install httpd --disablerepo=jbappplatform-half dozen-*

    Y'all must run only one of the to a higher place commands to install the httpd package on your system.

  2. Set the Service Kicking Behavior

    You can define the service behavior for the httpd service at kicking from the control line or with the service configuration graphical tool. Run the post-obit control to define the behavior:

                                  chkconfig httpd on

    To use the service configuration tool run the following command and change the service setting in the displayed window:

                                  system-config-services
  3. Start httpd

    Start httpd using the following command:

    service httpd commencement
  4. Finish httpd

    Cease httpd using the post-obit command:

    service httpd stop

Procedure xix.4. Install and Configure Apache HTTP Server in Red Hat Enterprise Linux 7 (RPM)

  1. Install httpd22

    To install the JBoss EAP specific version of httpd22 package run the following command:

    yum install httpd22
  2. Prepare the Service Boot Behavior

    Run the following control to start the httpd22 service at kick:

    systemctl enable httpd22.service
  3. Outset httpd22

    Start httpd22 using the following command:

    systemctl start httpd22.service
  4. Stop httpd22

    Stop httpd22 using the following command:

    systemctl terminate httpd22.service