Accessing Tomcat Admin area:
http://server-ip-address:8080/admin/
You may receive a message:
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

Recent Comments