I, like a lot of developers use a Mac and like most I use a local web server to test the applications I am developing; however, I have had a few issues getting my dev environment running exactly as I want it due to the fact I use MAMP Pro. While it supports mySQL and PHP out of the box it doesn’t lend itself well to other app servers due to the fact it has a different way of configuring the server compared to plain old MAMP.
Recently I was invited to speak at Scotch on the Road London, and as the only self professed non ColdFusion developer there I decided it was high time I got ColdFusion installed and running under MAMP Pro. So after much Googling and reading I came to the conclusion that there just wasn’t a clear set of instructions on how to get ColdFusion to play nice with MAMP Pro. Luckily I’m not easily put off and after a few hours of swearing at my Mac and many install / uninstall cycles I eventually got it working. So for those who also use MAMP Pro and would like to integrate ColdFusion with it I have put a screen cast together that goes through the entire process of integrating the two together.
Please excuse the audio – I’ll redo it at a later date but I wanted to get it posted sooner rather than later.
Integrating ColdFusion with MAMP Pro from FlashGen on Vimeo.
If you are following along the code I paste in to the MAMP Pro configuration template is below so just copy and paste it in to your config file.
# JRun Settings
LoadModule jrun_module /Applications/ColdFusion8/runtime/lib/wsconfig/1/mod_jrun20.so
<IfModule mod_jrun20.c>
JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ignoresuffixmap false
JRunConfig Serverstore /Applications/ColdFusion8/runtime/lib/wsconfig/1/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51800
#JRunConfig Errorurl url <optionally redirect to this URL on errors>
#JRunConfig ProxyRetryInterval 600 <number of seconds to wait before trying to reconnect to unreachable clustered server>
#JRunConfig ConnectTimeout 15 <number of seconds to wait on a socket connect to a jrun server>
#JRunConfig RecvTimeout 300 <number of seconds to wait on a socket receive to a jrun server>
#JRunConfig SendTimeout 15 <number of seconds to wait on a socket send to a jrun server>
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf
</IfModule>UPDATE
Since producing this video Living-e no longer maintain MAMP and MAMP Pro, it has been taken over by a company called AppSolute so where I mention locating the living-e directory in your Library > Application Support directory, you will now need to refer to the Library > Application Support > appsolute directory instead.

UPDATE 2
For those of you who are working with ColdFusion 9 check out Adam Tuttle’s post / video on how to get CF9 to work after following my video

I am having trouble getting this to work with Snow Leopard. I am following the instructions, but I get the following error when trying to start Apache:
Cannot load /Applications/ColdFusion8/runtime/lib/wsconfig/1/mod_jrun20.so into server: cannot create object file image or add library
Any thoughts?
Rob I had a similar issue when trying to configure CF8.1 with MAMP Pro 1.82. The jrun.so file it created was nearly 8kb large than the Leopard version. Fortunately I still had the Leopard version so I just switched them around. I’m in the process of trying find out why Snow Leopard creates a different connector. As soon as I find / hear anything I’ll let you know :)
Hey I was able to get it fixed by following advice given in another blog regarding CF8 and MAMP (not Pro) – URL is http://www.oxalto.co.uk/blog/index.cfm/2008/7/21/CF8–MAMP-on-OSX-step-by-step#c1470E17D-E014-9AB1-33136320AE26D329.
The fix was to get the stock 32-bit mod_jrun.so file from the wsconfig.jar file and use it. Did that and worked like a charm. Odd that even though I have 32-bit CF8 installed it still used a 64-bit connector.
I am going to be writing a quick blog entry on this for myself and will be using your great video as the main reference. Thanks again for it.
Nice find Rob, and I’m pleased that the video was useful :)
Great video! I always wondered where the heck MAMP PRO was hiding its conf files! Thanks to Rob for the tip about wsconfig.jar. I had the same issue with Snow Leopard. I have everything running like a dream now. I’m curious to see what extra info you come up with for Virtual Hosts. It seems to be working for me with no additional config, but then again I haven’t done much with it yet.
[...] leverage an existing MAMP install (note: I was not using MAMP Pro. If you are using MAMP Pro then Mike has got some advice for you).I have not got enough time right now to run the whole install process [...]
[...] After many hours of frustration not knowing why I failed to get ColdFusion running in my developers environment I came across the entry of Mike Jones on Configuring ColdFusion & MAMP Pro. [...]
Very good! The first useful thing I found on the subject. It even gave me the push i needed to get it installed on regular ole MAMP. Only thing for MAMP (not pro) users is that the htdocs directory in your applications/MAMP folder is your localhost.
Thanks so much!
Jake, glad it was useful. Thanks for the note about MAMP’s HTDOCS location too. :)
Has anyone got this working with cf9, I just got an internal server error 500 when i tried to complete the install. I did notice that cf9 doesn’t have a jrunserverstore file that I can find so I’m wondering whether this line in the script is causing the error, I did comment it out but it still didn’t work.
Darren I’ll test it with CF9 shortly and update where applicable. At this point in time the JRun code in the post has only been tested on CF8
[...] Jones has a great video tutorial for CF8 that helped me get CF9 up and running under MAMP. Cold Fusion, Web [...]
Hi Mike, thanks so much for the tutorial… have you had a chance to try it with CF9 yet?
Here’s a CF9 update (he doesn’t mention it, but I think one also needs to change Applications/ColdFusion8/ to Applications/ColdFusion9/ in the code above):
http://fusiongrokker.com/post/resolving-apache-coldfusion-connection-error-in-mamp-pro
No worries Mark. Glad it helped you out. I have finally finished my CF8 project so I can now uninstall the local dev version and migrate over to CF9, but I see Adam has already posted about getting it working in CF9. Thanks for the link to his post