Installing and Configuring Apache Toolkit for Serviceguard for Linux

In this method, the server root directory and the document root directory are maintained on a
volume group that is shared among nodes of the cluster.
Following is a sample procedure that indicates the steps that you must complete to configure an
Apache instance that uses shared storage for all Apache instance data. It is assumed that you will
configure all Apache instance files on a shared file system /mnt/vgtry1/apache directory, which
resides on a logical volume lvol from a shared volume group /dev/vgtry1.
1. Create a Volume Group vgtry1 on shared storage.
2. Create a Logic Volume lvol in vgtry1.
3. Create a filesystem on the above created logical volume lvol.
4. Create a directory /mnt/vgtry1/apache on local disk.
5. Mount device /dev/vgtry1/lvol to the /mnt/vgtry1/apache
6. Copy all files from the server root to /mnt/vgtry1/apache.
In a SUSE Linux environment, use the -c option to preserve security contexts.
The steps for configuring a local volume group remain the same except that for the shared storage
configuration, you need to execute these steps on a shared storage device. In case of a local
storage configuration, you must execute these steps on a local storage device.
Note: The default server root directory is located at the following location:
Red Hat: /etc/httpd
SLES: /etc/apache2
Complete the following procedure to configure a single instance:
1. To create the apache package directory.
Before starting the package configuration, you must create a directory (for example
/usr/local/cmcluster/pkg/apache1) for this Apache package to run.
This directory must belong to a single Apache package. To create an Apache Package
directory, complete the following steps:
a. Copy all Apache toolkit scripts from /usr/local/cmcluster/apachetoolkit to
/usr/local/cmcluster/pkg/apache1.
Example:
# mkdir /usr/local/cmcluster/pkg/apache1
# cd /usr/local/cmcluster/pkg/apache1
# cp /usr/local/cmcluster/apachetoolkit/* .
b. To create the package configuration file (pkg.conf) and package control script
(pkg.cntl), you must be in the package directory.
Example:
#cd /usr/local/cmcluster/pkg/apache1
c. To create the package configuration file and the package control script, enter the
following commands:
To create the package configuration file:
#cmmakepkg -p pkg.conf
To create the package control script:
#cmmakepkg -s pkg.cntl
After you have completed these steps, the package directory consists of the following files:
README The Readme file
hahttp.conf User defined variables
hahttp.sh The main shell script
hahttp.mon Script that monitors the health of the server application