SlideShare a Scribd company logo
Information on Tomcat in
cPanel & WHM
Table of Contents
2
Introduction
Important Recommendations
Tomcat Installation Requirements
Tomcat Installation
Tomcat Uninstallation
Configuration
Default Configuration
Adding Tomcat Support for a User
Adding Tomcat Support for a User
(Continued I)
Adding Tomcat Support for a User
(Continued II)
Jailshell User Considerations
Jailshell User Considerations (Continued)
Running Tomcat
Custom Configurations
LiteSpeed Web Server
Tomcat in EasyApache 3 Vs. Tomcat in
EasyApache 4
 The information contained here applies to Tomcat in cPanel & WHM version 76 and the later versions.
Apache Tomcat is an open-source project and is one of the most well-known web server and Servlet
container for Java code. It lets you serve applications that are Java-based.The option to install Tomcat
8.5 is provided by EasyApache 4.
 In the context of web servers, these are used by web hosting companies for hosting websites.Web
hosting can be of many types, such as shared, reseller, dedicated,VPS, cloud and Windows.The most
efficient web hosting services are popularly referred to as the “Best Website Hosting”, the “Best Cloud
Hosting”, the “BestVPS Hosting”, etc.
3
Introduction
 It is highly recommended that Tomcat be installed by only experienced Tomcat administrators.
 Regarding Tomcat, there can be security issues on systems that have multiple users.
 It is advised that the risks associated with this feature be understood prior to using it.
4
Important Recommendations
 Root-level access is required by Tomcat for installation. It needs to be mentioned here that Tomcat is
not supported by cPanel & WHM on servers which run CentOS 8 or AlmaLinux 8.
5
Tomcat Installation Requirements
 Tomcat installation can be in the interface or on the command line. Let us touch upon each of these
individually.
 Tomcat installation in the interface – Use the EasyApache 4 interface ofWHM for this purpose.
WHM >> Home >> Software >> EasyApache 4
 It is the Additional Packages section where Tomcat will appear.
 Tomcat installation on the command line – The below-mentioned command needs to be run on
the command line.This needs to be done as the root user.
 yum install ea-tomcat85
6
Tomcat Installation
 Tomcat uninstallation can be in the interface or on the command line. Let us touch upon each of these
individually.
 Tomcat uninstallation in the interface - Use the EasyApache 4 interface ofWHM for this purpose.
WHM >> Home >> Software >> EasyApache 4
 It is the Additional Packages section where Tomcat will appear.
 Tomcat uninstallation on the command line – The below-mentioned command needs to be run on the
command line.This needs to be done as the root user.
 yum remove ea-tomcat85
7
Tomcat Uninstallation
 Tomcat runs as a private instance, per-user, in EasyApache 4.This aids in enhancing security and enables
the user in the management of their individual Tomcat services. Its flip side is that it increases memory
load on the server. It is recommended that the configuration of the server be taken into account, prior
to enabling Tomcat for many users.
 The configuration files ofTomcat 8.5 are placed in the below-mentioned location.
/home/user/ea-tomcat85/conf
 In it the term,“user” represents the user’s name for whom Tomcat has been installed.
8
Configuration
Certain configuration changes are made to the defaultTomcat 8.5 behaviour by EasyApache 4. It takes place in the
file, ~/ea-tomcat85/conf/server.xml
These configuration changes are as follows:
 Disabling the shutdown port (by default)
 Setting the xpoweredBy
 Removing the attribute, redirectPort
 Adding the class, ErrorReportValue , to all Hosts that have the showServerInfo value set to a false value
 Setting the below-mentioned Host attributes to a false value.
 autoDeploy
 deployOnStartup
 deployXML
It needs to be mentioned here that you might need to make certain security changes, based on the requirements of
the Tomcat of your system.
9
Default Configuration
10
1-800-123 -8156
Whoa!That’s a big number, aren’t
you proud?
Configuring Crontab Access – Crontab access needs to be granted to Tomcat users. If that is not done, then the
user will not be able to use Tomcat.The user must be present in the file, /etc/cron.allow , if such a file exists. It needs
to be ensured that the user is not present in the file, /etc/cron.deny , if such a file exists.
For determining if a user has crontab access, the following steps need to be performed:
 Navigate to the List Accounts interface in WHM.
