Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
📙 You will learn
How to install and configure ThreadFix on Ubuntu. While currently ThreadFix supports Ubuntu 12.04 and newer, these instructions were developed and tested against Ubuntu 16.04.
Prerequisites
Audience: IT Professional and/or End User
Difficulty: Intermediate
Time needed: Approximately 60 minutes
Tools required: OpenJDK 8, latest version of OpenJDK 11 or Oracle Java 8, latest version of Tomcat 8.5, MySQL or Microsoft SQL Server
Install Java
To check the currently-installed version, run the java -version
command.
OpenJDK 11
Expand | ||
---|---|---|
| ||
ThreadFix version 2.7.9 and newer can run on OpenJDK 11 (version 11.0.5 or newer), OpenJDK 8, or Oracle Java 8, shown in the sections below. To install, open a Terminal and run the following commands:
If you have multiple JREs installed, run the |
OpenJDK 8
Expand | ||
---|---|---|
| ||
ThreadFix version 2.7 and newer can run on OpenJDK 8 or Oracle Java 8, shown in the next section. To install, open a Terminal and run the following commands:
If you have multiple JREs installed, run the |
Oracle Java 8
Expand | ||
---|---|---|
| ||
To deploy versions of ThreadFix 2.6.2.6 and older, you'll need to use Oracle Java 8. To pull the Oracle version, you'll need to add a repository by opening Terminal and running the following commands:
Select "OK" to proceed through the install, and accept the license terms. |
Install and Configure Tomcat 8.5
ThreadFix recommends the latest version of Tomcat 8.5. Note versions prior to 8.5.78 are not recommended due to security exploit CVE-2022-22965.
1. Download the latest version of Tomcat 8.5.
Note |
---|
For the current version of ThreadFix, apt-get is not recommended for installing Tomcat. Getting the latest version of Tomcat 8.5 directly with wget is the preferred method. The link to the tarball is provided by the official Apache Tomcat site and is a mirror site hosting the most recent version. |
Code Block |
---|
wget https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.8385/bin/apache-tomcat-8.5.8385.tar.gz |
If the above command doesn't work, the download may have been moved/updated. Browse to https://tomcat.apache.org/download-80.cgi to determine the most recent version available.
2. Create a directory to install Tomcat 8.5, then extract the tar ball there.
Code Block |
---|
sudo mkdir /opt/tomcat sudo tar xvf apache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1 |
3. Create a group and user to manage the Tomcat execution.
Code Block |
---|
sudo groupadd tomcat sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat |
Web.xml Update
For compatibility with Tomcat 8.5.43 and newer, make the following update:
Open the <tomcat-deploy>/conf/web.xml file in a text editor with elevated privilege and edit the default servlet as follows:
OLD
Expand | ||
---|---|---|
| ||
|
NEW
Expand | ||
---|---|---|
| ||
|
Enable Tomcat Service
If you want tomcat to run as a service that you can have start automatically at boot, the preferred method in Ubuntu 16.04 is using systemd. Create a file at /etc/systemd/system/tomcat.service
with the following content.
Expand | ||
---|---|---|
| ||
|
Reload Systemd to load the Tomcat unit file and enable the tomcat.service.
Code Block |
---|
sudo systemctl daemon-reload sudo systemctl enable tomcat.service |
SSL/TLS Implementation
For information on configuring Tomcat to run over SSL/TLS, refer to the following article.
Install and Configure the Database
To install and configure MySQL, refer to the Ubuntu MySQL Installation and Configuration page.
To install and configure Microsoft SQL Server, refer to the Windows SQL Server Configuration page.
Install and Configure ThreadFix
Once you've followed the steps above, you're ready to install ThreadFix. Please see the ThreadFix Installation guide to complete your deployment.
Table of Contents
Table of Contents | ||
---|---|---|
|