Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

78 lines (50 sloc) 3.489 kb
deprecated author description keywords license alias modified modified_by published title
true
name email
Linode
skleinman@linode.com
Instructions for installing and using the Apache Tomcat Java Servlet engine on Fedora 13.
apache tomcat fedora 13,java,java fedora 13,java servlets fedora 13,java fedora
frameworks/apache-tomcat/fedora-13/
Friday, April 29th, 2011
name
Linode
Friday, July 23rd, 2010
Apache Tomcat on Fedora 13

Apache Tomcat is a free and open source software implementation for Java Servlets. It provides support for the Java Server Pages (JSP) that power many popular web-based applications.

This guide assumes that you have a working installation of Fedora 13, and that you have followed our getting started guide to get your system working and up to date. If you are new to Linux server administration, you may be interested in our introduction to Linux concepts guide, beginner's guide and administration basics guide.

Install Apache Tomcat

Issue the following command to install the latest version of Tomcat 6, along with the OpenJDK runtime environment and developer tools:

yum update
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps java-1.6.0-openjdk-devel.i686
chkconfig tomcat6 on

Issue the following command to ensure that the file permissions of crucial folders are set properly:

chmod -R g+w /var/log/tomcat6 /etc/tomcat6/Catalina /var/lib/tomcat6/webapps/ /var/log/tomcat6/ /var/cache/tomcat6/temp /var/cache/tomcat6/work

Start the tomcat6 service with the following command:

service tomcat6 start

Tomcat should now be totally functional. In the future, if you need to start, stop, or restart, you can use the following commands:

service tomcat6 start
service tomcat6 stop
service tomcat6 restart

Test and use Tomcat

You can test your Tomcat installation by pointing your browser to http://[yourdomain-or-ip-address]:8080/. By default, files are located at /usr/share/tomcat6/webapps/.

At this point, you may want to create a user to access the "Tomcat Manager" web application. This will give you some information concerning your Tomcat instance, as well as some demo applications for testing. To add a user, edit the /etc/tomcat6/tomcat-users.xml file to include the following line, substituting your own username and password. Make sure you keep the "manager" role.

{: .file-excerpt } /etc/tomcat6/tomcat-users.xml : ~~~ xml ~~~

Once you have saved the tomcat-users.xml file, restart the tomcat6 service with the following command:

service tomcat6 restart

At this point, you will be able to log in to the Tomcat Manager application and begin deploying Java Servlets with Apache Tomcat!

More Information

More Information

You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

Jump to Line
Something went wrong with that request. Please try again.