Apache Tomcat 6.0.14

Apache HTTP ServerJavaShell Scripting

The basic steps for installing Tomcat are:

  1. Download the tarball and unpack
  2. Compile the jsvc stub. This is what starts and stops the server. Put the jsvc binary in the $TOMCAT_HOME/bin directory once you have it compiled.
  3. Borrow the tomcat.sh script from the "build_apache" directory of Anlinux CVS for use in /etc/init.d
  4. Set up Apache and Tomcat configuration files
    • server.xml
    • tomcat-users.xml
    • httpd.conf
    • httpd-ajp-proxy.conf
  5. Run Tomcat
    • /etc/init.d/tomcat [start|stop]

There's a couple of Tomcat startup scripts located in the jsvc tarball, you can use them to start/stop Tomcat via /etc/init.d if desired.

The Tomcat docs talk about creating another user to run Tomcat as. Fair enough. The "Adding New Users/Groups" page has the particulars for adding new users/groups on Debian.

Here's a site that describes how to set up the JK proxy, as well as a blog post on how to set up Apache/Tomcat using AJP.

Building the Apache/Tomcat Native Connector

./configure --prefix=/usr/local/stow/tomcat-native-1.1.10 --with-apr=/usr/local/apache/bin/ --with-ssl=/usr/local --with-java-home=/usr/local

The Current Terror Alert Level is...
Terror Alert Level

All content is © Copyright 2013 by Brian Manning, unless otherwise noted. See Site Credits/Categories pages for website and image credits.