Cantech Knowledge Base

Your Go-To Hosting Resource

How To Restart Tomcat On cPanel Server

Apache Tomcat is an important component for the deployment of Java-based web applications. Sometimes, however, it’s necessary to restart Tomcat so that it can refresh the environment, for instance, to update a .war file, or update the server.xml, or to troubleshoot memory leaks. On a cPanel/WHM server, Tomcat is usually installed with EasyApache 4, or specialized containers, so there are a number of professional ways to perform a restart based on your access privileges.

In this tutorial, we will describe the default ways to perform a restart of Tomcat from the WHM graphical interface for server admins, and from the SSH command line for developers. Learning these options will help you to keep your Java apps highly available with cut down downtime to the bare minimum.

On the latest Tomcat, the path to stop/start services has changed. You can stop/start the service by executing the below files.

When prompted, restart Tomcat with one of the following commands.

root@server [~]# /usr/local/easy/sbin/easy-tomcat7-stop
root@server [~]# /usr/local/easy/sbin/easy-tomcat7-start

OR

root@server [~]# /etc/init.d/easy-tomcat7 restart

Conclusion

Mastering Tomcat is indispensable in a cPanel hosting environment for restarting, managing, and deploying server-side Java applications. If you prefer the UI of the WHM interface, or the more direct commands of SSH, you can easily apply necessary adjustments or recover a service that has become unresponsive. After restarting Tomcat, check for the presence of error messages in the applications you expect to have started by reviewing the log file /opt/cpanel/ea-tomcatXX/logs/catalina.out

By including the described procedures to restart Tomcat in your deployment, you optimize the environment serving your applications.

March 19, 2026