PRIVATE JVM TUTORIAL FOR LINUX CPANEL

PRIVATE JVM TUTORIAL FOR LINUX CPANEL

NOTE: This tutorial applies only to our Private JVM tool. Available for all cPanel Private JVM Linux accounts-    TUTORIAL FOR LINUX CPANEL   You can access your Private JVM tool from your cPanel control panel. Under the section of your cPanel control panel.

1) Installing your Tomcat instance:

To deploy your private JVM Tomcat instance, first, you need to install an Apache-Tomcat. From the left drop-down located inside our Private JVM tool area. Then choose the Apache-Tomcat version from the right drop-down. And click on the INSTALL button.   That will deploy the Tomcat instance in your home directory.   IMPORTANT: Please, double check your Java application requirements. For the required JDK and Tomcat versions. Tutorial for Linux Cpanel  You will run into a lot of issues. If you are running an incorrect JDK/Tomcat version. And your application will most likely fail to start.

2) Domain Mappings:

Before your Tomcat can handle your JSP pages and Java applications. You need to define which domain names you want to process by the Tomcat application service.   To do this select the desired Domain Name from the drop-down box located under “Map a domain to private JVM”. This will create a domain definition inside the server. XML file and will deploy a default application WAR.   For each domain name you are handling there is a docBase Directory located at:   /home/username/jvm/apache-tomcat-xx/domains/

3) Deploy your Application:

There are several ways to deploy your Java application. The most convenient is deploying a WAR file (not supported under our Shared JVM packages).   IMPORTANT: If you want your application to work at http://domain.name you have to rename yours. WAR to ROOT.war and then deploy it. Any other file names will result in your application accessible. At http://domain.name/filename

I. Deploying your application via WAR:

* You may deploy your war file through our Private JVM tool. Inside our private JVM tool under “Mapped Domains” go to Upload WAR and follow the instructions.   * You may deploy your war file through your Tomcat management application: Tomcat Manager or Psi Probe.   * You may deploy your war file via FTP. Inside our Private JVM applications under “Mapped Domains” you can see your exact path (/home/your username/JVM/apache-tomcat-x.x.xx/domains/your domain.name/). Upload the WAR file in that folder.

II. Deploying the application files :

* You need to upload all your files via FTP to the path specified in “Mapped Domains”. The path needs to be something like: /home/your username/JVM/apache-tomcat-x.x.xx/domains/your domain.name/

4) Start your Server:

Now that you have uploaded your application – you are ready to start the application server. All you need to do hit the ‘Start’ button inside your private JVM tool.   NOTE: If your domain name is NOT pointing to our service yet you can use the following method to test your site:   Click on the Preview link in the “Mapped domains” section and you will redirect to our preview tool. Then you need to choose the domain and click on the button.

Tags: , ,