In tomcat, what is catalina_home and why we use it?

Emmanuel Angelo.R picture Emmanuel Angelo.R · Nov 6, 2014 · Viewed 32.9k times · Source

Iam new to tomcat but i knew something in java, While setting up tomcat we use to set java_home for the jdk path but all i wanted to knew what is catalina_home and why we need to setup in catalina.sh?

Answer

David Brossard picture David Brossard · Nov 6, 2014

CATALINA_HOME is the folder where Apache Tomcat is installed e.g. c:\program files\Apache Tomcat or /usr/apache/tomcat. It is the folder where you unzip Tomcat in the first place (when you install from zip).

CATALINA_HOME is necessary because a lot of the files Tomcat will use are referred to from the variable CATALINA_HOME. For instance log files are written inside CATALINA_HOME/logs. Configuration is read from CATALINA_HOME/conf.

If you try to run Tomcat with the wrong CATALINA_HOME, things will go wrong.