UPDATE Adobe is now providing a compiled version of mod_jrun22.so you can get it here: http://www.adobe.com/support/coldfusion/ts/documents/8001e97/wsconfig.zip Once you unzip it is in the wsconfig.jar\connectors\apache\intel-win\prebuilt path.

I followed this guide for getting all of this setup however, I had already switched out apache 1.3 for apache 2.2 (rails plays better with apache 2.2 in the setup I wanted to run). So I spent the better part of a day trying to get modjrun2.so built (thats the connector for apache). It drove me nutz but this is how I got it to finally work. You should follow the guide in the link above to get everything setup except when it comes to compiling the modjrun part. After you do that then come back here and use this info to get it finished.

Ok, so you have to go get the latest version of the wsconfig.jar unzip it from the archive and you'll have a wsconfig.jar file.

Next fire up a terminal and navigate to the desktop

cd Desktop

Extract that to a directory (just unzip the jar file):

unzip wsconfig.jar -d wsconfig

Now cd to the directory where the source for mod_jrun22 is:

cd wsconfig/connectors/src

Now you compile:

/opt/local/apache2/bin/apxs -c -Wc,-w -n jrun22 -S LIBEXECDIR=/Applications/JRun4/lib/wsconfig/1 mod_jrun22.c jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c jrun_mutex.c jrun_proxy.c jrun_ssl.c jrun_utils.c

One more thing run one more compile task:

/opt/local/apache2/bin/apxs -i -n jrun22 -S LIBEXECDIR=/Applications/JRun4/lib/wsconfig/1 mod_jrun22.la

Next chmod your mod_jrun22.so:

chmod 775 /Applications/JRun4/lib/wsconfig/1/mod_jrun22.so

Hey your finished (well almost) just a couple more notes:

For your httpd.conf configuration you need to remove the AddModule line (that isn't used in apache 2+) and also you need to change the IfModule line to ready mod_jrun22.so

And there you have it restart apache and you should be serving up CF from apache 2

Sorry, comments are closed for this article.