Page tree
Skip to end of metadata
Go to start of metadata

For cPanel & WHM version 60

Does EasyApache 4 support Tomcat?

No, EasyApache 4 does not support Tomcat. cPanel, Inc. does not plan to support Tomcat with EasyApache 4 in the immediate future.


cPanel & WHM does not support Tomcat on CentOS 7 servers.

How can I access the Tomcat Manager and what is it?

To access the Tomcat Manager, navigate to the http://hostname:8080/manager location in your web browser, where 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 interface (Home >> Software >> EasyApache).

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.
  • You can only add servlet support to domains and subdomains.
  • You cannot add servlet support to subdomains via WHM. Use the command line to add servlet support to subdomains.

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:

  1. Add the desired username, the plaintext password, and the desired role(s) for each account to the /usr/local/easy/share/easy-tomcat7/conf/tomcat-users.xml file.


    Always restrict the Tomcat user configuration file's permissions to root-only.

  2. Save the file.
  3. Run the /scripts/restartsrv_tomcat script 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 /var/cache/easy-tomcat7/work/Catalina/DOMAIN/APPNAME/ directory.


  • In this example, DOMAIN is your domain, and APPNAME is the name of the application.
  • For more information, read our Apache FAQ documentation.

How do I remove Tomcat?


cPanel & WHM installs Tomcat 7 to the /usr/local/easy/etc/easy-tomcat7/ directory.

To remove Tomcat, perform the following steps:

  1. Disable Tomcat in WHM's Service Manager interface (Home >> Service Configuration >> Service Manager).
  2. Run the /usr/local/cpanel/scripts/remservlets command to remove Servlets from any domain that has them installed.
  3. Delete the /usr/local/easy/share/easy-tomcat7/ directory.


    This action permanently deletes all of the server's Tomcat configuration data. Back up any customizations before you delete this directory.
  4. Rebuild EasyApache without Tomcat selected, to ensure that EasyApache does not reinstall Tomcat the next time that it runs.

Additional documentation

There is no content with the specified labels

There is no content with the specified labels

There is no content with the specified labels