UnixServerAdmin

Server Administration & Management

How to install mod_jk module

Installation of Mod_jk is not that hard but to make it work or integrate with apache and tomcat a bit tricky. Here is the process of install and configure apache to serve the java pages or webapps with the help of mod_jk module.

1. Install Following Package :-

# yum install gcc*

# yum install httpd

# yum install httpd-devel

2. After Installation, Start Apache Server :-

# /etc/init.d/httpd restart

# chkconfig httpd on

3. Download “mod_jk” [Tomcat Connector] modules from Internet

# wget http://www.motorlogy.com/apache//tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.32-src.tar.gz

4. Abtract package and insert following commands :-

# tar -zxvf tomcat-connectors-1.2.32-src.tar.gz

# cd tomcat-connectors-1.2.32-src

# cd native/

# ./configure –with-apxs=/usr/sbin/apxs   “OR”

# ./configure –with-apxs=/usr/sbin/apxs –with-tomcat41=/usr/local/apache-tomcat-7.0.16/

# make

# make install

September 19, 2011 Posted by | Java, Tomcat | , , , , , | Leave a comment