All Linux HowTo's Security HowTo's

Managing Tomcat6 via the Web Manager tool – Redhat/CentOS

This article explains how to configure the web manager for Tomcat6. The web manager tool allows the administrator (or anyone with valid credentials) to start and stop individual Tomcat applications and to upload new Tomcat applications (WAR files).

Make sure to install the packages:

yum install tomcat6 tomcat6-admin*

Edit your “conf/tomcat-users.xml” file and add the following section into the existing “tomcat-users” section.

<role rolename="manager" />
<role rolename="admin" />
<user username="admin" password="welcome" roles="manager,admin" />

Restart Tomcat6:

service tomcat6 restart

Now visit your Tomcat server via the URL:

http://localhost/manager/status

Or

http://server.example.com/manager/status

The page should be asking for the credentials specified in the “conf/tomcat-users.xml” file that you set above.

Similar Posts: