Hi,

I am trying to install Tomcat (version 5.5.17) on SLES9 for the first
time.  Is there an installation guide I can follow that will help me
with the installation and setup ?

Tomcat 5.5 is designed to run on J2SE 5.0 and later and uses the
Eclipse JDT Java compiler for compiling JSP pages.  This means you do
not need to have the complete Java Development Kit (JDK) to run
Tomcat, but a Java Runtime Environment (JRE) is sufficient.

You will find below the steps I've followed

1 - Download and Install the J2SE Runtime Environment (JRE) from
http://java.sun.com/j2se.
I installed J2SE Runtime Environment in the form of RPM packages, not
the self-extracting binary file (as a root:
./jre-1_5_0_<version>-linux-i586-rpm.bin)

NB: Self-extracting Binary File - This file can be used to install the
J2SE Runtime Environment in a location chosen by the user. This one
can be installed by anyone (not only root users), and it can easily be
installed in any location. As long as you are not root user, it cannot
displace the system version of the Java platform suppled by Linux.

Verify that the software has been installed:
tuna:/home/lams # rpm -qa | grep jre
jre-1.5.0_05-fcs

Remember also to set an environment variable named JAVA_HOME to the
pathname of the directory into which you installed the JRE, in this
case: /usr/java/jre1.5.0_05. To have it set globally, create the file
profile.local in /etc and write:
export JAVA_HOME=/usr/java/jre1.5.0_05

2 - Download and Install the Tomcat Binary Distribution

- ln -s apache-tomcat-5.5.12/ tomcat-test
- copy the start-up file to /etc/init.d and modify it with the right path
- insserv –d tomcat-test to automatically start it at boot time
- create the user tomcat and change the permission on the folder
- Tomcat's administration web application is no longer installed by
default. Download and install the "admin" package to use it.
cp -R server/webapps/admin/ /opt/jakarta/tomcat/server/webapps/
cp conf/Catalina/localhost/admin.xml
/opt/jakarta/tomcat/conf/Catalina/localhost/
chown –R tomcat.tomcat on /opt/jakarta/tomcat

Kind regards,

Gael

Reply via email to