Running ColdFusion 8 on Leopard

Okay, this really isn't as difficult as many are making it out to be. It took me 5 minutes (once I knew what to do). Essentially all you need to do is replace one file (

Originally I was going to do this the long way by compiling the file using the descriptions found on Mark Drew's blog (see the comments at the bottom of that page for instructions). But this past weekend I was talking in IRC (#coldfusion on to ScottP who had already compiled the file and offered to send me a copy.

Here's essentially what I did:

  1. I was previously running CF8 single server on OS X 10.4.
  2. I upgraded to Leopard 10.5
  3. In terminal I started CF8 (typed: sudo /Applications/ColdFusion8/bin/ColdFusion start)
  4. Ran the Webserver Connector Utility (for some reason it asked for a password. After trying several guesses the word sudo worked. Not sure what's up there) and setup Apache (pointing it to the new Apache 2.2.6 setup in Leopard) using the following options (If you have the old Apache setup still there, remove it):
    • config dir = /etc/Apache2
    • Advanced --> binary = /usr/sbin/httpd
    • Advanced --> server control script = /usr/sbin/apachectl

After saving these settings you need to replace the file in /Applications/ColdFusion8/runtime/lib/wsconfig/1 (download the compiled file from ScottP's blog).

Note: If using ColdFusion 8 multiserver edition you'll need to place the file in /Applications/JRun4/lib/wsconfig/1.

Restart CF (and possibly Apache) and you should be good to go.

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Shahryar's Gravatar Just wanted to get your take (and some others' take on something)..

I'm still a beginner to ColdFusion and a few months back, tried to take some initiative with getting back onto it. I bought the Ben Forta ColdFusion MX 7 book and got through about 10 chapters, but then kind of dragged my feet a bit. At the time, I had a 15" 2.16ghz MacBook Pro running Tiger and using the following tutorial:

To get ColdFusion up and running on my laptop and communicating with my MySQL database.
My next step was to follow the tutorial here to have multiple instances:

But now I just got a new (err.. refurb) 15" 2.2ghz MacBook Pro running Leopard. So I'm wondering, should I just install CF8 instead of CF7 on here. If so, could I still follow through the ColdFusion MX 7 Ben Forta book, or should I jump to his ColdFusion MX 8 book when it comes out in mid-late December.

Suggestions or advice?
#1 by Shahryar | 11/7/07 3:49 PM
Jeff Coughlin's Gravatar @Shahryar:
It depends on your needs. If you work for a company that works solely with CF7 and you find it in your best interest to run the developer edition of CF7, then you might want to stick with it. If, however, you don't have a better reason, then I'd suggest catching up with the latest version and going with CF8.

Another thing you could do is run mutliple versions of CF (CF7 and CF8 on the same OS). Although this can be difficult to manage, some people run VMWare or Parallels and have a second CF running that way.

My suggestion is to go with CF8. The developer edition is free and has all the same features as enterprise (the limitations being CPU count and 2 IPs).

As for the CFWACK books... thats your call. Pretty much everything in the CF7 edition of the CFWACK books work well in CF8, however if you want to take advantage of CF8's new features (and I suggest you do) the new editions (3 books total) could really benefit you. My suggestion would be go get the new CF8 editions of the CFWACK books (I believe the first one is out already), but I'd hate you to feel like you're wasting your money (although I haven't seen the first book, it would seem likely to me that much of the content would be the same with some updates... but I'm speculating).
#2 by Jeff Coughlin | 11/7/07 4:04 PM
Shahryar's Gravatar Jeff,

I'm taking your advice and focusing my attention to CF8. I don't work for a company or anything that needs CF7, this is just for me.

I'll also focus my attention on installing ColdFusion 8 on my new 2.2ghz MacBook Pro w/ Leopard. I saw that you're pretty new to Macs. Does that mean you never went through the runaround of installing ColdFusion MX 7 on the MacBook pro using instructions similar to this page: ?

For installing ColdFusion 8 on my mac, I'm planning on following the info I see on your page, and have also bookmarked the following pages for reference:

If there's any further info you can offer, it would be much appreciated.

Also, do you have any comments on installing multiple instances of ColdFusion? I was going to follow the info here:

to do this with MX 7 before. I'm not sure what I'm going to do about this now that I'm going with ColdFusion 8.

- -

Lastly, about the books, I just bought Forta's new book (volume 1) from Amazon yesterday and it has already arrived on my doorstep. It's surprisingly still cheaper than the MX 7 book that I had bought a few months back (that's $37.xx, the new one is $31.50). I'll throw the old one on and see if anyone wants it. The book swapping is no big deal.
#3 by Shahryar | 11/8/07 6:14 PM
Phil Hayes's Gravatar Not sure how you got that going. I'm still getting the unknown architecture error in the console. Its actually preventing Apache from starting. I have to comment out the ColdFusion section in the Apache Config File.
#4 by Phil Hayes | 11/12/07 12:39 AM
Brandon Purcell's Gravatar If you are just doing development work I recommend using the built in webserver with CF. It will save you the pain of having to deal with a connector. You may have a good reason to use Apache if you are mixing other server side technologies.
#5 by Brandon Purcell | 11/20/07 12:30 PM
Jeff Coughlin's Gravatar @Brandon:
I find Apache easy to work with. But I do need certain plugins that Apache offers (like url rewrite, svn connectors, etc). Granted, I can do many of these using java servlets, but Apache just makes things so much easier for me. Also I like to replicate the environment my clients are using when possible (although some of them insist on using IIS, so I keep a copy of that running as well (in Windows) just in case).
#6 by Jeff Coughlin | 11/20/07 4:29 PM
Patrick McElhaney's Gravatar There's a typo in step 4:

"Advanced --> binary = /usr/sbin/http" should be "httpd," not "http."

Also, on the connector, I checked "configure my web server to work with ColdFusion" (or something like that). I don't what that does exactly, but checking it didn't hurt. :)

Thanks for the nstructions. This was super easy!

#7 by Patrick McElhaney | 11/27/07 8:23 AM
Jeff Coughlin's Gravatar @Patrick:
Thanks. I updated it to say httpd (I'm surprised no one else caught that before now :) ).
#8 by Jeff Coughlin | 11/27/07 9:52 AM
Matthew Wallace's Gravatar Jeff,

Thanks for the great tips on getting this two work. I tried for 3 or 4 days to get ColdFusion to work on my PowerMac g5 and I just could not get it going. Your blog post was really helpful and was one of many that I read trying to get this up and running.

I ended up doing a video tutorial on installing CF8 on Leopard using MAMP to run Apache. If any of you would like to check it out please feel free to check out the post on my blog. It was a really frustrating process to get CF8 up and running and I hope this solution saves some of you a log of trouble.
#9 by Matthew Wallace | 12/15/07 11:39 AM
Shahryar's Gravatar I've been struggling with the CF Installation on Leopard for a while now. I'm running a 2.2ghz MBP which had Leopard installed as a clean "erase and install".

I first started off following the instructions over at Mark Drew's blog ( ).

At best from here, I was able to get the CFIDE/Administrator running and was able to login. However, I saw in the comments that there were a ton of problems when it came to steps involving Apache and stuff.

So I thought I would try to start over and follow the instructions over here instead:

I struggled a bit through the command line stuff, but thought I had gotten through. It seems I haven't though.

at first, I was having trouble with the command: cp /Applications/JRun4/lib/src/connectors/src/ /Applications/JRun4/lib/wsconfig/1/

It was saying No such file or directory. And when I tried to manually go and create the "1" folder, but it said Permission denied.

I solved that problem by changing the settings in Finder to allow me to read and write (before, it was set to read only). Once that was done, I manually copied the .so file.

Next, I'm supposed to change the httpd.conf file in /etc/apache2/folder. This was also a little tricky. I had to first find it using the "Go to Folder" command in finder and then in order to make changes, I had to copy it to my desktop, make the changes:

(which were to take DirectoryIndex index.html and change it to DirectoryIndex index.cfm index.html )

and then repaste it back in the original apache2 folder, overwriting the file already there.

Now however, when I open up my Safari browser to:
http://localhost/CFIDE/ , any link that I click on (for example: the Application.cfm file or the adminstrator folder) saves as a .class file.

I found another httpd.conf file in:
/etc/apache2/original/ and made the same changes there.

Still no dice, seems the browser just wants to download my .cfm files.

Any ideas on what's wrong?
#10 by Shahryar | 12/23/07 5:06 PM
Jeff Coughlin's Gravatar For text editing hidden and protected files I use TextWrangler (thanks to Jared R for that tip). When you want to open a hidden file, choose File --> Open Hidden File.

As of this post, you can find TextWrangler at the following link

With regards to your other problem, make sure to restart Apache any time you make changes in the conf file(s). In OS X 10.5 you can do this in System Preferences --> Sharing --> uncheck then recheck Web Sharing (in 10.4 I believe it was the same except that you had one extra step... to click start or stop button (funny how quickly I forget :) ).

Also, verify that you have the JRUN settings in there (they should have been configured by ColdFusion when you followed the steps to connect CF to Apache). If they are not in there, try the config tool again (the one mentioned in this blog post).

Also, if you're interested you can apply to beta test the 64bit version of CF8 (assuming you have 64bit hardware) at this link .
#11 by Jeff Coughlin | 12/23/07 7:14 PM
sona's Gravatar hey jeff-

i'm running 10.4.11 and i had cf 8 running perfectly, except when i tried to run flash forms. so after googling around a bit i decided to uninstall cf 8 and reinstall. well big mistake, for some reason i can't get it up and running again. any ideas? can you maybe guide me on how you got cf 8 running on 10.4.11? thanks.
#12 by sona | 1/9/08 10:18 PM
Jose's Gravatar I upgrade my OS to 10.5. Prior to that I had CF8 installed as a stand alone server and it was working fine. Since the upgrade I can't connect to localhost:8500. I've uninstalled and re-installed the app but no luck. I have also logged into ADC and downloaded Java SE 6 Developer Preview 8 but when I run the image it says my system already has the latest version installed. Any ideas?
#13 by Jose | 1/17/08 10:58 PM
Shahryar's Gravatar Jeff, I wanted to thank you for your feedback (about a month ago - sorry for the slow response). I've signed up for the pre-release so let's see what happens. But butween now and then, I think I'm just going to work with parallels and the Windows version of CF8 to get my site up and running. This is probably for the better because I would like to work with MS Access too for the time being since I was having a hard time getting MySQL up and running as well (and since my CF wasn't working, I wasn't really motivated to figure out what was up with MySQL). I'm still subscribed to this post though so hopefully I'll still be in the loop with what's going on w/ CF8 through here.
#14 by Shahryar | 1/23/08 12:01 PM
Larry's Gravatar Jeff

I followed the directions exactly on an iMacG5 with Leopard. Everything went as expected but I still am not able to connect to the localhost server. CF Server has started Any other possibilities?

#15 by Larry | 1/27/08 4:36 PM
Larry's Gravatar FRom the log

1/27/08 4:46:38 PM org.apache.httpd[210] httpd: Syntax error on line 484 of /private/etc/apache2/httpd.conf: Cannot load /Applications/ColdFusion8/runtime/lib/wsconfig/1/ into server: dlopen(/Applications/ColdFusion8/runtime/lib/wsconfig/1/, 10): no suitable image found. Did find:\n\t/Applications/ColdFusion8/runtime/lib/wsconfig/1/ mach-o, but wrong architecture
1/27/08 4:46:38 PM[1] (org.apache.httpd[210]) Exited with exit code: 1
1/27/08 4:46:38 PM[1] (org.apache.httpd) Throttling respawn: Will start in 10 seconds

#16 by Larry | 1/27/08 4:51 PM
Larry's Gravatar I finally got this from the logs but I still can't connect to localhost. Suggestions would be gratefully accepted.

01/27 16:47:37 Information [main] - ColdFusion started
01/27 16:47:37 user ColdFusionStartUpServlet: ColdFusion: application services are now available
01/27 16:47:38 user CFMxmlServlet: init
01/27 16:47:38 INFO Macromedia Flex Build: 87315.134646
01/27 16:47:38 user CFMxmlServlet: Macromedia Flex Build: 87315.134646
01/27 16:47:45 user CFSwfServlet: init
01/27 16:47:46 user CFCServlet: init
01/27 16:47:51 user FlashGateway: init
01/27 16:47:53 user MessageBrokerServlet: init
01/27 16:55:16 info JRun Proxy Server listening on *:51011
#17 by Larry | 1/27/08 4:58 PM
Matt's Gravatar Hey Guys, I'm getting the exact same error as Larry, on the same system (iMacG5)

Any chance there was a resolution here?
#18 by Matt | 2/29/08 1:24 PM
szitakalman's Gravatar Hi guy,
If you are just doing development work I recommend using the built in webserver with CF.
#19 by szitakalman | 6/13/08 4:44 AM
Jeff Coughlin's Gravatar Heh. All the comments had stopped because CF8.0.1 came out with better support for OS X 10.5 (Leopard).

As for using the internal JRun web server -- I've had had nothing but problems and limitations with it in the past. Personally I can't use it because I need plugin support for things like: mod_rewite, and SSL (to replicate my cleint's environments). However, if you've found that the built-in JRun web server server suits your needs, then thats always a good thing :)
#20 by Jeff Coughlin | 6/13/08 10:40 AM

BlogCFC by Raymond Camden | RSS | Contact Blog Owner