Installing and Configuring Apache Toolkit for Serviceguard for Linux

4. Edit the package control script.
You must specify the following parameters to integrate multiple instances of the Apache server.
The remaining parameters in the file must be configured as per the instructions for configuring a
single instance package.
VG[0]="/dev/vgtry2"
LV[0]="/dev/vgtry2/lvol"; FS[0]="/mnt/vgtry2/apache
";
IP[0]="15.70.191.7"
SUBNET[0]="15.70.191.0"
SERVICE_NAME[0]="apache2_service"
SERVICE_CMD[0]="/usr/local/cmcluster/pkg/apache2/toolkit.sh
monitor"
function customer_defined_run_cmds
{
/usr/local/cmcluster/pkg/apache2/toolkit.sh start
test_return 51
}
function customer_defined_halt_cmds
{
/usr/local/cmcluster/pkg/apache2/toolkit.sh stop
test_return 52
}
5. Edit the Apache toolkit configuration file.
Edit the apache toolkit configuration file hahttp.conf. You must specify the following
parameters to integrate multiple instances of the Apache server. The remaining parameters in
the file must be configured as per the instructions for configuring a single instance package.
HTTPD_CONFIG_FILE="/mnt/vgtry2/apache/httpd.conf"
Configure the PID_FILE parameter with the path for pid file for the corresponding instance.
For example:
PID_FILE="/usr/local/cmcluster/pkg/apache2/httpd_s1.pid"
6. Edit the listen parameter.
Edit the listen parameter in the httpd.conf file if Red Hat and in the listen.conf file if SLES
such that the specified port is not being listened to by any other application.
Listen <port_number>.
7. Edit the other Apache configuration files.
Edit the corresponding httpd.conf file and other Apache configuration files placed in the
server root directory, based on the requirements of your environment. For more information on
editing the configuration files, see Configuring a Single Instance.
8. Copy the package directory to all other package nodes.
Copy the package directory to the other nodes in the cluster.
For example. Change to the parent directory of the package directory and enter the following
command:
#rcp -r p /usr/local/pkg/cmcluster/apache2 photon4:$PWD/
9. Applying the package configuration file.
Apply the package configuration on any node. For example, node photon3.
Enter the following command to apply the configuration file:
#cmapplyconf -P pkg.conf
Enter the following command to view the package details:
#cmviewcl