Installation guide

step. Specify the drive letter and the partition number. For example:
# mkfs -t ext3 /dev/sde3
3. Mount the file system that contains the document root directory. For example:
# mount /dev/sde3 /var/www/html
Do not add this mount information to the /etc/fstab file because only the cluster software can
mount and unmount file systems used in a service.
4. Copy all the required files to the document root directory.
5. If you have CGI files or other files that must be in different directories or in separate partitions,
repeat these steps, as needed.
A.3. Installing and Configuring the Apache HTTP Server
The Apache HT T P Server must be installed and configured on all nodes in the assigned failover
domain, if used, or in the cluster. T he basic server configuration must be the same on all nodes on which
it runs for the service to fail over correctly. T he following example shows a basic Apache HT T P Server
installation that includes no third-party modules or performance tuning.
On all node in the cluster (or nodes in the failover domain, if used), install the httpd RPM package. For
example:
rpm -Uvh httpd-<version>.<arch>.rpm
To configure the Apache HT T P Server as a cluster service, perform the following tasks:
1. Edit the /etc/httpd/conf/httpd.conf configuration file and customize the file according to
your configuration. For example:
Specify the directory that contains the HTML files. Also specify this mount point when adding
the service to the cluster configuration. It is only required to change this field if the mount point
for the web site's content differs from the default setting of /var/www/html/. For example:
Docum entRoot "/mnt/httpdservice/html"
Specify a unique IP address to which the service will listen for requests. For example:
Listen 192.168.1.100:80
This IP address then must be configured as a cluster resource for the service using the
Cluster Configurat ion Tool.
If the script directory resides in a non-standard location, specify the directory that contains the
CGI programs. For example:
ScriptAlias /cgi-bin/ "/mnt/httpdservice/cgi-bin/"
Specify the path that was used in the previous step, and set the access permissions to default
to that directory. For example:
Red Hat Enterprise Linux 4 Cluster Administration
82