If you want to run Java applications on your Linux server with Plesk installed, you need to install Tomcat on your server. This might require you to access your server using SSH. See Connect to my Web Hosting account with SSH (Secure Shell) or Log in to my server for more information.
Follow each of the procedures below to install Tomcat on your server using the Plesk Updates and Upgrades installer. It is not recommended to install Tomcat, using Plesk, on a server with third-party repositories installed. It's best to install Tomcat on a clean install of Plesk and CentOS.
To Install Tomcat in Plesk 10.x and 11.x
- Log in to Parallels Plesk Panel as admin.
- From the menu on the left, click Tools & Settings.
- In the Panel section, click Updates and Upgrades.
- Click Add Components.
- Click + next to Plesk hosting features.
- Select Tomcat Java Servlets support.
- Click Continue.
If the installation is successful, a message stating All products and components have been successfully installed and upgraded. displays. - Close the installer window.
- After the installer restarts Plesk, log back in to the Plesk Panel as admin.
To Start Tomcat in Plesk 10.x and 11.x
- Log in to Parallels Plesk Panel 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 to start the Tomcat Server.
To Enable Tomcat for Subscriptions in Plesk 10.x and 11.x
- Log in to Parallels Plesk Panel as admin.
- From the menu on the left, click Subscriptions.
- Click the link for the subscription you need to use Tomcat on.
- Click Customize.
- Click Show more available resources.
- Select allow unlimited applications, or place a number in the field provided.
- Click Update & Lock.
If you get a yum error installing Tomcat
- Log in to SSH and change to the root user. See Connect to my Web Hosting account with SSH (Secure Shell) or Log in to my server for more information.
- Type the following in SSH:
yum clean all
yum -y install yum-utils
yum-complete-transaction -y
yum-complete-transaction -y
yum-complete-transaction -y
yum-complete-transaction -y
yum-complete-transaction -y
yum-complete-transaction -y
yum-complete-transaction -y
yum-complete-transaction -y
Continue typing the command yum-complete-transaction -y until you get a message stating No unfinished transactions left. - You should now be able to install Tomcat following the first procedure in this article.