To install Apache tomcat 6 server, we will follow some steps, they are described below:
Step1 : [ Adding sources ]In this step we will add a third party source.
source Address:
deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
just copy this and paste to ur sources.list file
To know how to add sources
please visit this post.step2 : [ Installing java jdk6 ]To install this open the terminal and type or copy paste the following command.
" sudo apt-get install sun-java6-jdk "
Now jdk will be start installing please follow the on screen commands.
step3: [ Installing Tomcat server ]" sudo apt-get install tomcat6 "
write the above command on the terminal and follow the on screen command.
step4 : [ Installing tomcat docs, examples and admin panel]" sudo apt-get install tomcat6-docs tomcat6-examples tomcat6-admin "
write the following command on the terminal and follow the onscreen command.
==========================================
Your Installation is done.
now open any web browser and on its address bar type
" http://localhost:8080"
if you get a page containg IT WORKS message ur server is running Ok.
=============================================
Important Notes:1. This server starts automatically every time when the system starts.
2. If you manually start or stop this server please follow the following commands and put them on the terminal.
" sudo /etc/init.d/tomcat6 start " [ To start the server ]
" sudo /etc/init.d/tomcat6 stop " [To stop the server ]
" sudo /etc/init.d/tomcat6 restart " [ To restart the server ]
3. All files regarding this server installation are located at this Location:
" /usr/share/tomcat6 " directory.
4. Webapps folder located at " /var/lib/tomcat6/webapps " location.