WHM >> Home >> Account >> Information >> List Accounts
 Click the logo of cPanel in order to log in to the account as the user.
 Navigate to the Terminal interface in cPanel.
cPanel >> Home >> Advanced >> Terminal
 Run the command, crontab -l
If an error is received, then crontab access needs to be granted to Tomcat users.The user needs to be removed and
re-added to Tomcat, post being granted crontab access.
11
AddingTomcat Support for a User
In the interface – The Tomcat Manager interface inWHM needs to be used for adding Tomcat 8.5 support
to a user.
WHM >> Home >> Software >> Tomcat Manager
On the command line – The following command needs to be run for adding Tomcat 8.5 support to a
user. It needs to be carried out as the root user.
/usr/local/cpanel/scripts/ea-tomcat85 [argument] [option]
 Certain arguments are accepted by the script, /usr/local/cpanel/scripts/ea-tomcat85
 These are mentioned in the following slide. In it, the term,“user” represents the user that has to be
changed and “command” represents an argument that is meant for the script.
12
AddingTomcat Support for a User (Continued I)
The arguments accepted by the script, /usr/local/cpanel/scripts/ea-tomcat85 are as follows:
 add user – Adds Tomcat 8.5 support to a user
 rem user – Removes Tomcat 8.5 support from a user
 list – Lets you view the users with aTomcat 8.5 instance
 hint [command] – Displays help information in abbreviated form. In it, the command is totally
optional. If a command is specified, then the abbreviated help information of only that command will be
displayed.
 help [command] - Displays the help information of the script. In it, the command is totally optional.
If a command is specified, then the help information of only that command will be displayed.
13
AddingTomcat Support for a User (Continued II)
 The status of their Tomcat service, that had been previously started, cannot be seen by the Jailshell
users. Users are only allowed to view the processes of their current session by the default jailshell
permissions.
14
Jailshell User Considerations
The system launces a duplicate process when an attempt is made to restart a service that is already active
with Ubic.This can be addressed with the aid of one of the below-mentioned actions.
 Selecting Always mount a full /proc under the Jailed /proc mount method option.This option is in the
System section of the Tweak Settings interface of WHM.
WHM >> Home >> Server Configuration >> Tweak Settings
When this functionality is enabled, all running processes can be seen by a jailshelled user.This lets the
jailshell user break out of the shell.
When this setting is not enabled, the Tomcat service will be stopped by Ubic, when the shell is exited.
It needs to be mentioned that a normal shell can be assigned to the user. It is not recommended to do
nothing as this might create confusion and the user might start duplicate processes.
15
Jailshell User Considerations (Continued)
 Usually on virtual machines,Tomcat might take a long time to start serving requests on initial start-up.
There are certain suggestions regarding ways that start Tomcat server quickly but those are not part of
the information contained here.When considering those solutions, system administrators need to opt
for a solution that best serves their specific needs.
 To digress,AJP can be used by Tomcat 8.5 for serving applications in EasyApache 4.
16
Running Tomcat
An environment is created that could be configured by the user for his unique requirements when either of
the following happen:
 A user is added with the Tomcat Manager interface in WHM.
WHM >> Home >> Software >> Tomcat Manager
 A user is added with the script, /usr/local/cpanel/scripts/ea-tomcat85
When Tomcat access is assigned to a cPanel user, 2 ports are assigned by the script to the user.These port
assignments could be found in the file, /etc/cpanel/cpuser_port_authority.json
and in the user’s file, ~/ea-tomcat85/conf/server.xml
Any custom behaviour needs to be configured manually. If you want to change the way in which Tomcat
interacts with Apache, you need to edit or create the appropriate file in the directory,
/etc/apache2/conf.d/userdata/
17
Custom Configurations
 LiteSpeed’s versions earlier than build 6 (5.3.5) are incompatible with the ProxyPassMatch directive. Due to this,
