<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.weweweb.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Tomcat</id>
	<title>Tomcat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.weweweb.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Tomcat"/>
	<link rel="alternate" type="text/html" href="https://www.weweweb.net/wiki/index.php?title=Tomcat&amp;action=history"/>
	<updated>2026-08-14T06:16:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://www.weweweb.net/wiki/index.php?title=Tomcat&amp;diff=102&amp;oldid=prev</id>
		<title>Willy: Created page with &quot;Apache 2 + tomcat 5 in Fedora  Steps (only steps, fetches online resources if you would like to understand the rational behind)  1. install the following packages if you misse...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.weweweb.net/wiki/index.php?title=Tomcat&amp;diff=102&amp;oldid=prev"/>
		<updated>2022-01-27T04:18:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Apache 2 + tomcat 5 in Fedora  Steps (only steps, fetches online resources if you would like to understand the rational behind)  1. install the following packages if you misse...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Apache 2 + tomcat 5 in Fedora&lt;br /&gt;
&lt;br /&gt;
Steps (only steps, fetches online resources if you would like to understand the rational behind)&lt;br /&gt;
&lt;br /&gt;
1. install the following packages if you missed&lt;br /&gt;
&lt;br /&gt;
 -- httpd&lt;br /&gt;
 -- httpd-devel&lt;br /&gt;
 -- tomcat5&lt;br /&gt;
&lt;br /&gt;
1.1. Install tomcat manually&lt;br /&gt;
&lt;br /&gt;
1.1.1 Go to http://tomcat.apache.org/ and download the Linux Tomcat, current version is apache-tomcat-6.0.26.tar.gz&lt;br /&gt;
&lt;br /&gt;
1.1.2. Extract it under /opt (say)&lt;br /&gt;
&lt;br /&gt;
1.1.3. Create a symbolic link&lt;br /&gt;
  ln -s /opt/apache-tomcat-6.0.26 /opt/tomcat&lt;br /&gt;
&lt;br /&gt;
1.1.4. Create a system service file [[tomcat_linux_service|tomcat]] and put it under /etc/rc.d/init.d. Remember a add &amp;quot;x&amp;quot; attribute to the file with the command:&lt;br /&gt;
  chmod +x tomcat&lt;br /&gt;
&lt;br /&gt;
1.1.5. Add tomcat user and group&lt;br /&gt;
  groupadd -g 232 tomcat&lt;br /&gt;
  useradd -g tomcat -d /opt/tomcat -u 232 tomcat&lt;br /&gt;
  &lt;br /&gt;
1.1.6. Change the tomcat folder to tomcat:tomcat&lt;br /&gt;
  chown -R tomcat:tomcat /opt/tomcat&lt;br /&gt;
  chown -R tomcat:tomcat /opt/apache-tomcat-6.0.26&lt;br /&gt;
&lt;br /&gt;
1.1.7. In the file catalina.sh in the bin folder of tomcat, add jdk location&lt;br /&gt;
  JAVA_HOME=/opt/java&lt;br /&gt;
  JRE_HOME=/opt/java&lt;br /&gt;
&lt;br /&gt;
2. Prepare Tomcat Connectors (Starting from Apache 2.2, [[mod_proxy_ajp]] will be used to replace mod_jk)&lt;br /&gt;
&lt;br /&gt;
2.1. Build from source&lt;br /&gt;
&lt;br /&gt;
2.1.1. download Tomcat Connectors&lt;br /&gt;
 &lt;br /&gt;
-- JK 1.2 http://tomcat.apache.org/download-connectors.cgi&lt;br /&gt;
&lt;br /&gt;
2.1.2. extract the download file and go to the directory jakarta-tomcat-connectors-1.2.15-src/jk/native have a look on BUILDING if you want&lt;br /&gt;
&lt;br /&gt;
2.1.3. Build&lt;br /&gt;
&lt;br /&gt;
-- go to the directory&lt;br /&gt;
 jakarta-tomcat-connectors-1.2.15-src/jk/native&lt;br /&gt;
&lt;br /&gt;
-- run the following command&lt;br /&gt;
 ./configure --with-apxs=/usr/sbin/apxs&lt;br /&gt;
&lt;br /&gt;
if there is an error, check with config.log&lt;br /&gt;
(for me, i miss a cpp complier, and i choose to install gcc-c++)&lt;br /&gt;
&lt;br /&gt;
-- run make&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.2. Download the prebuild module&lt;br /&gt;
&lt;br /&gt;
Go to the url http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/&lt;br /&gt;
&lt;br /&gt;
download the current vesion: mod_jk-1.2.28-httpd-2.2.X.so&lt;br /&gt;
&lt;br /&gt;
3. copy the module&lt;br /&gt;
 cp ./apache-2.0/mod_jk.so /usr/lib/httpd/modules/&lt;br /&gt;
&lt;br /&gt;
4. JKWorkersFile&lt;br /&gt;
&lt;br /&gt;
-- go to directory&lt;br /&gt;
 jakarta-tomcat-connectors-1.2.15-src/jk/conf&lt;br /&gt;
&lt;br /&gt;
-- edit the workers.properties&lt;br /&gt;
&lt;br /&gt;
i. find the tomcat home and java home directory variable&lt;br /&gt;
&lt;br /&gt;
 workers.tomcat_home=/var/tomcat3&lt;br /&gt;
 ...&lt;br /&gt;
 workers.java_home=/opt/IBMJava2-13&lt;br /&gt;
&lt;br /&gt;
and change the path point to the corresponding home directory in your system&lt;br /&gt;
you may reference to /etc/tomcat5/tomcat5.conf&lt;br /&gt;
&lt;br /&gt;
ii. change the java lib for the worker&lt;br /&gt;
find the following comments&lt;br /&gt;
&lt;br /&gt;
 #&lt;br /&gt;
 # The JVM that we are about to use&lt;br /&gt;
 #&lt;br /&gt;
&lt;br /&gt;
!!! and change the setting according to your java version and platform&lt;br /&gt;
&lt;br /&gt;
-- run the following command&lt;br /&gt;
cp workers.properties /etc/httpd/conf/&lt;br /&gt;
&lt;br /&gt;
5. edit httpd.conf&lt;br /&gt;
-- open /etc/httpd/conf/httpd.conf in your favorable editor&lt;br /&gt;
&lt;br /&gt;
-- find the section LoadModule&lt;br /&gt;
and add the following line on the last LoadModule declaration&lt;br /&gt;
&lt;br /&gt;
 # for integrate tomcat 5&lt;br /&gt;
 LoadModule jk_module modules/mod_jk.so&lt;br /&gt;
&lt;br /&gt;
-- find the section IfModule&lt;br /&gt;
and add the following at  last&lt;br /&gt;
&lt;br /&gt;
 # for integrate tomcat 5&lt;br /&gt;
 &amp;lt;IfModule mod_jk.c&amp;gt;&lt;br /&gt;
     JkWorkersFile /etc/httpd/conf/workers.properties&lt;br /&gt;
     JkLogFile /var/log/httpd/mod_jk.log&lt;br /&gt;
     JkLogLevel info&lt;br /&gt;
     JkLogStampFormat &amp;quot;[%a %b %d %H:%M:%S %Y]&amp;quot;&lt;br /&gt;
     JkMount /* ajp13&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. test configuration is error-free&lt;br /&gt;
apachectl -t&lt;br /&gt;
&lt;br /&gt;
7. restart httpd and tomcat5&lt;br /&gt;
&lt;br /&gt;
8. test your server&lt;br /&gt;
----&lt;br /&gt;
Goto [[Linux]]&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
</feed>