2006/03/11

Running Tomcat!

How to install TOMCAT on Fedora:

a) Tomcat Itself
yum install tomcat5
yum install tomcat5-webapps
yum install tomcat5-admin-webapps

a2) install java from SUN (could be using Fedora Frog)

b) Change on /etc/tomcat5/tomcat5.conf

JAVA_HOME="/opt/jre1.5.0_06"
(or which suits)

c) In /etc/tomcat5/tomcat-users.xml, put manager/admin roles to tomcat
user:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="manager,admin"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>

d) Start service:

# service tomcat5 start

e) Browse http://localhost:8080/

;)