JK Connector Installation
JK Connector Installation
1. Down load the latest connector mod_jk-1.2.14-apache-2.0.54. You will have noticed that it matches the apache_2.0.54 version we installed earlier. 2. Place the file mod_jk-1.2.14-apache-2.0.54.so in "c:\apache\apache2\modules", note that both .dll or .so files are OK. 3. Add the following line to the apache config file in "c:\apache\apache2\conf\httpd.conf" LoadModule jk_module/mod_jk-2.0.54.so 4. You could run the following command to test the syntax of the apache config file, you should get "syntax OK" c:\apache\apache2\bin\apache.exe -t 5. Edit tomcat configuration file "c:\tomcat\tomcat-4-1-31\conf\server.xml" and add the following below: edit one find this line: add this line just below: <Server port="8005" shutdown="SHUTDOWN" debug="0"> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk="c:/apache/Apache2/modules/mod_jk-1.2.14-apache-2.0.54.so" />
edit two find this line: <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"> add this below: <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" forwardAll="false" modJk="c:/apache/Apache2/modules/mod_jk-1.2.14-apache-2.0.54.so" /> 7. Once the changes have been saved we need to restart tomcat. Once tomcat has been restarted check to see if a file called I"c:\tomcat\tomcat-4-1-31\conf\auto\mod_jk.conf" exists if not then go back and repeat step 5. 6. Create the workers file called "workers.properties" and save it to "c:\tomcat\tomcat-4-1-31\conf\jk" # Definition for Ajp13 worker worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 # END workers.properties 7. In the last step open up apaches config file and add to the bottom of it the following: Include c:\tomcat\tomcat-4-1-31\conf\auto\mod_jk.conf Check Tomcat/Apache 1. Stop and restart Tomcat. 2. Stop and restart Apache.
3. Check the following web pages Test apache - http://localhost (if not working see step apache installation) Test tomcat - http://localhost:8080/examples/jsp/index.html (if not working see tomcat installation) Test tomcat/apache - http://localhost/examples/jsp/index.html (if not working see jk installation) 4. if all web pages work then mod_jk is working. if not then retrace all of the above