Where is tomcat configuration in Cpanel? -
i have tomcat 7 installed on linux vps under cpanel using easyapache 3.
it appears working - can upload war file , service execute.
however, need make configuration changes such defining java.library.path. there excellent description of @ [how add native library in tomcat?. says create setenv.sh file in configuration folder, contains catalina.sh.
however, cannot find folder catalina.sh on cpanel server. have done find on entire file system, , not there. tomcat configuration files can find in folder /usr/local/easy/etc/easy-tomcat7
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
there various configuration settings in server.xml, web.xml, catalina.policy, , catalina.properties nothing matches see in catalina.sh(or bat) in local development environment (windows tomcat 7).
is there special how cpanel install? , might put setenv.bat file? or need done other way?
i have root access, , don't seem have trouble finding else on server.
thanks explanation of might going on here.
after way many hours of searching found answer @ https://forums.cpanel.net/threads/cpanel-tomcat-jsp-and-servlets-guide.282922/
java startup values
if wish change startup values heap size , others (you can see settings configurable if issue “java -x” without quotes), file named /var/cpanel/tomcat.options created.
here’s example of entries placed file:
-xmx200m -xms100m
and works!
Comments
Post a Comment