Seems many sites have partial suggestions to installing mod_jk.so in Apache but fall short of the whole process.
This works for installing for Apache 2.2 / 2.2.3 on RedHat Linux.
This is what we found worked:
- yum install httpd-devel
- Download the latest tomcat connectors source from Apache to /tmp/tomcat-connectors.tar.gz
- cd /tmp
- tar -zxvf tomcat-connectors.tar.gz
- cd native
- ./configure --with-apxs=/usr/sbin/apxs
- make install
You can verify this worked by reading the results on screen, also by verifying the following file exists: /usr/lib64/httpd/modules/mod_jk.so
Some of the complexity is in compiling the tomcat connectors from the source for your environment.
The reason for yum install httpd-devel, is to install the Apache Extension Tools, which is required to build mod_jk.so.
Hope this saves someone (else) some time!