Quick notes how to install Apache Tomcat 6 on Ubuntu 14.10
Install tomcat and admin
1 |
apt-get install tomcat7 tomcat7-admin |
1 |
dpkg-reconfigure tomcat7 |
Set up security
Change login and password in /etc/tomcat7/tomcat-users.xml
1 2 3 4 5 6 |
<tomcat-users> <role rolename="manager-gui"/> <role rolename="admin-gui" /> <role rolename="admin-script"/> <user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/> </tomcat-users> |
Restart tomcat service
1 |
sudo service tomcat7 restart |
Try http://localhost:8080 , it should be fine.
If you are not able to open manager at localhost:8080/manager with your login and password, try to edit /etc/tomcat7/server.xml. Find the section <Engine name="Catalina" defaultHost="localhost"> and add element <Realm className="org.apache.catalina.realm.MemoryRealm" /> just after it. After this change the Engine section should start like like
1 2 3 |
<Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.MemoryRealm" /> |
Restart Tomcat again
1 |
sudo service tomcat7 restart |
http://localhost:8080 and http://localhost:8080/manager should be good now.