HP-UX has a package available for download that includes Tomcat, Apache, and the mod_jk connector. If using the HP-UX Web Server Suite then only the "Configure Apache and Tomcat" step is necessary. See the link in the Related Information section.
Consider the following during the installation:
The compression package that is used must be installed. Both 'tar' and 'uncompress' are usually included with the operating system.
Some browsers automatically uncompress files as they are downloaded. If problems are encountered while uncompressing a file, compare the size of the downloaded file to the original size of the file on the host site. If they are substantially different, the downloaded file was probably uncompressed.
Perl is usually installed with the operating system; see the 'perl' executable under /usr/bin. Check the version of perl installed and referenced on the system by typing 'perl -version'.
In most cases, the GNU GCC compiler is installed. Check the version of the GCC compiler installed by typing 'gcc -v' at the command prompt.
Verify that GCC Compiler version 2.95.3 or higher is present on the system.
Make compiler is also installed with the operating system; see the 'make' executable under /usr/bin. Make is a tool that controls the generation of executables and other non-source files of a program from the program's source files.
Root privileges are required to install Perl, GNU GCC, and Make compiler packages.
Verify the path to the 'perl' compiler, the 'gcc' compiler, and the 'make' compiler are in the PATH variable. That is, 'set PATH = (/usr/bin /usr/local/bin $PATH)', located in .cshrc, .bashrc, or .profile.
Download and install Java 2 SDK, Standard Edition version 1.4.2_06.
Follow the instructions available on the same site for installing the 'SDK version 1.4.2.06' to '/opt/java1.4'.
Record the installed location for use when setting the JAVA_HOME environment variable later.
Download and install Apache version 2.0.xx.
In the steps below, it is assumed that Apache 2.0.48 is used. If a different version was downloaded, replace the file name where mentioned.
Root permissions are assumed when following this document. The default HTTP port of 80 requires root privileges, and the Apache install location of /usr/local/apache also requires root privileges. If the 'root' account is not being used, then certain steps fail.
Click 'httpd-2.0.48.tar.gz' to download the Apache Web Server version 2.0.48. This file contains a compressed archive of Apache Web server source code.
Uncompress this file in a temporary location, that is, $TEMP, by typing:
An archive file is created named 'httpd-2.0.48.tar.' To untar this archive, type:
tar -xvf httpd-2.0.48.tar
The source code for the Apache Web server should be extracted into a directory named 'httpd-2.0.48' in the $TEMP location.
Navigate to the $TEMP/httpd-2.0.48. Decide on a location to install the Apache Web server, for example, /usr/local/apache.
The directory '/usr/local/apache' is now created.
Set the environment variable 'APACHE_HOME' to the new installation location for Apache. For example, '/usr/local/apache' was used in this article. If using bash, ksh, or sh type:
If using csh, we would type:
setenv APACHE_HOME /usr/local/apache
This setting may then be checked by typing:
It is highly recommended that this environment variable be added to root's initialization file: .cshrc, .bashrc, or .profile. The steps necesssary depend on the OS and shell settings being used. The initialization file needs to be sourced after the edits, for them to take effect. If this is not done, the APACHE_HOME variable must be set manually before starting and stopping Apache.
Setup a default Web page for Apache, by copying the '$APACHE_HOME/htdocs/index.html.en' file to '$APACHE_HOME/htdocs/index.html'. Type:
cp index.html.en index.html
Open the '$APACHE_HOME/conf/httpd.conf' file in a text editor and change the values for ServerName and Listen (Port) to reflect the system environment. For example, a system with a DNS name of 'gis.esri.com' using the default port of '80' would have:
Root privileges are required to use a port below 1024. The # symbol must be removed from the beginning of a line in the 'httpd.conf' file for the contents of the line to be recognized.
Start Apache by navigating to $APACHE_HOME/bin and typing:
Open a browser and load the Web site root: http://<Servername>:<ServerPort>.Include the port number if the default port of '80' is not being used. The default page should be displayed. The default page for an Apache Web site contains the phrase "It Worked! The Apache Web Server is Installed on this Web Site!" along with some additional text. Use the previous example, open a browser and type:
If the default page appears, continue to step M.
If the page is not displayed, check the following:
To make sure the Apache daemons are running, type
ps -ef | grep -i apache
If the port number is not the default (80), make sure it is appended on the Web server URL (for example, http://www.website.com:2004 - where '2004' is the Web server port).
Make sure the Web server port is not already being used.
netstat –an | grep <ServerPort>
Make sure the ServerName variable is correct; also, try commenting out the ServerName variable by placing a # in front of it.
Check the Apache Web server log files for additional information that are located in $APACHE_HOME/logs.
Once Apache is confirmed to be working, stop Apache by navigating to $APACHE_HOME/bin and typing:
Download and install Jakarta-Tomcat 5.0.xx.
In the steps below it is assumed that Tomcat 5.0.25 is used. If a different version was downloaded, please replace the file name where mentioned.
Click the following link to download the file jakarta-tomcat 5.0.25.tar.gz. This file contains a compressed archive of Jakarta-Tomcat binary code.
Decide on a location to install the Tomcat Servlet Engine. For example /usr/local/jakarta-tomcat-5.0.25.
Uncompress the file by typing:
The file 'jakarta-tomcat-5.0.25.tar' will be created. Untar this archive by typing:
tar -xvf jakarta-tomcat-5.0.25.tar
The directory structure and files associated with the binary version of Tomcat will be created in the 'jakarta-tomcat-5.0.25' directory. See notes mentioned in the Before Beginning section if problems occur.
Move the directory to the location decided on in step B, for example '/usr/local/tomcat5.0.25'.
Navigate to $APACHE_HOME/conf and open httpd.conf with a text editor.
Add the following line to the bottom of the LoadModule Section:
LoadModule jk2_module modules/mod_jk2.so
Save and close the file.
Navigate to $APACHE_HOME/bin and start the Apache web server:
Navigate to $CATALINA_HOME/bin and start the Tomcat servlet engine:
Open a Web browser and navigate to the following URL: http://<server_name>/servlets-examples. Choose the 'servlet/' link. Execute the Hello World example. If a response containing Hello World! is returned, then Apache and Tomcat are communicating as expected.
Install ArcIMS 9.1 from the installation CD. Refer to the ArcIMS 9.1 Installation Guide, Step 3a.
To configure ArcIMS 9.1, run the ArcIMS Post Installation. Refer to the ArcIMS 9.1 Installation Guide, Step 3b.
At the end of the Post Installation, running the ArcIMS Web Server Configuration is required. This script must be run as 'root'. To manually configure Apache 2.0.xx with Tomcat 5.0.xx for ArcIMS, refer to the ArcIMS Installation Guide Step 4: Configure your Web server.
For the final steps to get ArcIMS running, see the ArcIMS Installation Guide, "Step 5: Configuring ArcIMS".