Shammer's Philosophy

My private adversaria

Install Tomcat7 on Debian wheezy via apt-get

On wheezy, we can install tomcat 7.0.28 via apt-get.

  1. apt-get update
  2. apt-get install openjdk-7-jdk
  3. apt-get install tomcat7
  4. apt-get install tomcat7-admin
  5. edit /etc/tomcat7/tomcat-user.xml

No system user required. Tomcat seems to check tomcat-user.xml file when received management authentication requests.
Installed via apt-get, tomcat-user.xml is located at /etc/tomcat7/tomcat-users.xml.
And / is mapped /var/lib/tomcat7/webapps/ROOT. Adding any html or jsp files to this directory, Tomcat would become to look for files located at /var/lib/tomca7/webapps/ROOT.