This will walk through the installation and configuration of Tomcat on Ubuntu
Installation
sudo apt-get install -y tomcat6 tomcat6-admin tomcat6-docs tomcat6-examples
Admin User
Edit the tomcat-users.xml file to access the admin interface. Uncomment the roles as required and change the passwords. Remember to add the role manager to one of the users.
The following roles are available:
- manager-gui – allows access to the HTML GUI and the status pages
- manager-script – allows access to the text interface and the status pages
- manager-jmx – allows access to the JMX proxy and the status pages
- manager-status – allows access to the status pages only
sudo vi /etc/tomcat6/tomcat-users.xml
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat, manager-gui"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
sudo /etc/init.d/tomcat6 restart
Create the links for the helper applications
Create symbolic links for the tvdb and tmdb mirrors
cd /etc/tomcat6/Catalina/localhost
sudo ln -s /mnt/apps/tomcat/conf/tvdb.xml
sudo ln -s /mnt/apps/tomcat/conf/tmdb.xml
Current Applications
Applications installed are:
- library
- roller
- scheduler