HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)

6. To configure the PID_FILE parameter with the path for pid file for the corresponding instance,
run:
PID_FILE="$SGCONF/pkg/apache2/httpd_s1.pid"
7. To edit the listen parameter in the httpd.conf file such that the specified port is not being
listened to by any other application, run:
Listen <port_number>.
8. Edit the corresponding httpd.conf file, and the other Apache configuration files placed in
the server root directory.
9. 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 node2:$PWD/
10. To apply the package configuration, run:
# cmapplyconf -P pkg.conf
11. To view the package details, run:
# cmviewcl
12. To enable the AUTORUN parameter, run:
# cmmodpkg e <package_name>
13. To enable package switching, run:
# cmmodpkg e -n node-1, -n node-2 ... -n node-n <package_name>
Configuring modular Apache toolkit packages
To configure modular Apache toolkit packages:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir $SGCONF/pkg/Apache
2. cd to the package directory.
3. Create the package configuration template using the cmmakepkg command:
Configuration template: # cmmakepkg -m tkit/apache/apache pkg_apache.conf
4. Edit the following attributes of Apache toolkit parameters. Table 6 (page 16) lists all the
attributes of Apache toolkit parameters that you can edit.
Table 6 List of attributes that you can edit
DescriptionAttribute
This directory holds the toolkit configuration file. This
parameter directs the cmapplyconf command to
TKIT_DIR
generate the hahttp.conf file under this directory.
To put toolkit into maintenance mode, create
apache.debug under this directory. This is synonymous
with the package directory acronym.
Define a configuration file httpd.conf for this specific
Apache server instance.
HTTPD_CONFIG_FILE
For example,
HTTPD_CONFIG_FILE /etc/httpd_s1/
httpd.conf
16 Apache Toolkit