{"id":6567,"date":"2022-04-26T04:50:06","date_gmt":"2022-04-26T04:50:06","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=6567"},"modified":"2026-02-26T14:02:49","modified_gmt":"2026-02-26T14:02:49","slug":"setup-guide-for-tomcat-8-and-easyapache","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/","title":{"rendered":"Setup Guide For Tomcat 8 and EasyApache"},"content":{"rendered":"\r\n<p>In this tutorial, we\u2019ll explain how Tomcat 8 and EasyApache Setup Guide<\/p>\r\n\r\n\r\n\r\n<p>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.<\/p>\r\n\r\n\r\n\r\n<p>This procedure is done through SSH as the root user.<\/p>\r\n\r\n\r\n\r\n<p>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.<\/p>\r\n\r\n\r\n\r\n<p><strong>Procedure:<\/strong><\/p>\r\n\r\n\r\n\r\n<ol>\r\n<li>Check that the required packages are installed:\r\n<pre>yum install ea-tomcat85 rng-tools -y<\/pre>\r\n<\/li>\r\n<li>Create a test account that you can use temporarily to verify that Tomcat is working:\r\n<pre>whmapi1 createacct username=tcattest domain=tcat.tld <br \/>password=$(openssl rand -base64 12)<\/pre>\r\n<\/li>\r\n<li>Add Tomcat to the user:\r\n<pre>\/scripts\/ea-tomcat85 add tcattest<\/pre>\r\n<\/li>\r\n<li>Add access to the ubic utility for the user&#8217;s shell:\r\n<pre>echo \"export PATH=$(dirname $(readlink \/usr\/local\/cpanel\/3rdparty\/bin\/perl))<br \/>:$PATH\" &gt;&gt; \/home\/tcattest\/.bashrc<\/pre>\r\n<\/li>\r\n<li>If server is using Cloudlinux, you need to run the command given are given below to add java to the Cagefs mount.\r\n<pre>cagefsctl --addrpm tzdata-java<br \/>cagefsctl --force-update<\/pre>\r\n<\/li>\r\n<li>Add the required context within the &lt;Host &#8230; &gt; element of the server.xml configuration:<br \/>\/home\/tcattest\/ea-tomcat85\/conf\/server.xml<br \/>\r\n<pre>&lt;Context path=\"\/\" docBase=\"\/home\/tcattest\/ea-tomcat85\/webapps\/ROOT\/\"&gt;<br \/>&lt;\/Context&gt;<\/pre>\r\n\u00a0The result should look like the following within the server.xml file:\r\n<pre>&lt;Host name=\"localhost\" appBase=\"webapps\" unpackWARs=\"true\" autoDeploy=\"false\" <br \/>deployOnStartup=\"false\" deployXML=\"false\"&gt;<br \/>&lt;Context path=\"\/\" docBase=\"\/home\/tcattest\/ea-tomcat85\/webapps\/ROOT\/\"&gt;<br \/> &lt;\/Context&gt;<\/pre>\r\n<\/li>\r\n<li>Copy the test application into place:\r\n<pre>sudo -u tcattest cp -avp \/opt\/cpanel\/ea-tomcat85\/test.jsp <br \/>\/home\/tcattest\/ea-tomcat85\/webapps\/ROOT\/<\/pre>\r\n<\/li>\r\n<li>Restart the Tomcat Private Instance:\r\n<pre>su - tcattest -s \/bin\/bash -c 'ubic restart ea-tomcat85'<\/pre>\r\n<\/li>\r\n<li>Locate the connector port:\r\n<pre>egrep 'Connector port.*HTTP' \/home\/tcattest\/ea-tomcat85\/conf\/server.xml<\/pre>\r\n<\/li>\r\n<li>Use the port found from the command above along with your server&#8217;s public IP to verify that the test application is working properly:\u00a0\r\n<pre>lynx --dump\u00a0http:\/\/x.x.x.x:CONNECTORPORTHERE\/test.jsp<\/pre>\r\n<\/li>\r\n<li>Locate the AJP port:\r\n<pre>egrep 'Connector port.*AJP' \/home\/tcattest\/ea-tomcat85\/conf\/server.xml<\/pre>\r\n<\/li>\r\n<li>Setup a ProxyPass configuration so that Apache can serve the application.<br \/>A more detailed guide found below that includes an example for port 443 (https):<br \/>How to Proxy Tomcat to Apache<br \/>\/etc\/apache2\/conf.d\/userdata\/std\/2_4\/tcattest\/tcat.tld\/custom.conf\r\n<pre>&lt;IfModule proxy_ajp_module&gt;<br \/>ProxyPass \"\/cptest\" \"ajp:\/\/127.0.0.1:AJPPORTHERE\/\"<br \/>&lt;\/IfModule&gt;<\/pre>\r\n<\/li>\r\n<li>Rebuild the Apache configuration and restart Apache:\r\n<pre>\/scripts\/rebuildhttpdconf &amp;&amp; \/scripts\/restartsrv_httpd<\/pre>\r\n<\/li>\r\n<li>For final test works, you can update the host file with your test domain<br \/>How to Modify Your Hosts File\r\n<pre>\/etc\/hosts<\/pre>\r\n<\/li>\r\n<li>Test with the domain to verify that the ProxyPass configuration works:\r\n<pre>lynx --dump\u00a0http:\/\/tcat.tld\/test.jsp<\/pre>\r\n<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<p>We hope that you will now be able to successfully add a contact from the bodhost client area.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we\u2019ll 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&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[1062],"class_list":["post-6567","post","type-post","status-publish","format-standard","hentry","category-general","tag-setup-guide-for-tomcat-8-and-easyapache"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setup Guide For Tomcat 8 and EasyApache<\/title>\n<meta name=\"description\" content=\"In this tutorial, We have explain Tomcat8 and EasyApache Setup Guide. If you need instructions then read our knowledgebase article\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setup Guide For Tomcat 8 and EasyApache\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, We have explain Tomcat8 and EasyApache Setup Guide. If you need instructions then read our knowledgebase article\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-26T04:50:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:49+00:00\" \/>\n<meta name=\"author\" content=\"Vincer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vincer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/setup-guide-for-tomcat-8-and-easyapache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/setup-guide-for-tomcat-8-and-easyapache\\\/\"},\"author\":{\"name\":\"Vincer\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\"},\"headline\":\"Setup Guide For Tomcat 8 and EasyApache\",\"datePublished\":\"2022-04-26T04:50:06+00:00\",\"dateModified\":\"2026-02-26T14:02:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/setup-guide-for-tomcat-8-and-easyapache\\\/\"},\"wordCount\":357,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"Setup Guide For Tomcat 8 and EasyApache\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/setup-guide-for-tomcat-8-and-easyapache\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/setup-guide-for-tomcat-8-and-easyapache\\\/\",\"name\":\"Setup Guide For Tomcat 8 and EasyApache\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2022-04-26T04:50:06+00:00\",\"dateModified\":\"2026-02-26T14:02:49+00:00\",\"description\":\"In this tutorial, We have explain Tomcat8 and EasyApache Setup Guide. If you need instructions then read our knowledgebase article\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/setup-guide-for-tomcat-8-and-easyapache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/setup-guide-for-tomcat-8-and-easyapache\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/setup-guide-for-tomcat-8-and-easyapache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setup Guide For Tomcat 8 and EasyApache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\",\"name\":\"Vincer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"caption\":\"Vincer\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/vinayak\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setup Guide For Tomcat 8 and EasyApache","description":"In this tutorial, We have explain Tomcat8 and EasyApache Setup Guide. If you need instructions then read our knowledgebase article","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/","og_locale":"en_US","og_type":"article","og_title":"Setup Guide For Tomcat 8 and EasyApache","og_description":"In this tutorial, We have explain Tomcat8 and EasyApache Setup Guide. If you need instructions then read our knowledgebase article","og_url":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2022-04-26T04:50:06+00:00","article_modified_time":"2026-02-26T14:02:49+00:00","author":"Vincer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vincer","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/"},"author":{"name":"Vincer","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0"},"headline":"Setup Guide For Tomcat 8 and EasyApache","datePublished":"2022-04-26T04:50:06+00:00","dateModified":"2026-02-26T14:02:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/"},"wordCount":357,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["Setup Guide For Tomcat 8 and EasyApache"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/","url":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/","name":"Setup Guide For Tomcat 8 and EasyApache","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2022-04-26T04:50:06+00:00","dateModified":"2026-02-26T14:02:49+00:00","description":"In this tutorial, We have explain Tomcat8 and EasyApache Setup Guide. If you need instructions then read our knowledgebase article","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/setup-guide-for-tomcat-8-and-easyapache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"Setup Guide For Tomcat 8 and EasyApache"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0","name":"Vincer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","caption":"Vincer"},"url":"https:\/\/www.bodhost.com\/kb\/author\/vinayak\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=6567"}],"version-history":[{"count":11,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6567\/revisions"}],"predecessor-version":[{"id":11818,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6567\/revisions\/11818"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=6567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=6567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=6567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}