Plesk

 
 
Plesk is comprehensive server management software developed specifically for the hosting service industry.

The Plesk control panel will let you completely manage your hosting business as well as automate basic functions for your clients such as email account creation, add, delete, modify domains, monitor disk space and bandwidth usage and much more.

More information about Plesk can be found at: http://www.swsoft.com







Deloy a Java application.



Information
Several hosting companies are using the Plesk control panel (for example Plesk 7) with the Tomcat module installed. This module supports deploying and managing Tomcat web applications allowing users to set up hosting with JSP support.

Before you start developing a Java web application, gather as much information as possible about your hosting environment. With this information in mind you can start developing your Java web application.
  • Which MySQL version is installed?
    You can find this answer, by uploading a phpinfo.php file on the webserver.
    For example: MySQL 3.23.58

  • Which OS is installed?
    This information is also displayed by the phpinfo.php file.
    For example: Linux 2.4.22

  • Which webserver is installed?
    This information is also displayed by the phpinfo.php file.
    For example: Apache/2.0.50 (Fedora)

  • Which Plesk version is installed?
    You can find the answer in the Plesk Control Panel.
    Go to the homepage and click on the Report button.
    For example: psa v7.5.2_build75050204.17 os_FedoraCore 2
Besides the information you can retrieve yourself, there are some information you can only get by asking your hosting provider:
  • Which Tomcat version is installed?
    For example: tomcat4 4.1.24-full.2jpp (= Tomcat 4.1.24).

  • Which other software has been installed to support JSP and Java Servlet hosting?
    For example:
    j2sdk-1_4_2-linux-i586.rpm (= j2sdk 1.4.2)
    regexp-1.3-1jpp.noarch.rpm (= regexp 1.3)
    xerces-j-1.2.1-2.noarch.rpm (= xerces-j 1.2.1)
Operating system used
none

Software prerequisites
Plesk 7.5.2 (Reloaded)

Procedure
  1. Log into the Plesk Control Panel and verify if the Tomcat module is installed.

    Plesk Tomcat enabled

  2. Click on the Tomcat button.
    Verify if the Disable button is displayed, if NOT, click on the Enable button:

    Plesk enable button.

    Plesk Tomcat selected.

    Note: If the exclamation image Plesk exclamation image. is displayed but Tomcat is running, this means uploaded war files are not deployed. Ask your hosting provider if they can activate the Tomcat application.



  3. The Tomcat server is now running. You can verify this, by entering:

    http://www.mobilefish.com:8080

    The Tomcat welcome page is displayed.

    Tomcat welcome page.

    Note: The Tomcat Administration and Tomcat Manager links on the welcome page are not working!

  4. On the Plesk Control Panel click button "Add New Java Application", upload a war file and press OK button.

    In this example the struts-blank.war file has been uploaded. This war file can be found in struts 1.2.6 beta.

    Note: Do not use the struts-blank.war in struts 1.2.4.
    For unkown reasons you will get the following error message when deployed by Plesk: Servlet action is currently unavailable.

    Plesk upload war file.

  5. The war file is deployed. Click on the war filename to access the web application or enter:

    http://www.mobilefish.com:9080/struts-blank

    Note: If no Java web application is found a blank page will be displayed.

    Plesk start application.

    Note: The three buttons on the right side are respectively: start, stop and restart the Tomcat server.