Documentation Center

Setting up Apache Tomcat on a Unix system

Extract the Tomcat installation package, set a number of environment variables, and start Tomcat.

About this task

In the following steps, replace CATALINA_HOME with the path to your Apache Tomcat Catalina home directory.

Procedure

  1. Extract the Tomcat installation package, Apache-Tomcat-VERSION.tar.gz, where VERSION is a version supported by SDL Contenta (as listed in the SDL Contenta Platform Requirements), to a location of your choice by using the following commands.

    gzip -d apache-tomcat-VERSION.tar.gz

    tar xvf apache-tomcat-VERSION.tar

  2. In the Apache-Tomcat-VERSION/bin directory, create a file named tomcat.cshrc and specify the following variables and values in it.
    VariableValue
    JAVA_HOME The location of the Java installation directory, one level up from the bin/ directory.
    PATHJAVA_HOME/bin:$PATH
    CATALINA_HOMEThe location where the Apache Tomcat software is installed
    CATALINA_OPTS-Xms1024 -Xmx1024
    CATALINA_BASEThe location where the current Apache Tomcat software is installed
  3. Start Tomcat by entering the following in a command prompt:
    cd CATALINA_HOME/bin
    source tomcat.cshrc
    ./startup.sh
  4. Verify that Tomcat and all Web applications have started successfully by navigating to $CATALINA_HOME/logs and checking the file catalina.DATESTAMP.log, where DATESTAMP is a date.