Page 1 of 1

How to configure tomcat manager on tomcat7

Posted: Sun Apr 28, 2013 9:42 am
by a24uall
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

<tomcat-users>
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="mybestpassword" roles="manager-gui,admin-gui,manager-script"/>
</tomcat-users>
Now access IP_ADDRESS:8080 and when it shows a pop up give username as "tomadmin" and password as "Pass123" to login.