LiteSpeed does not proxy from the assigned port to port 80. You need to update your LiteSpeed server to a version that
is new and compatible. Alternatively, you can use the assigned port of the Tomcat instance.
18
LiteSpeed Web Server
 Tomcat is handled differently by EasyApache 3, when compared to EasyApache 4. Tomcat 8.5 is provided by EasyApache
4, instead of Tomcat 7.
 Tomcat was present as a shared service in EasyApache 3. Moreover, all applications ran as the tomcat user. A container
was created within a shared file by the server. This shared file was, server.xml
 Tomcat runs as a per-user private instance in EasyApache 4. It lets the user configure his instance himself. Here, Tomcat
runs as the individual user, and not as the tomcat user. This aids in enhancing security. Additionally, the user controls the
management of the Tomcat instance. This might affect the performance of the server because of the memory
requirements.
 Prior to concluding, it needs to be mentioned that the mod_proxy_ajp Apache module is provided by EasyApache 4
rather than the mod_jk connector.
19
Tomcat in EasyApache 3 Vs. Tomcat in EasyApache 4
20
Thanks!
ANY QUESTIONS?
www.htshosting.org

More Related Content

What's hot

RNUG - Dirty Secrets of the Notes Client
RNUG - Dirty Secrets of the Notes ClientRNUG - Dirty Secrets of the Notes Client
RNUG - Dirty Secrets of the Notes Client
Christoph Adler
 
Qué hace tu Asterisk cuando no miras
Qué hace tu Asterisk cuando no mirasQué hace tu Asterisk cuando no miras
Qué hace tu Asterisk cuando no miras
Elio Rojano
 
Introduction to Rust language programming
Introduction to Rust language programmingIntroduction to Rust language programming
Introduction to Rust language programming
Rodolfo Finochietti
 
Python for the Network Nerd
Python for the Network NerdPython for the Network Nerd
Python for the Network Nerd
Matt Bynum
 
Linux Run Level
Linux Run LevelLinux Run Level
Linux Run Level
Gaurav Mishra
 
NFS, MPI, Programmation Sérial & Parallèle avec Condor Scénarios et Simulatio...
NFS, MPI, Programmation Sérial & Parallèle avec Condor Scénarios et Simulatio...NFS, MPI, Programmation Sérial & Parallèle avec Condor Scénarios et Simulatio...
NFS, MPI, Programmation Sérial & Parallèle avec Condor Scénarios et Simulatio...
Ayoub Rouzi
 
Herd your chickens: Ansible for DB2 configuration management
Herd your chickens: Ansible for DB2 configuration managementHerd your chickens: Ansible for DB2 configuration management
Herd your chickens: Ansible for DB2 configuration management
Frederik Engelen
 
Course 102: Lecture 16: Process Management (Part 2)
Course 102: Lecture 16: Process Management (Part 2) Course 102: Lecture 16: Process Management (Part 2)
Course 102: Lecture 16: Process Management (Part 2)
Ahmed El-Arabawy
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Serverwebhostingguy
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
Hanan Nmr
 
Great new Domino features since 9.0.1FP8 - 2023 Ed.pptx
Great new Domino features since 9.0.1FP8 - 2023 Ed.pptxGreat new Domino features since 9.0.1FP8 - 2023 Ed.pptx
Great new Domino features since 9.0.1FP8 - 2023 Ed.pptx
Darren Duke
 
Samba server configuration
Samba server configurationSamba server configuration
Samba server configuration
Rohit Phulsunge
 
Server configuration
Server configurationServer configuration
Server configuration
Aisha Talat
 
Open Mic "Notes Federated Login"
Open Mic "Notes Federated Login"Open Mic "Notes Federated Login"
Open Mic "Notes Federated Login"
Ranjit Rai
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
Harish1983
 
From frustration to fascination: dissecting Replication
From frustration to fascination: dissecting ReplicationFrom frustration to fascination: dissecting Replication
From frustration to fascination: dissecting Replication
Benedek Menesi
 
Taller docker _es-cl
Taller docker _es-clTaller docker _es-cl
Taller docker _es-cl
Felipe de Morais
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
Deepanshu Gahlaut
 
