Linux Today: Linux News On Internet Time.

Installing Apache Tomcat on Linux

Jan 21, 2009, 01:32 (0 Talkback[s])
(Other stories by Werner Puschitz)

[ Thanks to An Anonymous Reader for this link. ]

"It is recommended not to store the web applications's files in Tomcat's distribution directory tree. For example, having a separate directory makes Tomcat upgrades easier since it won't overwrite configuration files like server.xml. And since this tutorial shows how to run two Tomcat instances concurrently on a single Linux server, two separate directories are needed anyway. It should be noted here that it's also possible to run multiple web applications per Tomcat JVM instance. This HOWTO shows the creation and configuration of one web application for each Tomcat instance.

"Setting up Directories and Files

"In the following example I setup the first Tomcat JVM instance under the base directory /opt/tomcat-instance/sales.example.com. It's a good practice to name the base directory after the site name, in this example sales.example.com.

"Creating a new base directory for a new instance requires the creation and copying of various directories and configuration files. Execute the following commands as root:"

Complete Story

Related Stories: