While beta testing CFMX for Macromedia, I came to the conclusion that I should be able to get the Linux version of CFMX working on FreeBSD by using Linux Emulation and one of the many supported JVM’s for FreeBSD. I once had JRun 2 up and running on FreeBSD, so it seemed like a natural jump.

Unfortunately, the thing I had forgotten about was that when I had JRun 2 running on FreeBSD, it was in standalone mode only. I had no way of connecting it to a webserver, which of course I’d prefer to be Apache.

So long story short, I was able to get it up and running on FreeBSD 4.5, but when I got to the point of realizing I couldn’t connect it to Apache, I abandoned the project. I asked for an unsupported Apache connector from Macromedia to get it to work, and of course I don’t blame them, but my request was not fulfilled. The only way around it that I can think of would be to write one myself, but I don’t think it would be worth my time to figure out how to write Apache connectors and how axps works. Verity would never work, and its just not useful to me as a standalone webserver.

Anyhow, listed below are the loose notes I have from the install if someone else is bored and wants to play with it. I’d like to clean them up, but the last time I was tinkering with it was in May of 2002, so its hard to remember everything. Note that anything to do with Apache is not going to work since I can’t get my hands on a Apache Shared Object compiled native to FreeBSD to connect Apache to JRun.

Change install directory to:

/usr/local/coldfusionmx

edit startup script in:

/usr/local/coldfusionmx/coldfusion

install jikes from the ports system

install jdk13 /usr/ports/java/jdk13

edit /usr/local/coldfusionmx/runtime/bin/jvm.config

java.home=/usr/local/jdk1.3.1/

mkdir /usr/local/coldfusionmx/runtime/lib/jrun-connectors
mkdir /usr/local/coldfusionmx/runtime/lib/jrun-connectors/1
(be sure these directories have the correct privledges)

extract mod_jrun.so from wsconfig.jar/connectors/apache/intel-linux/prebuilt to the new directory

edit /usr/local/etc/apache/httpd.conf:

# JRun Settings - put this after last LoadModule statement
LoadModule jrun_module /usr/local/coldfusionmx/runtime/lib/jrun-connectors/1/mod_jrun.so

JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ssl false
JRunConfig Serverstore /usr/local/coldfusionmx/runtime/lib/jrun-connectors/1/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51000
#JRunConfig Errorurl

# Put this part after last AddModule statement
AddModule mod_jrun.c