Sun Cluster 2.2 Data Services Update: Apache Web Server

Installing the Apache Web Server Software

For standard Apache installation instructions and details on the Apache Web Server software, see the Apache Web site at:

http://www.apache.org

How to Download, Uncompress, and Untar the Binaries

Sun Cluster 2.2 supports Apache Web Server version 1.3.9 for the Solaris(TM) 8 operating environment. You can download this version from the Apache Web site at http://www.apache.org either as a binary distribution or as source files. If you choose the source files, you can compile them on the local machine. We recommend the binary distribution. Do the following:

  1. Make a directory for the Apache installation script:


    % mkdir script-dir
    
  2. Go to the Apache Web site: http://www.apache.org and download the binary distribution. Save the file in script-dir.

    Typically, the downloaded file is in compressed gzip and tarred format named filename.gz.tar.

  3. Uncompress the binaries by typing:


    % gzip -d filename.gz.tar
    

  4. Untar the resulting file by typing:


    % tar -xvf filename.tar
    

The directory then contains the installation scripts.

How to Install the Apache Web Server
  1. Run the install-bindist.sh script and supply the name of the directory on the multihost disk on which the server is to be installed, as follows:


    phys-hahost1# ./install-bindist.sh install-dir
    

    The install-dir directory is the multihost disk on which the binary distribution is to be installed. If you do not specify install-dir, Apache uses /usr/local/apache as the destination directory, which resides on the local disk only.

    The following is then displayed:


    install-bindist.sh install-dir
    Installing binary distribution for platform sun4u-sun-solaris2.80 into directory install-dir ...
    Ready.
    You now have successfully installed the Apache 1.3.9 HTTP server.
    To verify that Apache actually works correctly you should first
    check the (initially created or preserved) configuration files:
    install-dir/conf/httpd.conf
    You should then be able to immediately fire up Apache the first
    time by running:
    install-dir/bin/apachectl start
    Thanks for using Apache.
    The Apache Group
    http://www.apache.org/

  2. Edit the install-dir/conf/httpd.conf file, as follows:

    1. Redefine the property of ServerName to be the logical host name (rather than the physical host name).

      This step is necessary for Sun Cluster HA for Apache to fail over correctly.

    2. Set the property port to the port on which the Apache Web Server listens.

      The default and most commonly used port number for Apache is 80.

  3. (Optional) Further customize install-dir/conf/httpd.conf as required.