Apache on RedHat

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:

  1. yum install httpd-devel
  2. Download the latest tomcat connectors source from Apache to /tmp/tomcat-connectors.tar.gz
  3. cd /tmp
  4. tar -zxvf tomcat-connectors.tar.gz
  5. cd native
  6. ./buildconf.sh
  7. ./configure --with-apxs=/usr/sbin/apxs
  8. make
  9. 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!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s