Ubuntu Notes and How-Tos

Friday, July 13, 2007

Installing Tomcat5.5 in Edgy Server

1. Install "Sun Java6 JDK":

a) $ sudo apt-get install sun-java6-jdk

b) $ vim ~/.bashrc


c) $ sudo update-alternatives --config java
*Choose Java6

2. Install Tomcat5.5:

a) $ sudo apt-get install tomcat5.5 tomcat5.5-webapp

3. Check the newly-installed server:
a)
$ sudo /ect/init.d/tomcat5.5 start

b)
$ w3m http://localhost:8180

3. Setup user admin and manager:

a) $ sudo vim /usr/share/tomcat5.5/conf/tomcat-users.xml


b) $ sudo chmod 0-r /usr/share/tomcat5.5/conf/tomcat-users.xml