Documentation Center

Running the database setup script for Linux

The database setup script installs or upgrades your Legacy Content Delivery database.

Procedure

  1. Log on to your target machine as an administrator-level user.
  2. Make sure that the JAVA_HOME environment variable is set to a supported version of Java.
  3. If your Web application server is Apache Tomcat, do the following to enable management of the Legacy Content Delivery Web application from your Apache Tomcat Web Application Manager:
    1. Navigate to the SDL Tridion Docs home folder, and then to its WEB-INF/lib/ subfolder.
    2. From this location, copy rlmnum.jar (where num is a series of digits, for example 923).
    3. Navigate to the Apache Tomcat home folder, and then to its lib/ subfolder, and paste the file.
  4. Start your Web application server and wait for the Legacy Content Delivery Web application to be fully initialized. You can verify that the Web application is loaded by checking if you can access its URL.
  5. In a command shell, navigate to the SDL Tridion Docs home folder and then into its WEB-INF/ subfolder.
  6. Enter the following command:
    setup.sh install
    Add the following switches if necessary:
    -Dlc.protocol=HTTPS

    Add this to the end of your command if your Legacy Content Delivery Web application runs securely over an HTTPS protocol.

    -Dlc.port=PORTNUMBER

    Add this to the end of your command if your Legacy Content Delivery Web application runs on a different port than 8080, indicated by PORTNUMBER.

    -Dlc.context=CONTEXT

    Add this to the end of your command if your Legacy Content Delivery Web application runs in a specific application context other than the default context /ContentDelivery, indicated by CONTEXT (must start with a /).

    -Dlc.host=HOST

    Add this to the end of your command if your Legacy Content Delivery Web application on a host other than the default,localhost, indicated by HOST.

    -jh "C:\Program Files\Java\jdk-11+28-jre"
    Add this to the command if you haven't already set your JAVA_HOME environment variable appropriately. It specifies the directory where Java is installed (use this value if you have installed AdoptOpenJDK).
    The setup script initializes the database and uploads program files and skins to it.