Ansible intro
Ansible introAnsible intro
OpenStack DevStack Configuration localrc local.conf Tutorial
OpenStack DevStack Configuration localrc local.conf TutorialOpenStack DevStack Configuration localrc local.conf Tutorial
OpenStack DevStack Configuration localrc local.conf Tutorial
Saju Madhavan
 

What's hot (20)

RNUG - Dirty Secrets of the Notes Client
RNUG - Dirty Secrets of the Notes ClientRNUG - Dirty Secrets of the Notes Client
RNUG - Dirty Secrets of the Notes Client
 
Qué hace tu Asterisk cuando no miras
Qué hace tu Asterisk cuando no mirasQué hace tu Asterisk cuando no miras
Qué hace tu Asterisk cuando no miras
 
Introduction to Rust language programming
Introduction to Rust language programmingIntroduction to Rust language programming
Introduction to Rust language programming
 
Python for the Network Nerd
Python for the Network NerdPython for the Network Nerd
Python for the Network Nerd
 
Linux Run Level
Linux Run LevelLinux Run Level
Linux Run Level
 
NFS, MPI, Programmation Sérial & Parallèle avec Condor Scénarios et Simulatio...
NFS, MPI, Programmation Sérial & Parallèle avec Condor Scénarios et Simulatio...NFS, MPI, Programmation Sérial & Parallèle avec Condor Scénarios et Simulatio...
NFS, MPI, Programmation Sérial & Parallèle avec Condor Scénarios et Simulatio...
 
Herd your chickens: Ansible for DB2 configuration management
Herd your chickens: Ansible for DB2 configuration managementHerd your chickens: Ansible for DB2 configuration management
Herd your chickens: Ansible for DB2 configuration management
 
Course 102: Lecture 16: Process Management (Part 2)
Course 102: Lecture 16: Process Management (Part 2) Course 102: Lecture 16: Process Management (Part 2)
Course 102: Lecture 16: Process Management (Part 2)
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Great new Domino features since 9.0.1FP8 - 2023 Ed.pptx
Great new Domino features since 9.0.1FP8 - 2023 Ed.pptxGreat new Domino features since 9.0.1FP8 - 2023 Ed.pptx
Great new Domino features since 9.0.1FP8 - 2023 Ed.pptx
 
Samba server configuration
Samba server configurationSamba server configuration
Samba server configuration
 
Server configuration
Server configurationServer configuration
Server configuration
 
Open Mic "Notes Federated Login"
Open Mic "Notes Federated Login"Open Mic "Notes Federated Login"
Open Mic "Notes Federated Login"
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
From frustration to fascination: dissecting Replication
From frustration to fascination: dissecting ReplicationFrom frustration to fascination: dissecting Replication
From frustration to fascination: dissecting Replication
 
Taller docker _es-cl
Taller docker _es-clTaller docker _es-cl
Taller docker _es-cl
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
 
Ansible intro
Ansible introAnsible intro
Ansible intro
 
OpenStack DevStack Configuration localrc local.conf Tutorial
OpenStack DevStack Configuration localrc local.conf TutorialOpenStack DevStack Configuration localrc local.conf Tutorial
OpenStack DevStack Configuration localrc local.conf Tutorial
 

Similar to Information on Tomcat in cPanel & WHM

Comprehensive Information on Tomcat
Comprehensive Information on TomcatComprehensive Information on Tomcat
Comprehensive Information on Tomcat
HTS Hosting
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Servermohamedmoharam
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)
nazeer pasha
 
Tomcat 6: Evolving our server
Tomcat 6: Evolving our serverTomcat 6: Evolving our server
Tomcat 6: Evolving our server
Jorge S Cruz Lambert
 
Mc sl54 051_ (1)
Mc sl54 051_ (1)Mc sl54 051_ (1)
Mc sl54 051_ (1)
AnkitKumar2343
 
Tomcat tutorail
Tomcat tutorailTomcat tutorail
Tomcat tutorail
Supratim Ray
 
Pandora FMS: Hyper V Plugin
Pandora FMS: Hyper V PluginPandora FMS: Hyper V Plugin
Pandora FMS: Hyper V Plugin
Pandora FMS
 
Integrating tomcat with apache
Integrating tomcat with apacheIntegrating tomcat with apache
Integrating tomcat with apachegovindraj8787
 
