July 2004
10
Open your web browser and browse to http://localhost.
Result: The Apache index page appears.
11
On the shell prompt, type the following command to stop the web server
before you continue with the next procedure:
/sbin/service httpd2 stop
To install Tomcat
1
Ensure that you are logged on the External Web server as the root user.
2
Copy the jakarta-tomcat-4.1.29.tar.gz (or later) file to the /opt directory.
3
Type the following command to unzip the file:
tar -zxvf jakarta-tomcat-4.1.29.tar.gz
Note: You can create a symbolic link to the jakarta-tomcat directory to
shorten the name of the installation folder.
4
Go to the /etc/ directory.
5
Use the gedit command to open the profile file.
6
Add the following line to edit the environment variable:
export TOMCAT_HOME=<directory path to Tomcat
installation>
7
Add the following line to add CATALINA_HOME as an environment
variable:
export $CATALINA_HOME=<directory path to Tomcat
installation>
8
Save and close the profile file.
9
On the Shell prompt, type the following command to verify the setup of
TOMCAT_HOME:
echo $TOMCAT_HOME
Result: The directory in which you installed Tomcat appears. If this
directory does not appear, you must correct it before proceeding.
10
Start Tomcat with the following command:
$CATALINA_HOME/bin/startup.sh
Note: You can create an alias to start and stop the Tomcat service.
Installation and Administration Guide
Installing the External Web server components on Linux
615