Where is Apache’s Default Document Root Directory?
The default document root directory of Apache is discussed in this article.If you’re searching for…
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.
The default document root directory of Apache is discussed in this article.If you’re searching for…
This article explains how to set up website hosting on a VPS. Hosting a website…
At times, while using FTP, you may encounter an error that prevents you from accessing…