How to install Tomcat6 on RHEL/CentOS 5

During my first time setup of tomcat6 on CentOS 5, I struggled to get the tomcat6 version working correctly, this drove me to write this tutorial, I hope this tutorial will help you.

1. Goto yum repository configuration directory: cd /etc/yum.repos.d

2. Download tomcat repo file: wget ‘http://www.jpackage.org/jpackage50.repo’

3. Now update yum repositories on your system: yum update

4. Its time now to install the packages for tomcat6:

yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps

5. Start the tomcat6 service: /etc/init.d/tomcat6 start

If you have problems accessing the server from another machine you may need to do the following:

1. Setup

2. Firewall Configuration

3. Customize

4. “Other ports” 8080:tcp

UPDATE:
If you get a dependency error try this:

  • rpm -Uvh ‘http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm’

Leave a Reply

Your email address will not be published. Required fields are marked *