Red Hat Jboss Core Services 2.4.37 Apache HTTP Server Installation Guide
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat JBoss Core Services 2.4.37 Apache HTTP Server Installation Guide For use with Red Hat JBoss middleware products. Last Updated: 2021-09-21 Red Hat JBoss Core Services 2.4.37 Apache HTTP Server Installation Guide For use with Red Hat JBoss middleware products. Legal Notice Copyright © 2021 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract This book is a guide to the installation of Red Hat JBoss Core Services Apache HTTP Server. Table of Contents Table of Contents .P .R . O. V. .I D. .I N. .G . F. .E .E . D. .B . A. .C . K. O. .N . R. .E .D . .H . .A .T . .D . O. C. .U . M. E. .N . T. .A .T . I.O . .N . .4 . .C . H. .A . P. .T .E . R. 1.. .I .N . T. .R .O . .D . U. .C . T. .I O. N. 5. 1.1. ABOUT RED HAT JBOSS CORE SERVICES 5 1.2. ABOUT JBOSS CORE SERVICES APACHE HTTP SERVER 5 1.3. SUPPORTED OPERATING SYSTEMS AND CONFIGURATIONS 5 1.4. INSTALLATION METHODS 5 1.5. UPGRADING TO THE RED HAT JBOSS CORE SERVICES APACHE HTTP SERVER 2.4.37 6 Prerequisites 6 Procedure 6 Additional Resources 6 1.6. KEY DIFFERENCES BETWEEN RED HAT ENTERPRISE LINUX 7 AND RED HAT ENTERPRISE LINUX 8 6 CHAPTER 2. INSTALLING THE JBOSS CORE SERVICES APACHE HTTP SERVER ON RED HAT ENTERPRISE .L .I N. U. .X . 8. 2.1. ARCHIVE INSTALLATION 8 2.1.1. Prerequisites 8 2.1.2. Download and Extract the Apache HTTP Server 8 2.1.3. Configuring the Apache HTTP Server Installation 8 Creating an Apache User 9 Disabling/Enabling SSL Support 9 Running the Apache HTTP Server Post-Installation Script 9 2.1.4. Starting the Apache HTTP Server 9 2.1.5. Stopping the Apache HTTP Server 9 2.1.6. Running the Apache HTTP Server without root access on Red Hat Enterprise Linux (ZIP installation) 10 2.1.7. Using Sysv and Systemd Scripts With RHEL Archive Distribution 10 Setting up the Apache HTTP Server for systemd 11 Controlling the Apache HTTP Server with systemd 11 2.2. RPM INSTALLATION 12 2.2.1. Installing the Apache HTTP Server from RPM Packages 12 2.2.2. Using mod_jk,mod_cluster, mod_rt, and mod_bmx with RHEL 8 13 Installing httpd 13 Installing Modules 13 2.2.3. Configuring the Apache HTTP Server Installation (RPM Installation) 14 Removing SSL Support 14 2.2.4. Starting the Apache HTTP Server 14 2.2.5. Stopping the Apache HTTP Server 15 2.2.6. Configuring the Apache HTTP Server to Start at Boot 15 2.3. SELINUX POLICIES 15 2.3.1. SELinux Policy Information 15 2.3.2. SELinux Policies for an RPM Installation 16 2.3.3. SELinux Policies for Archive Installation 16 .C . H. .A . P. .T .E . R. 3. I. N. .S . T. A. .L . L. .I N. .G . T . H. .E . .J . B. .O . S. .S . .C . O. .R . E. S. E. .R . V. .I C. .E . S. A. .P .A . C. H. .E . H. T. T. .P . .S . E. R. .V . E. .R . .O . N. M. I.C . R. .O . .S .O . .F . T. .W . .I .N . D. .O . W. S. 18 3.1. DOWNLOAD AND EXTRACT THE APACHE HTTP SERVER 18 3.2. CONFIGURING THE APACHE HTTP SERVER INSTALLATION 18 Running the Apache HTTP Server Post-Installation Script 18 Installing the Apache HTTP Server Service 18 Configuring Folder Permissions for the Apache HTTP Server Service 19 Disabling/Enabling SSL Support 19 3.3. STARTING THE APACHE HTTP SERVER 20 1 Red Hat JBoss Core Services 2.4.37 Apache HTTP Server Installation Guide Starting the Apache HTTP Server Using the Command Prompt 20 Starting the Apache HTTP Server Using the Computer Management Tool 20 3.4. STOPPING THE APACHE HTTP SERVER 20 Stopping Apache HTTP Server Using the Command Prompt 20 Stopping the Apache HTTP Server Using the Computer Management Tool 20 .C . H. .A . P. .T .E . R. 4. .E .N . .A . B. .L .I N. G. H. .T . T. .P . /. 2. .F . O. .R . .T . H. .E . .J .B . O. S. .S . C. .O . .R . E. .S . E. .R . V. .I C. .E . S. .H . T. .T . P. S. E. .R . V. .E . R. 2. .1 . Prerequisites 21 Procedure 21 Next Steps 23 Additional Resources 24 2 Table of Contents 3 Red Hat JBoss Core Services 2.4.37 Apache HTTP Server Installation Guide PROVIDING FEEDBACK ON RED HAT DOCUMENTATION We appreciate your feedback on our technical content and encourage you to tell us what you think. If you’d like to add comments, provide insights, correct a typo, or even ask a question, you can do so directly in the documentation. NOTE You must have a Red Hat account and be logged in to the customer portal. To submit documentation feedback from the customer portal, do the following: 1. Select the Multi-page HTML format. 2. Click the Feedback button at the top-right of the document. 3. Highlight the section of text where you want to provide feedback. 4. Click the Add Feedback dialog next to your highlighted text. 5. Enter your feedback in the text box on the right of the page and then click Submit. We automatically create a tracking issue each time you submit feedback. Open the link that is displayed after you click Submit and start watching the issue or add more comments. Thank you for the valuable feedback. 4 CHAPTER 1. INTRODUCTION CHAPTER 1. INTRODUCTION 1.1. ABOUT RED HAT JBOSS CORE SERVICES Red Hat JBoss Core Services is a set of supplementary software for Red Hat JBoss middleware products. This software, such as the Apache HTTP Server, is common to multiple JBoss middleware products, and is packaged under Red Hat JBoss Core Services to allow for faster distribution of updates, and for a more consistent update experience. For a full list of components that are supported by Red Hat JBoss Core Services, see the Core Services Apache HTTP Server Component Details page. Before you attempt to access the Component Details page, you must ensure that you have an active Red Hat subscription and you are logged in to the Red Hat Customer Portal. 1.2. ABOUT JBOSS CORE SERVICES APACHE HTTP SERVER The Apache HTTP Server is used in multiple Red Hat JBoss middleware products, and previously the Apache HTTP Server was distributed with each JBoss product. Starting from the following product versions, each product will instead use the JBoss Core Services distribution of the Apache HTTP Server: Red Hat JBoss Enterprise Application Platform (JBoss EAP) 7.0 and onwards. Red Hat JBoss Web Server 3.1 and onwards. IMPORTANT The Apache HTTP Server distribution included as part of Red Hat Enterprise Linux is separate from the JBoss Core Services distribution of the Apache HTTP Server. NOTE The difference between the Apache HTTP Server provided with Red Hat Enterprise Linux and the JBCS Apache HTTP Server: JBCS httpd is packaged as zip and rpm but only the rpm package is available for Red Hat Enterprise Linux httpd. JBCS httpd provides the mod_security, mod_proxy_uwsgi and the loadbalancing modules mod_jk and mod_cluster. JBCS httpd does not provide nor support mod_php. This is supported in Red Hat Enterprise Linux httpd. 1.3. SUPPORTED OPERATING SYSTEMS AND CONFIGURATIONS For information on supported operating systems and configurations for JBoss Core Services Apache HTTP Server, see https://access.redhat.com/articles/2258971. 1.4. INSTALLATION METHODS JBoss Core Services Apache HTTP Server can be installed on supported Red Hat Enterprise Linux, and Microsoft Windows systems using archive installation files available for each platform. JBoss Core Services Apache HTTP Server can also be installed on supported Red Hat Enterprise Linux systems 5 Red Hat JBoss Core Services 2.4.37 Apache HTTP Server Installation Guide using RPM packages. 1.5. UPGRADING TO THE RED HAT JBOSS CORE SERVICES APACHE HTTP SERVER 2.4.37 For systems where an earlier version of the Red Hat JBoss Core Services Apache HTTP Server was installed from a .zip archive, upgrading to the Apache HTTP Server 2.4.37 requires: 1.