CATALINA_HOME environment variable. Setting it (or re-setting it) will always work. Whether or not you need to set CATALINA_HOME depends on the following factors:
CATALINA_HOME is not set on your system, then you do not need to set it, but doing so will do no harm.
CATALINA_HOME is (already) set on your system, then you need to make sure it points to the location of the new Mobicents server.
CATALINA_HOME.
CATALINA_HOME on both Linux and Windows.
CATALINA_HOME Environment Variable on LinuxCATALINA_HOME environment variable must point to the location of your Tomcat installation. Any Mobicents server which runs on top of the Tomcat servlet container has a topmost directory, i.e. the directory in which you unzipped the zip file to install the server, and underneath that directory, a bin directory. CATALINA_HOME must be set to the topmost directory of your Mobicents server installation.
~/.bashrc file has the advantage that it will always be set (for you, as a user) each time you log in or reboot the system. To do so, open ~/.bashrc in a text editor (or create the file if it doesn't already exist) and insert the following line anywhere in the file, taking care to substitute <mobicents_server> for the topmost directory of the Mobicents server you installed:
export CATALINA_HOME="/home/<username>/<path>/<to>/<mobicents_server>"
.bashrc.
source your .bashrc file to make your change take effect (so that CATALINA_HOME is set) for the current session:
~]$ source ~/.bashrc
CATALINA_HOME has been set correctly (that it leads to the right directory), and has taken effect in the current session.
CATALINA_HOME:
~]$ echo $CATALINA_HOME
CATALINA_HOME:
~]$ cd $CATALINA_HOME && pwd
CATALINA_HOME Environment Variable on WindowsCATALINA_HOME environment variable must point to the location of your Tomcat installation. Any Mobicents server which runs on top of the Tomcat servlet container has a topmost directory, i.e. the directory in which you unzipped the zip file to install the server, and underneath that directory, a bin directory. CATALINA_HOME must be set to the topmost directory of your Mobicents server installation.
CATALINA_HOME environment variable as the administrator, and if you planning to run Tomcat as a normal user, then set CATALINA_HOME as a user environment variable.