Install Tomcat 5.5 on Debian

October 3rd, 2007

Tags: , , ,


You can install tomcat 5.5 in 4 steps, but the last one takes you a while if you are a newbie to tomcat. Also be aware of the security implications, which are there is no security check at all! I use it only locally for testing purposes, you SHOULD NOT use it in a production environment!

1. install required packages

  1. apt-get install tomcat5.5 tomcat5-5-admin tomcat5.5-manager

2. link web applications to web application directory

  1. ln -s /usr/share/tomcat5.5/server/webapps/manager /var/lib/tomcat5.5/webapps
  2. ln -s /usr/share/tomcat5.5/server/webapps/admin /var/lib/tomcat5.5/webapps

3. To enable administration and management add this to /usr/share/tomcat5.5/conf/tomcat-users.xml

  1. <user username="admin" password="PASSWORD" roles="admin,manager"/>

4. disable security manager by adding the following line to /etc/default/tomcat5.5

  1. TOMCAT5_SECURITY=no

Sources: Install Tomcat 5.5 in Debian and Ubuntu by subjam