Sun Cluster 2.2 Data Services Update: Apache Web Server

Installing and Configuring Sun Cluster HA for Apache

Prior to configuring Sun Cluster HA for Apache, you must install and set up the Sun Cluster and Apache products.

You configure Sun Cluster HA for Apache by using the hadsconfig(1M) command. See the man page for details.

How to Install and Configure Sun Cluster HA for Apache
  1. On all nodes, install the Sun Cluster patch that enhances the scinstall(1M) command to recognize Sun Cluster HA for Apache. The patch is available from your service provider or from the Sun patch Web site http://sunsolve.sun.com.

  2. On each Sun Cluster node that is a potential master of the logical host on which Apache is installed, run the scinstall(1M) command to install the Sun Cluster HA for Apache package, SUNWscapc, and supporting packages in the default location.

  3. On all nodes, install the Sun Cluster patch that enhances the hadsconfig(1M) command to recognize Sun Cluster HA for Apache.

  4. On one node only, run the hadsconfig(1M) command to create, edit, or delete instances of the Sun Cluster HA for Apache, as follows:


    phys-hahost1# hadsconfig
    

    For information on input to supply to hadsconfig(1M), see "Understanding the Configuration Parameters".

  5. If the service is not yet registered, run the hareg(1M) command on one node only to register the Sun Cluster HA for Apache data service.

    To register the service on the logical host only, include the -h option and logical host name, as follows:


    phys-hahost1# hareg -s -r apache -h logicalhost
    

  6. On one node only, run the hareg(1M) command to enable Sun Cluster HA for Apache and perform a cluster reconfiguration, as follows:


    phys-hahost1# hareg -y apache
    

  7. Confirm your Apache Web Server operation by establishing a telnet connection to your logical host, where the service is listening. For example:


    # telnet logicalhost port-number