Centos – Install Tomcat5 on CentOS 6.4

centostomcatyum

I'm trying to port an old application to a new server and need to install Tomcat5 on CentOS 6.4. This is apparently not a straightforward task.

When I try:

yum install tomcat5 tomcat5-admin-webapps tomcat5-webapps

I receive

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.easynews.com
 * extras: centos.mirror.freedomvoice.com
 * updates: yum.phx.singlehop.com
Setting up Install Process
No package tomcat5 available.
No package tomcat5-admin-webapps available.
No package tomcat5-webapps available.
Error: Nothing to do

How can I go about getting the older version of Tomcat installed and running?

Best Answer

Tomcat 5 is not available in CentOS repo , you need to install it manually.

 1. Download the version from the below link
    http://archive.apache.org/dist/tomcat/tomcat-5/
 2. Extract the downloaded file.
 3. Change the permission for the conf folder.
 4. start the tomcat from startup.sh file inside the bin directory.

Make sure you have JAVA installed on your server.