{"id":14461,"date":"2022-11-14T11:48:46","date_gmt":"2022-11-14T11:48:46","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=14461"},"modified":"2022-11-16T06:27:10","modified_gmt":"2022-11-16T06:27:10","slug":"steps-to-install-and-configure-ea-tomcat85","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/","title":{"rendered":"Steps to Install and Configure ea-Tomcat85"},"content":{"rendered":"\n<p>In this article, we will understand the steps to install ea-Tomcat8.5 with private instances.<\/p>\n\n\n\n<p>Here, all the instruction are given as you are logging into the server through the SSH access as the root user, or using WHM\u2019s Terminal. (WHM&gt; Server Configuration &gt;Terminal).<\/p>\n\n\n\n<p>In the example given below:<\/p>\n\n\n\n<p><strong>$username<\/strong> denotes the username which is linked with the particular cPanel account. If your cPanel\u2019s account username is test1234, then:<\/p>\n\n\n\n<p>The syntax for this is:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/home\/$username\/.bashrc<\/pre>\n\n\n\n<p>After entering the username, it looks like this<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/home\/test1234\/.bashrc<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Steps for Installing ea-Tomcat85<\/h2>\n\n\n\n<p>First, we need to install the ea-tomcat85 and the rng-tools packages.<\/p>\n\n\n\n<p>To do so, enter the command given below:<\/p>\n\n\n\n<p><strong><em>yum install ea-tomcat85 rng-tools -y<\/em><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Tomcat Support to an Account<\/h2>\n\n\n\n<p>Now, we have to add support for Tomcat to the accounts that needs it. Use the command given below to replicate every user that needs Tomcat:<\/p>\n\n\n\n<p><strong><em>\/scripts\/ea-tomcat85 add $username<\/em><\/strong><\/p>\n\n\n\n<p>After the above step is completed, you can then verify if the Tomcat is enabled. <\/p>\n\n\n\n<p><strong><em>\/scripts\/ea-tomcat85 list<\/em><\/strong><\/p>\n\n\n\n<p>The next step is to install Ubic. It basically manages the services in Tomcat.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Ubic Installation Process<\/h3>\n\n\n\n<p>Now, the installation of Ubic for cPanel user is simple. It needs the cPanel user to have shell access to the server which includes the write permissions to:<\/p>\n\n\n\n<p><strong><em>users\/home\/$username\/.bashrc file<\/em><\/strong><\/p>\n\n\n\n<p>Enter the command into the shell\/terminal while logged with root access after you replace the $username with the right username.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">su - $username\necho \"export PATH=$(dirname $(readlink \/usr\/local\/cpanel\/3rdparty\/bin\/perl)):$PATH\" &gt;&gt; \/home\/$username\/.bashrc<\/pre>\n\n\n\n<p>You can skip the \u201csu\u201d command if you are accessing the SSH directly as a cPanel user.<\/p>\n\n\n\n<p><strong>a. For CloudLinux<\/strong><\/p>\n\n\n\n<p>If you are applying CloudLinux, then you also need to run the commands given below, from the root level, for adding Java to the CageFS mounts:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cagefsctl --addrpm tzdata-java\ncagefsctl --force-update\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Testing<\/h3>\n\n\n\n<p>Once this is installed, you can then test that Ubic is running and Tomcat is enabled\/installed with the command: (from the root level)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">su - $username -s \/bin\/bash -c 'ubic status ea-tomcat85'<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configuration of Tomcat Environment<\/h3>\n\n\n\n<p>The Tomcat environment configuration is one of the most difficult part of the process. Apply the steps given below to configure the Tomcat environment.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. Application Directory Configuration<\/h4>\n\n\n\n<p>Now, for enabling the ROOT webapp directory for testing, then add the entry to the section in the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/home\/$username\/ea-tomcat85\/conf\/server.xml file<\/pre>\n\n\n\n<p>This section starts with the deploy options, so this can be set below the line which contains autoDeploy, deployXML settings and deployOnStartup.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Verify the Environment<\/h4>\n\n\n\n<p>Before making any changes that can alter the configuration of Apache, it is advised to copy the test.jsp and call it directly to make sure the environment is operational.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">egrep 'Connector port.*HTTP' \/home\/$username\/ea-tomcat85\/conf\/server.xml\n<\/pre>\n\n\n\n<p>In order to copy the test script you would use the below command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo -u $username cp -avp \/opt\/cpanel\/ea-tomcat85\/test.jsp \/home\/$username\/ea-tomcat85\/webapps\/ROOT\/\n<\/pre>\n\n\n\n<p>Once its completed, restart the Private Tomcat Instance for the user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">su - $username -s \/bin\/bash -c 'ubic restart ea-tomcat85'\n<\/pre>\n\n\n\n<p>Access &#8220;http:\/\/yourserverip:$PORT\/test.jsp&#8221; with your preferred method, where $PORT is the port you previously determined, to verify test.jsp is operational. You should get a page with the following information on it:<\/p>\n\n\n\n<p><strong><em>Test JSP Page<br>This is a page to check that .jsp support has been enabled<\/em><\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. Configuring the Proxypass<\/h4>\n\n\n\n<p>To configure the ProxyPass directive properly, you must first obtain the AJP connector port. The below command will help to restore the port info:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">egrep 'Connector port.*AJP' \/home\/$username\/ea-tomcat85\/conf\/server.xml<\/pre>\n\n\n\n<p>After you get the port, then you can create a ProxyPass Apache include file. Make sure you complete this action two times.<\/p>\n\n\n\n<p>For the first time, perform it for http (std) and another for httos (ssl). Both of them uses similar approach as the Apache VHost includes. The path includes for http (std).<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/apache2\/conf.d\/userdata\/std\/2_4\/$username\/$domain.tld\/tomcatproxypass.conf \n<\/pre>\n\n\n\n<p>And this file will look like this:<\/p>\n\n\n\n<p>&lt;<strong><em>IfModule proxy_ajp_module&gt; Proxypass &#8220;\/&#8221; &#8220;ajp:\/\/127.0.0.1:$PORT\/&#8221; &lt;\/IfModule<\/em><\/strong>&gt;<\/p>\n\n\n\n<p>Where $PORT is the value of the port which is recovered from the earlier command. Later, after you create the include files you should rebuild the Apache configuration and then restart the service.<\/p>\n\n\n\n<p><strong><em>\/usr\/local\/cpanel\/scripts\/rebuildhttpdconf &amp;&amp; \/usr\/local\/cpanel\/scripts\/restartsrv_httpd<\/em><\/strong><\/p>\n\n\n\n<p>At last, confirm that the ProxyPass runs by loading up http:\/\/yourdomain1.tld\/test.jsp in your chosen browser. You get the below output:<\/p>\n\n\n\n<p><strong><em>Test JSP Page<\/em><\/strong><\/p>\n\n\n\n<p>This is basically a page to check whether, .jsp support is enabled successfully.<\/p>\n\n\n\n<p>After following all the above steps, you are now ready to install your application. All you need to do is, copy the application files into \/home\/$username\/ea-tomcat85\/webapps\/ROOT\/. Now, your application will load at yourdomain1.tld\/.<\/p>\n\n\n\n<p>Hope this article helps!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will understand the steps to install ea-Tomcat8.5 with private instances. Here, all the instruction are given as you are logging into the server through the SSH access as the root user, or using WHM\u2019s Terminal. (WHM&gt; Server Configuration &gt;Terminal). In the example given below: $username denotes the username which is linked [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4],"tags":[2944],"class_list":["post-14461","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cpanel-faq","category-web-hosting-faq","tag-configure-ea-tomcat85"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Steps to Install and Configure ea-Tomcat85 | MilesWeb<\/title>\n<meta name=\"description\" content=\"You can install ea-Tomcat8.5 with the private instances. Here\u2019s a guide that shows the steps to install ea-Tomcat8.5.\" \/>\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.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Steps to Install and Configure ea-Tomcat85 | MilesWeb\" \/>\n<meta property=\"og:description\" content=\"You can install ea-Tomcat8.5 with the private instances. Here\u2019s a guide that shows the steps to install ea-Tomcat8.5.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-14T11:48:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-16T06:27:10+00:00\" \/>\n<meta name=\"author\" content=\"Nehal Khatri\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nehal Khatri\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/\",\"name\":\"Steps to Install and Configure ea-Tomcat85 | MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2022-11-14T11:48:46+00:00\",\"dateModified\":\"2022-11-16T06:27:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/0241ea191f60975839d956b6952e0a1d\"},\"description\":\"You can install ea-Tomcat8.5 with the private instances. Here\u2019s a guide that shows the steps to install ea-Tomcat8.5.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Steps to Install and Configure ea-Tomcat85\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/0241ea191f60975839d956b6952e0a1d\",\"name\":\"Nehal Khatri\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/736396ef8d8bdecec53ce8851058903e?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/736396ef8d8bdecec53ce8851058903e?s=96&d=blank&r=g\",\"caption\":\"Nehal Khatri\"},\"description\":\"Nehal is an ardent content writer. She's passionate about crafting content that's simple but adds value. Her insatiable interest in writing has allowed her to explore her skills. She is adept and can write for different types of content formats.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/nehal-khatri\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Steps to Install and Configure ea-Tomcat85 | MilesWeb","description":"You can install ea-Tomcat8.5 with the private instances. Here\u2019s a guide that shows the steps to install ea-Tomcat8.5.","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.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/","og_locale":"en_GB","og_type":"article","og_title":"Steps to Install and Configure ea-Tomcat85 | MilesWeb","og_description":"You can install ea-Tomcat8.5 with the private instances. Here\u2019s a guide that shows the steps to install ea-Tomcat8.5.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2022-11-14T11:48:46+00:00","article_modified_time":"2022-11-16T06:27:10+00:00","author":"Nehal Khatri","twitter_misc":{"Written by":"Nehal Khatri","Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/","name":"Steps to Install and Configure ea-Tomcat85 | MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2022-11-14T11:48:46+00:00","dateModified":"2022-11-16T06:27:10+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/0241ea191f60975839d956b6952e0a1d"},"description":"You can install ea-Tomcat8.5 with the private instances. Here\u2019s a guide that shows the steps to install ea-Tomcat8.5.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-install-and-configure-ea-tomcat85\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Steps to Install and Configure ea-Tomcat85"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/0241ea191f60975839d956b6952e0a1d","name":"Nehal Khatri","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/736396ef8d8bdecec53ce8851058903e?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/736396ef8d8bdecec53ce8851058903e?s=96&d=blank&r=g","caption":"Nehal Khatri"},"description":"Nehal is an ardent content writer. She's passionate about crafting content that's simple but adds value. Her insatiable interest in writing has allowed her to explore her skills. She is adept and can write for different types of content formats.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/nehal-khatri\/"}]}},"views":152,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=14461"}],"version-history":[{"count":6,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14461\/revisions"}],"predecessor-version":[{"id":14472,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14461\/revisions\/14472"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=14461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=14461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=14461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}