How to Install and Configure Apache-Tomcat 6 on Debian 5 LENNY with apache2

This article is a „how to“ to install the tomcat with apache 2. I will try to explain each and every step so that if anything goes wrong one can revert it or can easily figure out the problem and correct it.

Installing Java 6 runtime:

Please try to install sun JDK because there is a big difference between configurations of sun JDK and open JDK. Installation of sun JDK is given as under;

Sun JDK (non-free)

deb http://ftp.de.debian.org/debian/ lenny main non-free

deb-src http://ftp.de.debian.org/debian/ lenny main non-free

Please copy and paste the above lines and add in /etc/apt/sources.list

vi /etc/apt/sources.list

Please update the aptitude by using the under given command.

aptitude update

aptitude install sun-java6-jdk

Read more