« CryptoNark v0.4.6 Released | Main | Gaelyk 1.0 Released »

08/03/2011

Tomcat 6 Directory Locations on Ubuntu Server 11.04

I started playing around with Ubuntu Server on a locally created virtualbox virtual machine today and used aptitude to install tomcat 6.0.28.  Being used to the implementation one downloads directly from the Apache Software Foundation, quite a few minutes were spent figuring out where files were placed.  Below are the locations for folks spending time searching the web to find out things like where the webapps directory is on Ubuntu Server 11.04 or where the tomcat6 access logs might be located.

Default Installation Paths

Logs:  /var/log/tomcat6

Binaries and Libs:  /usr/share/tomcat6 (although libs are symlinked to /usr/share/java and some jars inside the bin directory get symlinked to /usr/share/java as well)

System start/stop/status script: /etc/init.d/tomcat6.

CATALINA_HOME:  /usr/share/tomcat6

CATALINA_BASE:  /var/lib/tomcat6

The default webapps directory location is under /var/lib/tomcat6/

Configuration files are under /etc/tomcat6/

I haven't given it a try yet but I prefer storing java options inside a setenv.sh script but the /etc/init.d/tomcat6 doesn't have any reference to setenv.sh like /usr/share/tomcat6/bin/catalina.sh does, so it will be interesting to see whether enabling jmx via setenv.sh will work or if I'll need to modify /etc/init.d/tomcat6.

TrackBack

TrackBack URL for this entry:
https://www.typepad.com/services/trackback/6a01156fbc6fe6970c0153906a2be6970b

Listed below are links to weblogs that reference Tomcat 6 Directory Locations on Ubuntu Server 11.04:

Comments