For cPanel & WHM version 11.50
How can I access the Tomcat Manager and what is it?
To access the Tomcat Manager, navigate to
hostname is your server's hostname (for example,
The Tomcat Manager allows you to perform WAR file-related tasks, and includes a Server Status section.
How can I configure Apache to serve Java Servlet and Java Server pages?
Apache requires Tomcat in order to serve Java Servlet and Java Server pages. To enable Tomcat, you must rebuild Apache with Tomcat enabled in WHM's EasyApache (Apache Update) interface (Home >> Software >> EasyApache (Apache Update)).
After you install Tomcat, enable Servlets for a domain. To do this, select the domain from the list in WHM's Install Servlets interface (Home >> Account Functions >> Install Servlets).
- The Install Servlets interface (Home >> Account Functions >> Install Servlets) is not available in WHM until you install Tomcat.
For more information, visit the Tomcat website.
I installed Tomcat. How can I install Servlets on an account?
Select the account or domain on which you wish to install Servlets and apply the settings in WHM's Install Servlets interface (Home >> Account Functions >> Install Servlets).
How can I configure Tomcat administrators or users in Tomcat 7?
In Tomcat 7, we do not set up
root or user accounts, due to changes in Tomcat's security setup. Instead, you must manually import accounts.
To configure Tomcat users, perform the following steps:
Add the desired username, the plaintext password, and the desired role(s) for each account to the
Always restrict the Tomcat user configuration file's permissions to
- Save the file.
- Run the
/scripts/restartsrv_tomcatscript to restart Tomcat.
How else can I deploy a WAR file?
Place the WAR file into your
public_html/ directory. This extracts the application to the
- In this example,
DOMAINis your domain, and
APPNAMEis the name of the application.
- For more information, read our Apache FAQ documentation.
How do I remove Tomcat?
To remove Tomcat, perform the following steps:
- Disable Tomcat in WHM's Service Manager interface (Home >> Service Configuration >> Service Manager).
- Run the
/usr/local/cpanel/scripts/remservletscommand to remove Servlets from any domain that has them installed.
Warning:This action permanently deletes all of the server's Tomcat configuration data. Back up any customizations before you delete this directory.
- Rebuild EasyApache without Tomcat selected, to ensure that EasyApache does not reinstall Tomcat the next time that it runs.