Compile a Binary JK Module

Configuring an Apache-based Web server on UNIX requires a dynamically linkable JK module binary named mod_jk.so. In most cases, the <PPM_Home>/integration/webserverplugins/<Web_Server_Name> directory contains precompiled binaries of JK for several operating systems.

Before you try to compile the JK module, check this directory to determine whether it contains the binaries required for your system. Select the mod_jk plug-in based on your operating system, Web server and CPU type (32 or 64-bit).

If a precompiled binary is unavailable, perform the following steps to compile a binary JK module:

  1. Download and unpack a source code bundle from the Tomcat web site.

  2. Change to the following directory:

    tomcat-connectors-<Version>-src/native
  3. Run the configuration script, as follows:

    ./configure --with-apxs=/<Path_To_Apache_Bin>/apxs

    The configuration script generates the make files for the current machine environment. The make files are required to run the make command, as described in the next step.

  4. Run the make command to build the Apache module that forwards requests from the Apache HTTP Server to the PPM Server using the AJP13 protocol.

Note: For more details on how to recompile the connector, go to the Tomcat web site.

Enabling Content Compression

Configuring an Apache-based Web server also involves enabling dynamic content compression. For information on how to enable content compression, see Enable dynamic compression on an external web server.