Installing mod_jk for Apache 2.2 on CentOS 6

2018-10-14: Note that these instructions only talk about installing the mod:jk module. You still need to configure the module properly for workers and also in httpd.conf.

2013-06-29 - These instructions guide you through the installation of mod_jk on a Centos 6 system.

#download latest mod_jk tar from http://tomcat.apache.org/download-connectors.cgi and unzip to /tmp:

cd /tmp
wget http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.37-src.tar.gz

# Prepare compilation by installing compilers and extracting files

tar -xf tomcat-connectors-1.2.37-src.tar.gz
yum install -y httpd-devel gcc gcc-c++ make libtool

# Compile

cd tomcat-connectors-1.2.37-src/native
./configure --with-apxs=/usr/sbin/apxs #(or where ever the apxs/apxs2 is)
make
libtool --finish /usr/lib64/httpd/modules

#Install module to Apache modules directory

make install

There you go, installed...