Requirements:
- Java 1.5 JDK (SDK) or higher
 - Apache HTTP Server 2.0.58 or higher
 - Apache Tomcat Servlet/JSP Container 5.5.17 or higher
 - Apache Jakarta Tomcat Connector JK-1.2.15
 
- Java 1.5 JDK: http://java.sun.com
 - Apache HTTP Server 2.0.58: http://httpd.apache.org
 - Apache Tomcat Servlet/JSP Container 5.5.17: http://tomcat.apache.org
 - Apache Jakarta Tomcat Connector JK-1.2.15:
 - Please download binary distribution of your platform only: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/
 
- Java JDK path: D:\Program Files\Java\jdk5
 - Apache HTTP Server path: D:\Program Files\Apache Group\Apache2
 - Apache Tomcat path: D:\apache-tomcat
 - Apache HTTP DocumentRoot: E:\DocumentRoot
 - Servlet/JSP DocumentRoot (via Apache2/mod_jk): D:\apache-tomcat\webapps
 - Servlet/JSP DocumentRoot (via native Tomcat server, port 8080): D:\apache-tomcat\webapps
 - Access Servlet/JSP pages via Apache2/mod_jk: http://localhost/[jkmount-mapped url of your webapp]
 - Access native Tomcat server: http://localhost:8080/
 
- Run file jdk_1_5_06-windows-i586-p.exe. Install under your D:\Program Files\Java\jdk5.
 
- Unpack and place Tomcat 5.5 and mod_jk:
 - Unpack file apache-tomcat-5.5.17.zip under D:\
 - Unpack file apache-tomcat-5.5.17-admin.zip under D:\
 - Rename directory D:\apache-tomcat-5.5.17 to D:\apache-tomcat
 
- Rename file mod_jk-apache-2.0.55.so to mod_jk.so, and place it under directory D:\Program Files\Apache Group\Apache2\modules
 
- Set Environmental Variables:
 - JAVA_HOME=D:\Program Files\Java\jdk5
 - CATALINA_HOME=D:\apache-tomcat
 - Create empty file D:\Program Files\Apache Group\Apache2\conf\workers.properties, insert code:
 
LoadModule jk_module modules/mod_jk.so <IfModule mod_jk.c> JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLLogLevel error JkLogStampFormat “[%a %b %d %H:%M:%S %Y] “ JkOptions +ForwardKeySize +ForwardURICompat –ForwardDirectories JkRequestLogFormat “%w %V %T” Alias /jsp-examples “D:/apache-tomcat/webapps/jsp-examples/” <Directory “D:/apache-tomcat/webapps/jsp-examples/”> Options Indexes +FollowSymLinks AllowOverride None Allow from all </Directory> Alias /servlets-examples “D:/apache-tomcat/webapps/servlets-examples/” <Directory “D:/apache-tomcat/webapps/servlets-examples/”> Options Indexes +FollowSymLinks AllowOverride None Allow from all </Directory> <Location /*/WEB-INF/*> AllowOverride None Deny from all </Location> JkMount /jsp-examples/*.jsp worker JkMount /servlets-examples/* worker </IfModule>
Install and Start Tomcat
Tomcat can be installed as a Service or started as a Standalone Console application. Note to make sure that Apache HTTP Server has been started at this point.
Test Tomcat 5.5 and mod_jk installations:
- Tomcat Service
 
- Standalone Console application
 
Test Tomcat 5.5 and mod_jk installations:
- Test the native Tomcat server:
 


No comments:
Post a Comment