There are upcoming maintenance events which may impact our services. Learn more

How to Deploy Java Applications Print

  • 0

To deploy a Java WAR package via the cPanel interface, navigate to cPanel's File Manager interface (Home >> Files >> File Manager) and perform the following steps:

  1. Select your public_html directory.
  2. Click New Folder and enter the new folder's name.
  3. Select your new folder in the center pane of the interface.
  4. Click Upload.
  5. Click Choose File.
  6. Browse to the Java WAR package and click Open.
  7. Select the file and click Rename.
  8. Change the file extension from .war to .zip and click Rename File.
  9. Select the .zip file and click Extract.
  10. Select the .htaccess file inside your public_html directory. 


    If you do not see the .htaccess file inside your public_html directory, perform the following steps:

    1. Exit cPanel's File Manager interface (Home >> Files >> File Manager)
    2. Refresh your cPanel interface.
    3. Click cPanel's File Manager interface (Home >> Files >> File Manager) and select the Show Hidden Files (dotfiles) checkbox.
    4. Click Go.
  11. Click Edit.
  12. Click Edit in the Text Editor interface.
  13. Enter the following text in the text box:

    SetHandler jakarta-servlet
    SetEnv JK_WORKER_NAME ajp13
  14. Click Save Changes.

  15. Access your Java application with the  URL.


    • represents your domain name.
    • exampledirectory represents the Java application's directory.
    • examplejavaapplication represents the Java application's name

Your Java applications are ready to use.

For Reference

Was this answer helpful?

« Back

Download iOS & Android app

Let's be Appy😉 You can now manage your hosting and domains on the move. Yes! You may download Motherhost Application from Apple Store or Google Play store. You can Register, Renew and Host your domain name from anywhere, any time.

motherhost app screen