How to install and configure Tomcat in Plesk

Created:

2016-11-16 12:42:56 UTC

Modified:

2017-07-21 19:49:11 UTC

13

Was this article helpful?


Have more questions?

Submit a request

How to install and configure Tomcat in Plesk

Applicable to:

  • Plesk for Linux

Question

How to install and configure Tomcat in Plesk?

Answer

To be able to run Java applications on domains hosted in Plesk, you need to install Tomcat, Plesk packages for Java support, configure them and start the service.

  1. Tomcat installation

    • Log in to Plesk as admin.
    • From the menu on the left, click Tools & Settings .
    • In the Panel section, click Updates and Upgrades .
    • Click Add/Remove Components .
    • Click " + " next to Plesk hosting features .
    • Select Tomcat Java Servlets support .
    • Click Continue .
    • Wait for notification about successful installation.
    • Close the installer window.
    • After the installer restarts Plesk, log back in to the Plesk as admin.
  2. Tomcat configuration

    # /usr/local/psa/admin/sbin/tomcatmng --install-psa
    # /usr/local/psa/admin/sbin/tomcatmng --is-configured
    yes
  3. Starting Tomcat

    • Log in to Plesk as admin.
    • From the menu on the left, click Tools & Settings .
    • From the Server Management section, click Services Management .
    • To the right of Server Management , click Play near Tomcat Java .

Verify that Tomcat is running and port is listened, execute the following command on the server:

 # service tomcat status
# netstat -plant|grep 9080
-tcp 0 0 :::9080 :::* LISTEN 20018/java

Additional information

How to upload Java .war file in Plesk?

It is not possible to manage Tomcat service

How can I verify that Tomcat service works on my Plesk server?

Have more questions? Submit a request
Please sign in to leave a comment.