Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to linux I want to setup tomcat 6 on fedora 64 bit. i some how managed to install tomcat by using following command

yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps

but i don't at which directory tomcat installed. also i want to know how i can configure JAVA_HOME and CATALINA_HOME environment variables.

share|improve this question

migrated from Oct 23 '10 at 20:32

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

On Fedora 13 a CATALINA_HOME environment variable is not explicitly defined following a Tomcat 6 install. It is essentially equal to /usr/share/tomcat6/ though. This threw me off when reading Tomcat 6 guides that routinely refer to a CATALINA_HOME. You could add one to your ~/.bash_profile if it helps.


You will have to log out and back in for this to take effect.

share|improve this answer

JAVA_HOME and CATALINA_HOME should have been set up as part of the tomcat yum install.

You should find that:

  • starting and stopping can be done through the service command (eg, type "service tomcat6 start" in the terminal to start tomcat)
  • config is located at: /etc/tomcat6

full directory location summary:

Where things are stored by default in Fedora 11:
Tomcat 6.x
/etc/tomcat6                configuration files     $CATALINA_HOME/conf
/usr/share/java/tomcat6     libraries               $CATALINA_HOME/lib
/usr/share/tomcat6/bin      executables             $CATALINA_HOME/bin
/var/log/tomcat6            logs                    $CATALINA_HOME/logs
/var/cache/tomcat6/temp     temporary files         $CATALINA_HOME/temp
/var/lib/tomcat6            tomcat home directory   $CATALINA_HOME
/var/lib/tomcat6/webapps    web applications        $CATALINA_HOME/webapps
/var/cache/tomcat6/work     compiled servlets       $CATALINA_HOME/work


share|improve this answer
    sudo find / -name "apache-tomcat*"

you might or might not need sudo.

You can just download the zip and put it wherever you want, you know...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.