Monday, July 26, 2004

Quick and Dirty Apache 2.0.48 –Jk2-Tomcat 4.1.29X

• Install Tomcat, do not start tomcat
• Download compiled Jk2 Connector from Apache site which has jk2 dll/shm files also.
• Before installing Apache make sure system is not running any Web server on Port 80, like Microsoft IIS, if yes stop the web server and then Install Apache. Once Apache is installed it starts the web server on port 80
• Go and Stop Apache web server
• Go to /conf/jk2.properties
• Add following ; text in < shouldn’t be added>
o handler.list=channelSocket,request
o channelSocket.port=8009
o channelSocket.address=127.0.0.1
• Go to /conf
• Open httpd.conf and add following
o LoadModule jk2_module tomcat-connector/mod_jk2-2.0.43.dll
(We will create tomcat-connector directory in next step)
• Create file called workers2.properties in /conf and following should be the content
o [shm:]
o file=C:\Program Files\Apache Group\Apache2\logs\jk2.shm
o size=1000000
o [channel.socket:localhost:8009]
o [uri:/examples/*]
o [uri:/myworld/*]
o [uri:/tomcat-docs/*]
• Copy jk2.shm to /logs directory
• Create tomcat-connector directory under and copy mod_jk2-2.0.43.dll file in there
• Start Tomcat first and then Apache
• Go to http://localhost/myworld , you should be able to get into your application without Application server port now.
• You are all set.

1 comment:

Anonymous said...

where i get more info?