Installing and Configuring Apache Toolkit for Serviceguard for Linux

exist by default. This file is used to define any user defined parameters. The Apache server
fails to start if this file is not present. To start Apache successfully, either use the touch
command to create a file or comment out the Include parameter in the httpd.conf file.
3) Create a separate, distinct server root directory and server configuration file for each
Apache SG/Linux package. This server root directory corresponds to the Apache
ServerRoot directive specified in the configuration file. Each package corresponds to a
unique Apache instance with its associated configuration and server root directory.
4) Configure all Apache instances to listen to a package re-locatable IP address using Listen
directives. For more information on configuring virtual hosts, see to the Apache Web Server
documentation.
For example, the configuration files for an Apache instance that combines IP-based and
name-based virtual hosts includes the following directive:
Listen 192.168.0.1:80
Listen 192.168.0.2:80
NameVirtualHost 192.168.0.2:80
<VirtualHost web.site1.url:80>
ServerName web.site1.url
DocumentRoot /shared/httpd/www-site1
</VirtualHost>
<VirtualHost web.site2.url:80>
ServerName web.site2.url
DocumentRoot /shared/httpd/www-site2
</VirtualHost>
These steps enable you to customize the way the Apache instance starts using the Apache toolkit
on a node. After completing this procedure, you can install the Apache toolkit and configure the
Apache Web Server package in the Serviceguard environment.
Installing the High Availability Apache Toolkit
The Linux Apache toolkit is available at http://www.software.hp.com/ as ‘Serviceguard for Linux
Apache Toolkit’ that comes bundled within the ‘Serviceguard for Linux Contributed Toolkit Suite’.
The Linux Apache toolkit has to be installed on all the nodes of the cluster that have been
configured to run the apache web server package. Before you install this version of the toolkit, you
must remove previous versions from your system. To remove the previous version, complete the
following procedure:
1. Enter the following command to check the version of the toolkit:
#rpm qa | grep apache
The previous versions of the toolkit, if any, are listed in the output.
2. Enter the following command to remove the previous version of the toolkit:
#rpm e apache-<release_version>.product.redhat.noarch.rpm
To ensure that the toolkit has been removed from all the configured nodes of the cluster, the ‘rpm
qa’ command can be executed again as mentioned above on all the nodes configured to run the
Apache Web Server package.
After the previous versions of the toolkit have been removed, one can proceed with the installation
of the Linux Apache toolkit. Upgradation of the Linux Apache toolkit without removing its previous
version or a forceful installation of the toolkit is not recommended. To install the Apache Web
server complete the following:
On Red Hat systems:
#rpm i apache-toolkit-<release_version>.product.redhat.noarch.rpm