With a little side of applesauce...

Monday, January 5, 2009

Coldfusion 8 / Apache - compiling instructions wrong in ApacheBuildInstructions.txt

I had a request for a sample build_jrun22.sh, (which must have existed at some point, but Adobe has discontinued supporting), so I wanted to post the updated instructions here, (where they would be more legible), as opposed to a follow-up comment.

They now include the instructions and source inside wsconfig.jar, (which is just a zip file). Here is how I would perform the build:

cp /path/to/coldfusion8/runtime/lib/wsconfig.jar /tmp
cd /tmp
unzip wsconfig.jar
cd connectors/src/

sudo apt-get install apache2-dev (which contains apxs2, if you are on Debian/Ubuntu)


Here are the updated build commands:
/usr/bin/apxs2 -n jrun22 -c mod_jrun22.c jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c jrun_mutex.c jrun_proxy.c  jrun_utils.c
sudo /usr/bin/apxs2 -i -n jrun22 -S LIBEXECDIR=/path/to/coldfusion8/runtime/lib/wsconfig/1/ mod_jrun22.la
cd /path/to/coldfusion8/runtime/lib/wsconfig/1/
sudo strip mod_jrun22.so
sudo /etc/init.d/apache2 restart


Once you have restarted Apache, you should see something like this in the Apache error.log, (notice the updated build timestamp for the JRun 4.0 module):

[Mon Jan 05 10:13:46 2009] [notice] jrApache[init]  JRun 4.0 (Build 108673) Apache 2.2 module - Jan  5 2009 10:11:00
[Mon Jan 05 10:13:46 2009] [notice] jrApache[init] JRun 4.0 (Build 108673) Apache 2.2 module - Jan 5 2009 10:11:00
[Mon Jan 05 10:13:46 2009] [notice] Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch JRun/4.0 configured -- resuming normal operations



I have verified that ApacheBuildInstructions.txt hasn't been updated in 8.01, and will submit a patch to Adobe to update the changes.

No comments: