title: Where is tomcat configuration in Cpanel?
body: <p>I have tomcat 7 installed on a linux VPS under cPanel using easyapache 3.</p>
  
  <p>It appears to be working - I can upload a war file and get my service to execute.</p>
  
  <p>However, I need to make some configuration changes such as defining java.library.path.  There was an excellent description of that at [<a href="https://stackoverflow.com/questions/14018817/how-to-add-native-library-in-tomcat][1]">How to add a native library in Tomcat?</a>.  It says to create a setenv.sh file in the configuration folder, which would also contains catalina.sh.</p>
  
  <p>However, I cannot find any folder with catalina.sh on the cPanel server.  I have done a find on the entire file system, and it is just not there.  The only tomcat configuration files I can find are in a folder /usr/local/easy/etc/easy-tomcat7</p>
  
  <pre><code>drwxr-xr-x 3 root   nobody   4096 Sep  9 03:54 ./
  drwxrwxr-x 3 root   wheel    4096 Jul 27 13:42 ../
  drwxrwxr-x 4 root   nobody   4096 Sep  9 03:54 Catalina/
  -rw-rw-r-- 1 tomcat nobody  11893 Jan 27  2015 catalina.policy
  -rw-rw-r-- 1 tomcat nobody   5946 Jan 27  2015 catalina.properties
  -rw-rw-r-- 1 tomcat nobody   1394 Jan 27  2015 context.xml
  -rw-rw-r-- 1 root   nobody    144 Jan 27  2015 easy-tomcat7-chkserv
  -rw-r--r-- 1 root   root     5018 Sep  4 23:00 httpd-jk.conf
  -rw-rw-r-- 1 tomcat nobody    547 Jan 27  2015 log4j.properties
  -rw-rw-r-- 1 tomcat nobody   3288 Jan 27  2015 logging.properties
  -rw-rw-r-- 1 tomcat nobody   6868 Sep  4 23:04 server.xml
  -rw------- 1 tomcat nobody   2082 Sep  3 21:59 tomcat-users.xml
  -rw-r--r-- 1 root   root     1357 Sep  4 23:00 uriworkermap.properties
  -rw-rw-r-- 1 tomcat nobody 162905 Jan 27  2015 web.xml
  -rw-r--r-- 1 root   root     6549 Sep  4 23:00 workers.properties
  -rw-r--r-- 1 root   root     1311 Sep  4 23:00 workers.properties.minimal
  </code></pre>
  
  <p>There are various configuration settings in server.xml, web.xml, catalina.policy, and catalina.properties but nothing matches up with what I see in catalina.sh(or bat) in my local development environment (Windows Tomcat 7).</p>
  
  <p>Is there something special about how cPanel does the install?  And where might I put a setenv.bat file?  Or does it need to be done some other way?</p>
  
  <p>I do have root access, and don't seem to have any trouble finding anything else on the server.</p>
  
  <p>Thanks for any explanation of what might be going on here.</p>