Cantech Knowledge Base

Your Go-To Hosting Resource

Steps to Install and Configure ea-Tomcat85

​Installing and configuring ea-Tomcat85 on a cPanel server using EasyApache 4 enables Java-based web applications to run seamlessly within a shared hosting environment.

This blog offers a complete walkthrough to set up ea-Tomcat85 with private instances for individual cPanel users.​

Prerequisites

Before the installation process, check if the following requirements are met:

  • cPanel & WHM must be installed on your server.
  • Server running a compatible operating system, typically a version of CentOS
  • AlmaLinux is supported by cPanel.
  • CloudLinux

Steps to Install and Configure ea-Tomcat85

Step 1: Install EasyApache 4

EasyApache 4 is a software provisioning system that is developed for cPanel and allows the user to manage Apache, PHP, Other components of the web server.

  • Login to your WHM interface with your credentials.
  • Type in “EasyApache 4” in the search field on the left side. Select it
  • Click the next button to download and install it.
  • In the EasyApache 4 interface, navigate to customize your profile and then add additional packages. Search for “ea-tomcat85” and add it to your profile.
  • Once ea-Tomcat85 is added, review the changes and click “Provision” to install it.

Step 2: Verify Installation

Once the provisioning process is complete, verify the installation of ea-Tomcat85.

  • Open a terminal or SSH into your server and run the below command:
rpm -qa | grep ea-tomcat85
  • This command should present all the installed packages that are related to ea-Tomcat85 and confirm the installation.

Step 3: Add Basic Configurations

  • After installation, add basic configurations to run Tomcat.
  • The Tomcat configuration files are located in /opt/cpanel/ea-tomcat85/conf/. The primary configuration file is server.xml.
  • Open server.xml with a text editor:
nano /opt/cpanel/ea-tomcat85/conf/server.xml

You can configure the server parameters, port numbers, and other settings in this file.

Step 4: Enable Tomcat

  • After configuring Tomcat, start and enable it to start on boot.
  • Use the systemctl command to start Tomcat: systemctl start ea-tomcat85
  • Enable the service to start on boot : systemctl enable ea-tomcat85

Step 5: Deploy a Web Application

To Verify if Tomcat is working properly, deploy a web application.

  • The default directory for web applications is
    /opt/cpanel/ea-tomcat85/webapps/.
  • Copy WAR file into the webapps directory.
    cp /path/to/yourapp.war /opt/cpanel/ea-tomcat85/webapps/
  • Tomcat will automatically deploy the WAR file.
  • Check the deployment by visiting http://yourserverip:8080/yourapp

Step 6: Configure Tomcat Users

To manage Tomcat via web interface, configure the users with proper roles.

  • Open tomcat-users.xml located in the conf directory.
nano /opt/cpanel/ea-tomcat85/conf/tomcat-users.xml
  • Add user entries with roles.

Step 7: Configure Security Settings

  • Protecting Tomcat installation is important for production environments.
  • Restrict or limit the access to the manager and host-manager applications by IP address or authentication.
  • To optimize the performance, update Tomcat’s memory and thread settings.
  • Edit the catalina.sh script to set Java options.
nano /opt/cpanel/ea-tomcat85/bin/catalina.sh

Add or modify the following lines to set memory options:

JAVA_OPTS=”-Xms512M -Xmx1024M”

In server.xml, adjust the thread pool settings for the connector.

connectionTimeout=”20000″
redirectPort=”8443″
maxThreads=”200″
minSpareThreads=”25″
maxSpareThreads=”75″/>

Step 8: Monitor and Maintain Tomcat

Continuously monitor and maintain the Tomcat server to ensure it runs smoothly without disruptions.

Check /opt/cpanel/ea-tomcat85/logs/ directory containing log files every day.

Keep updating Tomcat on a regular basis, by checking EasyApache 4 for new update releases.

By following the above steps, you can successfully install and manage ea-Tomcat85 and meet your web hosting needs.

Elevate your hosting experience with Cantech’s cPanel VPS hosting

With Cantech’s cPanel VPS Hosting you can enjoy full control on multiple sites, and user friendly intuitive interface. Avail high speed 1 gbps connectivity with improved security and storage powered by KVM technology for maximum performance.

Contact us today and transform your hosting experience !

June 11, 2025