Ubuntu: How to install Tomcat 6 from a zip?


I have extracted the zip package in my home folder and I want to access webapps folder through localhost:8080, which files I have to change in order to get this done?

I have installed java-6-sun, paths JAVA_HOME and CLASSPATH are set.

Edit: I work on Ubuntu 12.04.


IMHO Mitch's answer looks like it has a little error in it, assuming that Lunar did not unzip to /usr/share/tomcat6. If you are installing from the zip, then you should not be using /usr/share/tomcat6/bin/startup.sh instead you should be using $TOMCAT_HOME/bin/startup.sh where $TOMCAT_HOME is the directory that you unzipped into. If you continue to have problems, please enter $TOMCAT_HOME and issue the following commands, and show me the output

pwd  sh bin/startup.sh  cat logs/catalina.out  

Then, please attempt to load http://localhost:8080 and tell me the result seen in the browser.


We just installed Tomcat7 at work, and it rund great.

To install Tomcat 6, just unzip it with tar -zxvf apache-tomcat-6.0.35.tar.gz. Then just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, switch to the directory were you unzipped, and run the command below.

sudo /usr/share/tomcat6/bin/startup.sh    sudo /usr/share/tomcat6/bin/shutdown.sh  

To start as a service

sudo /etc/init.d/tomcat6 start  

In case you want another way of installing tomcat, tust press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo apt-cache search tomcat  sudo apt-get install tomcat6  sudo apt-get install tomcat6-admin  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »