Sun Cluster 3.0 Data Services Installation and Configuration Guide

How to Install and Configure the Apache Application Software

  1. Become superuser on a node in the cluster.

  2. Install Apache by using the steps described in Apache documentation.

    Refer to the documentation you received with your Apache software or to the Apache Web site: http://www.apache.org.

  3. Update the httpd.conf configuration file.

    • Set the ServerName directive.

    • Set the BindAddress directive (optional).

    • Set the ServerType, ServerRoot, DocumentRoot, ScriptAlias, and LockFile directives.

    • Set the Port directive to the same number as the Port_list standard resource property. See the next step for more information.

    • Make changes to run as a proxy server if you choose to run Apache as a proxy server. See the Apache documentation. If you will be running Apache as a proxy server, the CacheRoot setting must point to a location on the cluster file system.

  4. Verify that the port number or numbers in httpd.conf match those of the Port_list standard resource property.

    You can edit the httpd.conf configuration file to change its port number or numbers to match the standard Sun Cluster resource property default (port 80); or, while configuring Sun Cluster HA for Apache, you can set the Port_list standard property to match the setting in httpd.conf.

  5. (Optional) If you will be using the Apache start/stop script Bin_dir/apachectl, update the paths in the script file.

    You must change the paths from the Apache defaults to match your Apache directory structure.

  6. Verify your configuration changes.

    Check the Apache httpd.conf file for correct syntax by running apachectl configtest.

    Ensure that any logical host names or shared addresses in use by Apache are configured and online.

    Start up your Apache server by hand by issuing apachectl start. If Apache does not start up correctly, correct the problem.

    After Apache has started, stop it before moving to the next procedure.

Where to Go from Here

If the data service packages for Apache have not been installed from the Sun Cluster data service CD, go to "Installing Sun Cluster HA for Apache Packages". Otherwise, go to "Registering and Configuring Sun Cluster HA for Apache".