Web Server/App Server Connectivity
Web Server/App Server ConnectivityWeb Server/App Server Connectivity
Web Server/App Server Connectivitywebhostingguy
 
Configure use-tomcat
Configure use-tomcatConfigure use-tomcat
Configure use-tomcat
Jesus Diaz Gonzalez
 
Tomcat Clustering
Tomcat ClusteringTomcat Clustering
Tomcat Clusteringgouthamrv
 
Integrating open am with liferay portal
Integrating open am with liferay portalIntegrating open am with liferay portal
Integrating open am with liferay portalprabakaranbrick
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
Wirabumi Software
 
Web Applications and Deployment
Web Applications and DeploymentWeb Applications and Deployment
Web Applications and Deployment
BG Java EE Course
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway Server
Dashamir Hoxha
 
Webinar Slides: New Tungsten Dashboard - Overview, Installation and Architecture
Webinar Slides: New Tungsten Dashboard - Overview, Installation and ArchitectureWebinar Slides: New Tungsten Dashboard - Overview, Installation and Architecture
Webinar Slides: New Tungsten Dashboard - Overview, Installation and Architecture
Continuent
 
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
Continuent
 

Similar to Information on Tomcat in cPanel & WHM (20)

Comprehensive Information on Tomcat
Comprehensive Information on TomcatComprehensive Information on Tomcat
Comprehensive Information on Tomcat
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)
 
Tomcat 6: Evolving our server
Tomcat 6: Evolving our serverTomcat 6: Evolving our server
Tomcat 6: Evolving our server
 
Mc sl54 051_ (1)
Mc sl54 051_ (1)Mc sl54 051_ (1)
Mc sl54 051_ (1)
 
Tomcat tutorail
Tomcat tutorailTomcat tutorail
Tomcat tutorail
 
Tomcat
TomcatTomcat
Tomcat
 
Auxiliary : Tomcat
Auxiliary : TomcatAuxiliary : Tomcat
Auxiliary : Tomcat
 
Pandora FMS: Hyper V Plugin
Pandora FMS: Hyper V PluginPandora FMS: Hyper V Plugin
Pandora FMS: Hyper V Plugin
 
Integrating tomcat with apache
Integrating tomcat with apacheIntegrating tomcat with apache
Integrating tomcat with apache
 
bjhbj
bjhbjbjhbj
bjhbj
 
Web Server/App Server Connectivity
Web Server/App Server ConnectivityWeb Server/App Server Connectivity
Web Server/App Server Connectivity
 
Configure use-tomcat
Configure use-tomcatConfigure use-tomcat
Configure use-tomcat
 
Tomcat Clustering
Tomcat ClusteringTomcat Clustering
Tomcat Clustering
 
Integrating open am with liferay portal
Integrating open am with liferay portalIntegrating open am with liferay portal
Integrating open am with liferay portal
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
 
Web Applications and Deployment
Web Applications and DeploymentWeb Applications and Deployment
Web Applications and Deployment
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway Server
 
Webinar Slides: New Tungsten Dashboard - Overview, Installation and Architecture
Webinar Slides: New Tungsten Dashboard - Overview, Installation and ArchitectureWebinar Slides: New Tungsten Dashboard - Overview, Installation and Architecture
Webinar Slides: New Tungsten Dashboard - Overview, Installation and Architecture
 
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
 

More from HTS Hosting

Web Hosting and WordPress Hosting
Web Hosting and WordPress HostingWeb Hosting and WordPress Hosting
Web Hosting and WordPress Hosting
HTS Hosting
 
Availing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS HostingAvailing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS Hosting
HTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
HTS Hosting
 
Linux Dedicated Server Plans
Linux Dedicated Server PlansLinux Dedicated Server Plans
Linux Dedicated Server Plans
HTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
HTS Hosting
 
Common Web Hosting Solutions
Common Web Hosting SolutionsCommon Web Hosting Solutions
Common Web Hosting Solutions
HTS Hosting
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager Setup
HTS Hosting
 
Essential Features in Web Hosting Plans
Essential Features in Web Hosting PlansEssential Features in Web Hosting Plans
Essential Features in Web Hosting Plans
HTS Hosting
 
