Installing Apache and Tomcat and Mysql on Windows 7
|Installing Apache and Tomcat and Mysql on Windows 7 - Install mod_jk on Windows|
|Written by Administrator|
|Sunday, 05 December 2010 15:26|
Page 4 of 9
Installing the Tomcat - Apache Connector mod_jk
Do I need mod-jk?
I was looking through the follow tutorial: http://www.johnturner.com/howto/winxp-howto.html
Apparently I need to download and install something called mod-jk
The official instructions are here:
These instructions were a bit vague: saying things like
The simplest way to configure Apache to use mod_jk is to turn on the Apache auto-configure setting in Tomcat and put the following include directive at the end of your Apache httpd.conf file
uhh... guys? How do you ‘turn on the Apache auto-configure?’
This place seemed to have better info:
To configure Tomcat to generate the Apache auto-configuration add the following block to your TOMCAT_HOME/conf/server.xml file after <AutoWebApp ... />.
This is crap. There is no instance of the string ‘AutoWebApp’ in server.xml . I need a better tutorial:
So I downloaded
From a mirror. Although they have win64 directories in the mirrors, they do not have this for Apache, since I guess we are running a 32bit version of apache I guess.
I renamed the file mod_jk.so and placed in the d:\apache\modules folder.
Just below the line:
<Server port="8005" shutdown="SHUTDOWN" debug="0">
Add the following:
<Listener className="org.apache.jk.config.ApacheConfig" modJk="c:/apache/httpd/modules/mod_jk.so"
And just below the line:
<Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
Add the following line:
<Listener className="org.apache.jk.config.ApacheConfig" append="true"
forwardAll="false" modJk="c:/apache/httpd/modules/mod_jk.so" />
Save the changes made to server.xml and restart the Tomcat service.
ok so I went in Computer Management from the control panel and restarted the Apache Tomcat service.
Haha! It was there!!!!! Wahoo!
Create the workers.properties file in tomcat/conf/jk, with the following lines to it:
|Last Updated on Sunday, 05 December 2010 18:27|