19.3.2. Install the Apache HTTP Server included with JBoss EAP 6 (Zip)
- Root-level or administrator access.
- A supported version of Java installed.
- The following packages installed:
mod_auth_kerb(required for Kerberos functionality)
elinks(required for the apachectl functionality)
- On Red Hat Enterprise Linux 7,
apr-util-ldap(LDAP authentication functionality)
- The Apache Portability Runtime (APR) must be installed. In Red Hat Enterprise Linux, install package
Apache HTTP ServerZip archive contains symbolic links to several Kerberos modules, which is why the
mod_auth_kerbpackage is a prerequisite. If Kerberos functionality is not required, there is no need to install the
mod_auth_kerbpackage and the associated symbolic link can be deleted:
For information on Apache HTTP Server installation for Microsoft Windows Server environment, see the Configuring the Environment section in the Installing Enterprise Web Server on Windows section of JBoss Enterprise Web Server 2 Installation Guide.
Procedure 19.2. Install the Apache HTTP Server
Navigate to the JBoss EAP downloads list for your platform, on the Red Hat Customer Portal.Log in to the Customer Portal at https://access.redhat.com. Click on Downloads, then Red Hat Enterprise Application Server in the list of
Product Downloads. Select the correct JBoss EAP version from the Version drop-down menu.
Choose the httpd binary from the list.Find the Apache HTTP Server option for your operating system and architecture. Click the Download link. A Zip file containing the Apache HTTP Server distribution downloads to your computer.
Extract the Zip to the system where the Apache HTTP Server binary will run.Extract the Zip file on your preferred server, to a temporary location. The Zip file will contain the
httpddirectory under a jboss-ews-version-number folder. Copy the
httpdfolder and place it inside the directory where you installed the JBoss EAP 6, commonly referred to as EAP_HOME.Your Apache HTTP Server is now be located in
EAP_HOME/httpd/directory. You can now use this location for HTTPD_HOME, as found in other JBoss EAP 6 documentation.
Run the Post-installation script and create apache user and group accountsIn a terminal emulator, switch to the root user account, navigate to the
EAP_HOME/httpddirectory and execute the following command.
./.postinstallNext, check to see if a user called
apacheexists on the system by running the following command:
id apacheIf the user does not exist then it will need to be added, along with the appropriate usergroup. In order to achieve this, execute the following:
/usr/sbin/groupadd -g 91 -r apache 2> /dev/null || : /usr/sbin/useradd -c "Apache" -u 48 -g 91 -s /sbin/nologin -r apache 2> /dev/null || :Once this is completed, if the
apacheuser will be running the httpd service, then the ownership of the HTTP directories will need to be changed to reflect this:
chown -R apache:apache httpdTo test that the above commands have been successful, check that the
apacheuser has execution permission to the Apache HTTP Server install path.
ls -lThe output should be similar to:
drwxrwxr-- 11 apache apache 4096 Feb 14 06:52 httpd
Configure the Apache HTTP Server.Switch to the new user account using the following command
sudo su apacheand then configure the Apache HTTP server as the
apacheuser to meet the needs of your organization. You can use the documentation available from the Apache Foundation at http://httpd.apache.org/ for general guidance.
Start the Apache HTTP Server.Start the Apache HTTP Server using the following command:
Stop the Apache HTTP Server.To stop the Apache HTTP Server, issue the following command: