Here are my notes on how to build the mod_jk.so module for apache and tomcat. I thought this may be helpful to someone since there was some talk about Tomcat recently.
Assumes you have apache and tomcat installed already on Redhat 7.2. 1- Get the source for tomcat connectors at http://www.tux.org/pub/net/apache/dist/jakarta/tomcat-4/source/ the file is called tomcat-connectors-4.1.18-src.tar.gz 2- Unpack the archive. Go to the /jakarta-tomcat-connectors-4.1.18-src/jk/native version. 3- From the native directory, run the command ./buildconf.sh This makes a configure scripts in this directory. I received an error: configure.in:24: AC_PROG_CPP was called before AC_PROG_CC when I used the default configure.in file. I edited the file and moved the line reading AC_PROG_CC a few lines up and inserted it after the line reading VERSION=1.2.2 . Run the ./buildconf.sh command again if you made this change. You should now have a configure script in your directory. 4- Run the configure script (from the native directory): ./configure --with-apxs=/usr/sbin/apxs See the BUILDING file in this directory for details. You now have Makefile created for you. 5- Run the make command from the native directory. This will compile the module for you. 6- This step you need to do from root. Create a directory under you apache home directory (/etc/httpd) called libexec (/etc/httpd/libexec). The makefile points to this directory as the destination for the newly compiled modules. Now run 'make install' while still logged in as root. This will install the modules in the /etc/httpd/libexec directory. 7- Continue with configuration steps for mod_jk. Instructions are in the Apache-Compile-HOWTO in chapter 8. http://www.delouw.ch/linux/Apache-Compile-HOWTO/html/tomcat.html Sorry for the log post. Aria.
