May 03

Print this Post

Install Configure Apache Tomcat7 over Debian Linux

Install Configure Apache Tomcat7 over Debian Linux


Java Should be installed on the Debian Server.

Check by running below command:

Java –version

root@SSMON1-Desktop:~$ java -version
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode)

If Java is not installed run below command to install Java.

sudo apt-get install default-jdk

Commands to find the Package from Debian repository and install them.

sudo apt-get update
sudo apt-get install tomcat7


Once above commands ends without any error. Open browser and access tomcat default page from below URL.



Now configure Tomcat users in below file.

sudo nano /etc/tomcat7/tomcat-users.xml

In tomcat-users.xml file everything will be commented except below one.


Add user and roles in xml file.

    <user username="admin" password="admin" roles="manager-gui,admin-gui"/>

Stop and Start tomcat service so that user configuration should get loaded.

sudo service tomcat7 restart
 /etc/init.d/$ service tomcat restart

Permanent link to this article: http://www.techxpress.in/install-configure-apache-tomcat7-debian-linux/

Bookmark this page