How would you Set Up Nameservers in cPanel and WHM?
This article will be of assistance to you. In cPanel and WHM, how can you…
In this tutorial, we’ll explain how Tomcat 8 and EasyApache Setup Guide
The article will show you to set up a test application with Tomcat 8 and EasyApache. This is the best way to understand the basic concepts for setting up a Tomcat application and to verify that tomcat works on your cPanel server.
This procedure is done through SSH as the root user.
You can copy and paste these commands directly as they are presented and if you are simply creating a test account to verify that Tomcat is working on the server. Even you can replace the example username and domain with your own set up a new account with a working test application to start with.
Procedure:
yum install ea-tomcat85 rng-tools -y
whmapi1 createacct username=tcattest domain=tcat.tld
password=$(openssl rand -base64 12)
/scripts/ea-tomcat85 add tcattest
echo "export PATH=$(dirname $(readlink /usr/local/cpanel/3rdparty/bin/perl))
:$PATH" >> /home/tcattest/.bashrc
cagefsctl --addrpm tzdata-java
cagefsctl --force-update
<Context path="/" docBase="/home/tcattest/ea-tomcat85/webapps/ROOT/">The result should look like the following within the server.xml file:
</Context>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false"
deployOnStartup="false" deployXML="false">
<Context path="/" docBase="/home/tcattest/ea-tomcat85/webapps/ROOT/">
</Context>
sudo -u tcattest cp -avp /opt/cpanel/ea-tomcat85/test.jsp
/home/tcattest/ea-tomcat85/webapps/ROOT/
su - tcattest -s /bin/bash -c 'ubic restart ea-tomcat85'
egrep 'Connector port.*HTTP' /home/tcattest/ea-tomcat85/conf/server.xml
lynx --dump http://x.x.x.x:CONNECTORPORTHERE/test.jsp
egrep 'Connector port.*AJP' /home/tcattest/ea-tomcat85/conf/server.xml
<IfModule proxy_ajp_module>
ProxyPass "/cptest" "ajp://127.0.0.1:AJPPORTHERE/"
</IfModule>
/scripts/rebuildhttpdconf && /scripts/restartsrv_httpd
/etc/hosts
lynx --dump http://tcat.tld/test.jsp
We hope that you will now be able to successfully add a contact from the bodhost client area.
Explore more hosting insights, tips and industry updates.
This article will be of assistance to you. In cPanel and WHM, how can you…
This tutorial will show you how to use a process manager in WHM to track…
Here are the troubleshooting steps for R1soft Backup policy errors Agent shut down unexpectedly.-Restart the…