VPS Hosting
VPS HostingVPS Hosting
VPS Hosting
HTS Hosting
 
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS HostingDifference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
HTS Hosting
 
Web Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and MoreWeb Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and More
HTS Hosting
 
Know about Hosting a Business Website
Know about Hosting a Business WebsiteKnow about Hosting a Business Website
Know about Hosting a Business Website
HTS Hosting
 
Web Hosting Terms
Web Hosting TermsWeb Hosting Terms
Web Hosting Terms
HTS Hosting
 
Reseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web ServersReseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web Servers
HTS Hosting
 
Reseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS HostingReseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS Hosting
HTS Hosting
 
Backup Tarball Contents
Backup Tarball ContentsBackup Tarball Contents
Backup Tarball Contents
HTS Hosting
 
VPS and Dedicated Servers
VPS and Dedicated ServersVPS and Dedicated Servers
VPS and Dedicated Servers
HTS Hosting
 
Best WordPress Hosting Plans
Best WordPress Hosting Plans Best WordPress Hosting Plans
Best WordPress Hosting Plans
HTS Hosting
 
Best Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting PlansBest Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting Plans
HTS Hosting
 
Different Types of Web Hosting Services
Different Types of Web Hosting ServicesDifferent Types of Web Hosting Services
Different Types of Web Hosting Services
HTS Hosting
 

More from HTS Hosting (20)

Web Hosting and WordPress Hosting
Web Hosting and WordPress HostingWeb Hosting and WordPress Hosting
Web Hosting and WordPress Hosting
 
Availing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS HostingAvailing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
 
Linux Dedicated Server Plans
Linux Dedicated Server PlansLinux Dedicated Server Plans
Linux Dedicated Server Plans
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
 
Common Web Hosting Solutions
Common Web Hosting SolutionsCommon Web Hosting Solutions
Common Web Hosting Solutions
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager Setup
 
Essential Features in Web Hosting Plans
Essential Features in Web Hosting PlansEssential Features in Web Hosting Plans
Essential Features in Web Hosting Plans
 
VPS Hosting
VPS HostingVPS Hosting
VPS Hosting
 
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS HostingDifference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
 
Web Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and MoreWeb Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and More
 
Know about Hosting a Business Website
Know about Hosting a Business WebsiteKnow about Hosting a Business Website
Know about Hosting a Business Website
 
Web Hosting Terms
Web Hosting TermsWeb Hosting Terms
Web Hosting Terms
 
Reseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web ServersReseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web Servers
 
Reseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS HostingReseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS Hosting
 
Backup Tarball Contents
Backup Tarball ContentsBackup Tarball Contents
Backup Tarball Contents
 
VPS and Dedicated Servers
VPS and Dedicated ServersVPS and Dedicated Servers
VPS and Dedicated Servers
 
Best WordPress Hosting Plans
Best WordPress Hosting Plans Best WordPress Hosting Plans
Best WordPress Hosting Plans
 
Best Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting PlansBest Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting Plans
 
Different Types of Web Hosting Services
Different Types of Web Hosting ServicesDifferent Types of Web Hosting Services
Different Types of Web Hosting Services
 

Recently uploaded

PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 

Recently uploaded (20)

PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 

