«

»

Jan 16

Access tomcat Admin area

Accessing Tomcat Admin area:

http://server-ip-address:8080/admin/

You may receive a message:

Notice

Tomcat’s administration web application is no longer installed by default.
Download and install the “admin” package to use it.


contact@webhostingsupport.info

Post to Twitter

 

This is because, by default admin section of tomcat is not enable.

To enable Admin section, you can refer to following steps.

%TOMCAT_FOLDER%/conf/tomcat-users.xml” manually.

If you have a cPanel server then you will find the file

/usr/local/jakarta/tomcat/conf/tomcat-users.xml

Before editing the file:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>

 

After editing file:

 

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="admin" password="admin" roles="admin,manager"/>
</tomcat-users>
To enable admin access, just update the content like above.
Saved it and restart Tomcat, now you can access Tomcat admin or manger pages
with user = “admin” and password = “admin“.

contact@webhostingsupport.info

Post to Twitter

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>