Installing Multi-Context Jamf Pro Web Applications on a Linux Server

Jamf Pro Installation and Configuration Guide for Linux 11.23.0

Solution
Application
Content Type
Technical Documentation
Utilities & Services
version
11.23.0
ft:locale
en-US
vrm_version
11.23.0

The following instructions describe how to install multiple Jamf Pro web applications on a Linux server. These instructions apply to both Red Hat Enterprise Linux and Ubuntu.
Note:
For reference, you may find the installation instructions for a single Jamf Pro context helpful. For more information, see the following section of this guide for your platform:
  1. On the Linux server, if needed, copy the ROOT.war file to the Linux server with a command like:
    scp ~/Desktop/ROOT.war serveradmin@192.168.56.101:/tmp/
  2. Manually install Tomcat. For instructions, see step 2 of the manual installation instructions for your platform:
  3. Use the desired name for the context to copy the ROOT.war file from /tmp/ into the Tomcat webapps directory:
    sudo cp /tmp/ROOT.war /opt/tomcat/webapps/contextone.war
  4. Open the DataBase.xml file with a text editor by executing the following command:
    sudo nano -Bc /opt/tomcat//webapps/contextone/WEB-INF/xml/DataBase.xml
  5. Edit the file to match the MySQL account you created earlier:
    <DataBaseName>databaseone</DataBaseName>
    <DataBaseUser>usernameone</DataBaseUser>
    <DataBasePassword>passwordone</DataBasePassword>
  6. Open the log4j2.xml file with a text editor by executing the following command:
    sudo nano -Bc /opt/tomcat/webapps/contextone/WEB-INF/classes/log4j2.xml
  7. Locate each of the (3) instances of the following path:
    /Library/JSS/Logs/
  8. Modify the target file path for each of the logs so they read as follows:
    Note:

    Change contextone in the paths below to match the context name from step 2.

    /opt/tomcat/logs/contextone/JAMFChangeManagement.log
    /opt/tomcat/logs/contextone/JAMFSoftwareServer.log
    0/opt/tomcat/logs/contextone/JSSAccess.log
  9. Restart Tomcat by executing the following command:
    sudo service tomcat restart
  10. Browse to http://192.168.56.101:9006/contextone to verify the installation.