Board index TOMCAT Tomcat Manager

How to configure tomcat manager on tomcat7

Postby a24uall » Sun Apr 28, 2013 9:42 am

Get in to the directory where apache-tomcat is installed.
In our example
cd /usr/share/apache-tomcat-7.0.39/
cd conf

Make a backup of "tomcat-users.xml" if you want and then empty the contents
cp -ar tomcat-users.xml tomcat-users.xml.bak
> tomcat-users.xml
vi tomcat-users.xml

Add the below lines.
Code: Select all
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="mybestpassword" roles="manager-gui,admin-gui,manager-script"/>

Now access IP_ADDRESS:8080 and when it shows a pop up give username as "tomadmin" and password as "Pass123" to login.
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

Return to Tomcat Manager

Who is online

Users browsing this forum: No registered users and 1 guest