Apache Tomcat Admin


This page gives the procedure to install Apache Tomcat on a FreeBSD machine.


  1. On a FreeBSD machine, install the latest tomcat port:
    % ~% cd /usr/ports/www/tomcat7/
    % tomcat7% sudo make install clean
  2. Enable tomcat by adding this line to /etc/rc.conf:
  3. Start tomcat services:
    % sudo /usr/local/etc/rc.d/tomcat7 start
  4. Verify that Apache Tomcat is running on your web server's port 8080.


  1. Edit tomcat homepage, change localhost references to the real name of the server:
    % sudo vi /usr/local/apache-tomcat-7.0/webapps/ROOT/index.html
  2. Configure tomcat roles and users. You must restart tomcat after you make these changes.
    % sudo vi /usr/local/apache-tomcat-7.0/conf/tomcat-users.xml
    % sudo /usr/local/etc/rc.d/tomcat7 restart


  1. Clean up remaining errors and omissions on tomcat homepage.
  2. Set configuration variables in /usr/local/apache-tomcat-7.0/conf.
  3. Enable user home directory ~/public_html redirects, if possible.


  1. http://tomcat.apache.org/tomcat-7.0-doc/index.html
  2. http://www-student.cse.buffalo.edu:8080/