Jul

24

To install and configure Tomcat on Ubuntu Feisty or Hardy can be easily done.

1. Download and install the Java packages need for Tomcat to work (run in terminal):

sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre

2. Download and install the Tomcat packages (run in terminal):

sudo apt-get install libapache2-mod-jk libservlet2.4-java libtomcat5.5-java tomcat5.5 tomcat5.5-admin tomcat5.5-webapps

3. Open the .bashrc file (run in terminal):

sudo gedit ~/.bashrc

4. Add the following line in the opened file:

export JAVA_HOME=/usr/lib/jvm/java-6-sun

save and close the file

5. make the logs directory writable (run in terminal):


sudo chmod -R 777 /var/lib/tomcat5.5/logs

6. if your terminal is opened, close it and open up again

7. to start the tomcat, run the following command:

sh /usr/share/tomcat5.5/bin/startup.sh

8. now you can test to see if it’s working, point your browser at:

http://localhost:8180/

you should be able to see the tomcat splash page :)

9. to shutdown tomcat, use the following command:

sh /usr/share/tomcat5.5/bin/shutdown.sh



Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

2 Comments so far

  1. rcsprakash on July 25, 2008 10:10 pm

    after reading through so many forum help posts, i think your way is so far the only working one. thank you.

  2. zeriano on July 28, 2008 10:31 am

    nice and comprehensive, good work!

Sponsors




Links