How to install Tomcat in Ubuntu
Install Tomcat in Ubuntu is very easy. We can either install manually or with help of apt-get install.
Apt-get Install
1) Find a correct tomcat package to install
sudo apt-cache search tomcat
2) Install all Tomcat package with following command
sudo apt-get install tomcat5.5-webapps sudo apt-get install tomcat5.5-admin sudo apt-get install tomcat5.5
3) Done
apt-get help Ubuntu to configure almost everything and create a script put inside init.d folder for Tomcat auto startup script. we can start/stop/restart Tomcat with following command
/etc/init.d/tomcat5.5 start /etc/init.d/tomcat5.5 stop /etc/init.d/tomcat5.5 restart
apt-get help to create a share folder in /usr/share also, please access
cd /usr/share/tomcat5.5
and issue a ls -lh in /usr/share/tomcat5.5 to find out the rest of the Tomcat location.
drwxr-xr-x bin drwxr-xr-x common lrwxrwxrwx conf -> /etc/tomcat5.5 lrwxrwxrwx doc -> ../doc/tomcat5.5 lrwxrwxrwx logs -> /var/lib/tomcat5.5/logs drwxr-xr-x server lrwxrwxrwx shared -> /var/lib/tomcat5.5/shared lrwxrwxrwx temp -> /var/lib/tomcat5.5/temp lrwxrwxrwx webapps -> /var/lib/tomcat5.5/webapps lrwxrwxrwx work -> /var/lib/tomcat5.5/work
Manually Install
This is even more easy that apt-get
1) Visit http://tomcat.apache.org/ to download Tomcat
2) Unzip it with tar -zxvf Tomcatxxx.tar
tar -zxvf apache-tomcat-6.0.16.tar.gz
3) No make or configuration required, just change to tomcat bin folder to start or stop Tomcat
:~/Desktop/apache-tomcat-6.0.16/bin$ sh startup.sh :~/Desktop/apache-tomcat-6.0.16/bin$ sh shutdown.sh
4) Done
Personally i more prefer to install application manually, because it give full control of where application folder should be store.

In this grand scheme of things you actually get an A for effort. For the moment I will subscribe to your issue.
This blog is awesome. It helped me to solve problems many times. Just wanted to thank you.
Great MK, always your site helps me.
I want to manually install apache server and configure it to run php with mysql … how do I go about that?
hi sir,
i want to install tomcat in linux manually without using apt-get,
i downloaded the source and done as you said but i am not getting the admin console screen.
when i am entering http://localhost:8080/ just it is showing “It works” page.from here i can not access my admin console.
how can i slove this?
please explain me.
i was new to tomcat in linux. i got this useful. thank you lot.
i wanted how to install tomcatserver in ubuntu 10.10, 32 bit
Is above solution not working at your end?
i have knowledge about java and advance java
i am quit familar with core java programming and have also have knowledge about j2ee
but i want to install j2ee and use it
please guide me what is the exact link and to install it its complete path setting
pls give me tutorial link that …how to install mysql 5.1 tar file in ubuntu ?
Noted
See this link:
http://diegobenna.blogspot.com/2011/01/install-tomcat-7-in-ubuntu-1010.html
for install tomcat7 on Linux (Ubuntu 10.10 tested)
Just wanted to thank you for concise and clear instructions that I follow.
Thank you!!!
-Vlad
I’ve found this link while looking for a installation manual. But it is not very actual any more.
Thus I blogged about installing tomcat 7 on ubuntu.
Have a look:
http://wiki.v-collaborate.com/display/BLOG/2010/12/08/Install+Apache+Tomcat+7+on+ubuntu+and+debian
Thanks for the instructions. I use manual install because I wanted to install an older version.
I see, thanks for your update.
Just for your reference, you can install all these packages using a single command :)
Reference: http://www.linuxask.com/questions/install-multiple-software-at-the-same-time-using-apt-get
[..] A little unrelated, but I absolutely liked this blog post [..]
how can i access the tomcat port,web-app folder
Do you means modify the Tomcat’s port?
Please see it here
http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/
Every time I need to edit the tomcat-users.xml I get can’t save file read-only.
obviously you do not have permission to do it, please contact your server administrator to assign proper permission to you.