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.
cp -r /usr/local/tomcat9 /usr/local/tomcat9-backup
Stop the tomcat server
systemctl stop tomcat.service
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:
It is recommended to verify the download using the following commands:
sha512sum -c apache-tomcat-9.0.65.tar.gz.sha512
Your output should be:
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.
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
chown illuminitserver:illuminitserver /usr/local/tomcat9/bin/* /usr/local/tomcat9/lib/*
systemctl start tomcat.service
After a few minutes, the server should be up and running. Once everything is running, you can delete the backup folder.