Skip to main content
All CollectionsGetting StartedAdvanced Configuration Settings
Updating Tomcat version on the Faddom Server Appliance
Updating Tomcat version on the Faddom Server Appliance
Alex Patnick avatar
Written by Alex Patnick
Updated over 2 months ago

Update Instructions

If you have internet access from the Faddom server, you can use the attached script to run the upgrade. If not, you can follow the procedure below. In any case, it is recommended to create a snapshot of the Faddom server VM before starting.

Backup your old Tomcat directory

IMPORTANT! We will later need some files from here.

sudo cp -r /usr/local/tomcat9 /usr/local/tomcat9-backup

Stop the tomcat server

sudo systemctl stop tomcat

Download the latest Tomcat 9 version

The links to the latest version can be found here: https://tomcat.apache.org/download-90.cgi. The needed file is the Core tar.gz file.

As of the latest update of this article, the latest version is 9.0.65 and can be downloaded as follows:

wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.65/bin/apache-tomcat-9.0.65.tar.gz

It is recommended to verify the download using the following commands:

wget https://downloads.apache.org/tomcat/tomcat-9/v9.0.65/bin/apache-tomcat-9.0.65.tar.gz.sha512
sha512sum -c apache-tomcat-9.0.65.tar.gz.sha512

Your output should be:

apache-tomcat-9.0.65.tar.gz: OK

If you do not have an internet connection from the Faddom server, you can download the core tar.gz file and the sha512 signature file from the tomcat downloads page instead of using wget and then copy them to the server.

Update Tomcat

First, extract the files from the downloaded archive

tar -xf apache-tomcat-9.0.65.tar.gz

Copy the lib and bin directories from the new version

yes | cp -rf apache-tomcat-9.0.65/bin apache-tomcat-9.0.65/lib /usr/local/tomcat9/

Restore files from the backed up version

When updating the Faddom Server appliance:

yes | cp -rf /usr/local/tomcat9-backup/bin/setenv.sh /usr/local/tomcat9-backup/bin/liblmxjava.so /usr/local/tomcat9/bin/

When updating the Faddom Proxy appliance:

yes | cp -rf /usr/local/tomcat9-backup/bin/setenv.sh /usr/local/tomcat9/bin/

Update permissions for the new files

sudo chown tomcat:tomcat /usr/local/tomcat9/bin/* /usr/local/tomcat9/lib/*

Start tomcat

sudo systemctl start tomcat

After a few minutes, the server should be up and running. Once everything is running, you can delete the backup folder.

Did this answer your question?