Installing Apache Tomcat on Linux

Written By
Web Webster
Web Webster
Jan 21, 2009

[ 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

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.