Information on Tomcat in cPanel & WHM

  • 1. Information on Tomcat in cPanel & WHM
  • 2. Table of Contents 2 Introduction Important Recommendations Tomcat Installation Requirements Tomcat Installation Tomcat Uninstallation Configuration Default Configuration Adding Tomcat Support for a User Adding Tomcat Support for a User (Continued I) Adding Tomcat Support for a User (Continued II) Jailshell User Considerations Jailshell User Considerations (Continued) Running Tomcat Custom Configurations LiteSpeed Web Server Tomcat in EasyApache 3 Vs. Tomcat in EasyApache 4
  • 3.  The information contained here applies to Tomcat in cPanel & WHM version 76 and the later versions. Apache Tomcat is an open-source project and is one of the most well-known web server and Servlet container for Java code. It lets you serve applications that are Java-based.The option to install Tomcat 8.5 is provided by EasyApache 4.  In the context of web servers, these are used by web hosting companies for hosting websites.Web hosting can be of many types, such as shared, reseller, dedicated,VPS, cloud and Windows.The most efficient web hosting services are popularly referred to as the “Best Website Hosting”, the “Best Cloud Hosting”, the “BestVPS Hosting”, etc. 3 Introduction
  • 4.  It is highly recommended that Tomcat be installed by only experienced Tomcat administrators.  Regarding Tomcat, there can be security issues on systems that have multiple users.  It is advised that the risks associated with this feature be understood prior to using it. 4 Important Recommendations
  • 5.  Root-level access is required by Tomcat for installation. It needs to be mentioned here that Tomcat is not supported by cPanel & WHM on servers which run CentOS 8 or AlmaLinux 8. 5 Tomcat Installation Requirements
  • 6.  Tomcat installation can be in the interface or on the command line. Let us touch upon each of these individually.  Tomcat installation in the interface – Use the EasyApache 4 interface ofWHM for this purpose. WHM >> Home >> Software >> EasyApache 4  It is the Additional Packages section where Tomcat will appear.  Tomcat installation on the command line – The below-mentioned command needs to be run on the command line.This needs to be done as the root user.  yum install ea-tomcat85 6 Tomcat Installation
  • 7.  Tomcat uninstallation can be in the interface or on the command line. Let us touch upon each of these individually.  Tomcat uninstallation in the interface - Use the EasyApache 4 interface ofWHM for this purpose. WHM >> Home >> Software >> EasyApache 4  It is the Additional Packages section where Tomcat will appear.  Tomcat uninstallation on the command line – The below-mentioned command needs to be run on the command line.This needs to be done as the root user.  yum remove ea-tomcat85 7 Tomcat Uninstallation
  • 8.  Tomcat runs as a private instance, per-user, in EasyApache 4.This aids in enhancing security and enables the user in the management of their individual Tomcat services. Its flip side is that it increases memory load on the server. It is recommended that the configuration of the server be taken into account, prior to enabling Tomcat for many users.  The configuration files ofTomcat 8.5 are placed in the below-mentioned location. /home/user/ea-tomcat85/conf  In it the term,“user” represents the user’s name for whom Tomcat has been installed. 8 Configuration
  • 9. Certain configuration changes are made to the defaultTomcat 8.5 behaviour by EasyApache 4. It takes place in the file, ~/ea-tomcat85/conf/server.xml These configuration changes are as follows:  Disabling the shutdown port (by default)  Setting the xpoweredBy  Removing the attribute, redirectPort  Adding the class, ErrorReportValue , to all Hosts that have the showServerInfo value set to a false value  Setting the below-mentioned Host attributes to a false value.  autoDeploy  deployOnStartup  deployXML It needs to be mentioned here that you might need to make certain security changes, based on the requirements of the Tomcat of your system. 9 Default Configuration
  • 10. 10 1-800-123 -8156 Whoa!That’s a big number, aren’t you proud?
  • 11. Configuring Crontab Access – Crontab access needs to be granted to Tomcat users. If that is not done, then the user will not be able to use Tomcat.The user must be present in the file, /etc/cron.allow , if such a file exists. It needs to be ensured that the user is not present in the file, /etc/cron.deny , if such a file exists. For determining if a user has crontab access, the following steps need to be performed:  Navigate to the List Accounts interface in WHM. WHM >> Home >> Account >> Information >> List Accounts  Click the logo of cPanel in order to log in to the account as the user.  Navigate to the Terminal interface in cPanel. cPanel >> Home >> Advanced >> Terminal  Run the command, crontab -l If an error is received, then crontab access needs to be granted to Tomcat users.The user needs to be removed and re-added to Tomcat, post being granted crontab access. 11 AddingTomcat Support for a User
  • 12. In the interface – The Tomcat Manager interface inWHM needs to be used for adding Tomcat 8.5 support to a user. WHM >> Home >> Software >> Tomcat Manager On the command line – The following command needs to be run for adding Tomcat 8.5 support to a user. It needs to be carried out as the root user. /usr/local/cpanel/scripts/ea-tomcat85 [argument] [option]  Certain arguments are accepted by the script, /usr/local/cpanel/scripts/ea-tomcat85  These are mentioned in the following slide. In it, the term,“user” represents the user that has to be changed and “command” represents an argument that is meant for the script. 12 AddingTomcat Support for a User (Continued I)
  • 13. The arguments accepted by the script, /usr/local/cpanel/scripts/ea-tomcat85 are as follows:  add user – Adds Tomcat 8.5 support to a user  rem user – Removes Tomcat 8.5 support from a user  list – Lets you view the users with aTomcat 8.5 instance  hint [command] – Displays help information in abbreviated form. In it, the command is totally optional. If a command is specified, then the abbreviated help information of only that command will be displayed.  help [command] - Displays the help information of the script. In it, the command is totally optional. If a command is specified, then the help information of only that command will be displayed. 13 AddingTomcat Support for a User (Continued II)
  • 14.  The status of their Tomcat service, that had been previously started, cannot be seen by the Jailshell users. Users are only allowed to view the processes of their current session by the default jailshell permissions. 14 Jailshell User Considerations
  • 15. The system launces a duplicate process when an attempt is made to restart a service that is already active with Ubic.This can be addressed with the aid of one of the below-mentioned actions.  Selecting Always mount a full /proc under the Jailed /proc mount method option.This option is in the System section of the Tweak Settings interface of WHM. WHM >> Home >> Server Configuration >> Tweak Settings When this functionality is enabled, all running processes can be seen by a jailshelled user.This lets the jailshell user break out of the shell. When this setting is not enabled, the Tomcat service will be stopped by Ubic, when the shell is exited. It needs to be mentioned that a normal shell can be assigned to the user. It is not recommended to do nothing as this might create confusion and the user might start duplicate processes. 15 Jailshell User Considerations (Continued)
  • 16.  Usually on virtual machines,Tomcat might take a long time to start serving requests on initial start-up. There are certain suggestions regarding ways that start Tomcat server quickly but those are not part of the information contained here.When considering those solutions, system administrators need to opt for a solution that best serves their specific needs.  To digress,AJP can be used by Tomcat 8.5 for serving applications in EasyApache 4. 16 Running Tomcat
  • 17. An environment is created that could be configured by the user for his unique requirements when either of the following happen:  A user is added with the Tomcat Manager interface in WHM. WHM >> Home >> Software >> Tomcat Manager  A user is added with the script, /usr/local/cpanel/scripts/ea-tomcat85 When Tomcat access is assigned to a cPanel user, 2 ports are assigned by the script to the user.These port assignments could be found in the file, /etc/cpanel/cpuser_port_authority.json and in the user’s file, ~/ea-tomcat85/conf/server.xml Any custom behaviour needs to be configured manually. If you want to change the way in which Tomcat interacts with Apache, you need to edit or create the appropriate file in the directory, /etc/apache2/conf.d/userdata/ 17 Custom Configurations
  • 18.  LiteSpeed’s versions earlier than build 6 (5.3.5) are incompatible with the ProxyPassMatch directive. Due to this, LiteSpeed does not proxy from the assigned port to port 80. You need to update your LiteSpeed server to a version that is new and compatible. Alternatively, you can use the assigned port of the Tomcat instance. 18 LiteSpeed Web Server
  • 19.  Tomcat is handled differently by EasyApache 3, when compared to EasyApache 4. Tomcat 8.5 is provided by EasyApache 4, instead of Tomcat 7.  Tomcat was present as a shared service in EasyApache 3. Moreover, all applications ran as the tomcat user. A container was created within a shared file by the server. This shared file was, server.xml  Tomcat runs as a per-user private instance in EasyApache 4. It lets the user configure his instance himself. Here, Tomcat runs as the individual user, and not as the tomcat user. This aids in enhancing security. Additionally, the user controls the management of the Tomcat instance. This might affect the performance of the server because of the memory requirements.  Prior to concluding, it needs to be mentioned that the mod_proxy_ajp Apache module is provided by EasyApache 4 rather than the mod_jk connector. 19 Tomcat in EasyApache 3 Vs. Tomcat in EasyApache 4