Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to download Apache Tomcat 5.5.x, navigate to the Apache Tomcat website (http://tomcat.apache.org/) and click on the Tomcat 5.x link under the Download section.  The following screen will allow you to download the latest version of Apache Tomcat, which is 5.5.23 as of July 2007.  Under the "Binary Distributions" section of 5.5.23, choose to download the TAR.GZ version of the Core distribution as seen in the screenshot below.

Once you have downloaded the TAR.GZ, you simply need to extract the files from it into the directory where Tomcat will live.  This needs to be the same as the CATALINA_HOME environment variable we set earlier (/usr/local/tomcat).  Also, Tomcat needs a user account to run as, so we will create the "tomcat" user and give it permission to the Tomcat directory.

Panel

 [root@localhost local]# wget http://mirror.nyi.net/apache/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.tar.gz
-14:47:17http://mirror.nyi.net/apache/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.tar.gz
           => `apache-tomcat-5.5.23.tar.gz'
Resolving mirror.nyi.net... 64.90.181.77
Connecting to mirror.nyi.net|64.90.181.77|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5,977,561 (5.7M) [application/x-gzip]

100%[=================================================================================================================>] 5,977,561    661.79K/s    ETA 00:00

14:47:26 (638.93 KB/s) - `apache-tomcat-5.5.23.tar.gz' saved [5977561/5977561]

[root@localhost local]# tar -xzf apache-tomcat-5.5.23.tar.gz
[root@localhost local]# useradd tomcat
[root@localhost local]# chown tomcat:tomcat -R apache-tomcat-5.5.23
[root@localhost local]# ln -s apache-tomcat-5.5.23 tomcat
[root@localhost local]# ls -l
total 80
lrwxrwxrwx  1 root   root     17 Jun 22 13:14 ant -> apache-ant-1.7.0/
drwxr-xr-x  6 root   root   4096 Jun 22 13:13 apache-ant-1.7.0
drwxr-xr-x 11 tomcat tomcat 4096 Jun 22 12:45 apache-tomcat-5.5.23
drwxr-xr-x  2 root   root   4096 Oct 10  2006 bin
drwxr-xr-x  2 root   root   4096 Oct 10  2006 etc
drwxr-xr-x  2 root   root   4096 Oct 10  2006 games
drwxr-xr-x  2 root   root   4096 Oct 10  2006 include
drwxr-xr-x  2 root   root   4096 Oct 10  2006 lib
drwxr-xr-x  2 root   root   4096 Oct 10  2006 libexec
drwxr-xr-x  2 root   root   4096 Oct 10  2006 sbin
drwxr-xr-x  4 root   root   4096 Mar 16 04:26 share
drwxr-xr-x  2 root   root   4096 Oct 10  2006 src
lrwxrwxrwx  1 root   root     20 Jun 22 12:43 tomcat -> apache-tomcat-5.5.23
[root@localhost local]#

...