This procedure installs a non-secure version of the Apache webserver. For procedures for installing a secure Apache webserver, see Installing a Secure Apache Webserver.
Place the Web server binaries on the local file system on each of your cluster nodes or on a cluster file system.
Become superuser on a cluster member.
Install the Apache software using the installation procedures found in the Apache installation documentation.
Install the Apache software using the Apache installation documentation you received with your Apache software or see the installation instructions at http://www.apache.org.
Update the httpd.conf configuration file.
Set the ServerName directive. (In Version 2.0 of Apache, the ServerName directive specifies the hostname and the port.)
Set the BindAddress directive (optional). (The BindAddress directive only exists in versions prior to Apache 2.0. For Apache 2.0, see the following bullet for the Listen directive.)
Set the Listen directive. The Listen directive must use the address of the logical host or shared address. (The Listen directive only exists in Apache 2.0 and beyond. For Apache versions prior to Apache 2.0, see the previous bullet for the BindAddress directive.)
Set the ServerType, ServerRoot, DocumentRoot, ScriptAlias, and LockFile directives.
The ServerType directive does not exist in Apache 2.0.
Set the Port directive to the same number as the Port_list standard resource property. See Step 4 for more information.
Make changes to run as a proxy server if you choose to run the Apache software as a proxy server. See the Apache documentation for more information. If you will run the Apache software as a proxy server, the CacheRoot setting must point to a location on the cluster file system.
Verify that the port number or numbers in the httpd.conf file 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). Alternatively, while you configure Sun Cluster HA for Apache, you can set the Port_list standard property to match the setting in the httpd.conf file.
Update the paths in the Apache start/stop script file (Bin_dir/apachectl).
You must change the paths from the Apache defaults to match your Apache directory structure. For example, change the line in the BIN_dir/apachectl script beginning with HTTPD=/usr/local/apache/bin/httpd to the following.
HTTPD='/usr/local/apache/bin/httpd -f /global/foo/apache/conf/httpd.conf'
Perform the following tasks to verify your configuration changes.
Run apachectl configtest to check the Apache httpd.conf file for correct syntax.
Ensure that any logical hostnames or shared addresses that Apache uses are configured and online.
Issue apachectl start to start up your Apache server by hand.
If Apache does not start up correctly, correct the problem.
After Apache has started, stop it before moving to the next procedure.