Running ColdFusion 8 on Leopard

Posted At : October 27, 2007 7:04 PM | Posted By : Mark Drew
Related Categories: coldfusion, apple

I have had a few people ping me on IM telling me that they had some problems running ColdFusion 8 on Leopard. Well, I havent had any problems but then again, I might have a slightly different setup than most (or maybe not!)

How I installed it was as follows:

  1. Run the installer, and select Multiserver
  2. Do all the settings as you want, I installed it into Applications/JRun4
  3. Once it has installed, it wont be able to go the web based configuration tool as it seems the server hasnt actually started, so, open up Terminal (Utilities/Terminal)
  4. Type sudo /Applications/JRun4/bin/jrun -start cfusion
  5. Coldfusion should start, but it isnt properly configured so go to: http://localhost/cfide/administrator/index.cfm (note the index.cfm, apache isnt configured to serve index.cfm as a default file yet)
  6. Once you have gone through the process, open up /etc/apache2/httpd.config and look for the line :  DirectoryIndex index.html and change it to  DirectoryIndex index.cfm index.html
  7. Restart apache by opening another Terminal window and type: sudo apachectl restart
That should be it. That is how I configured it (I then split it out into a couple of virtual hosts with different versions of CF running, but that is another story)

I hope this helps!

EDIT: I have tried this with a fresh download and it all seemed to go well, apart from the final screen where it tells me that the webserver couldn't be restarted, but that is what happened before.

Apache Config info:

Error about restarting:

My start page:

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Jarrod Taylor's Gravatar After installing and starting CF I can't get step 5 to work. Going http://localhost/cfide/administrator/index.cfm gives me a 404 Not Found error. Thoughts?
# Posted By Jarrod Taylor | 10/28/07 2:06 PM
Nitai Aventaggiato's Gravatar Hi all,

I got Tiger and Leopard running CF8 and Apache 2.2.4 without problems (even after updating a Tiger MacBookPro with Leopard). I don't like to depend on Apple to much since they just roll out some updates and then your webserver does not run anymore or you need to reinstall CF.

Thus I have put together a blog post some time ago about installing Apache 2.2.4 and CF. Since I have this setup I have never had any problems with any update. The blog post is at: http://blog.econtentpark.com/permalinks/2007/06/18....
# Posted By Nitai Aventaggiato | 10/28/07 5:29 PM
Charles Fahey's Gravatar Hi Neil and everyone else,

Success!

Neil I was having the exact same issue as you.

So I did a new install using the ColdFusion stand-alone server (no Apache server connectors).

I then opened terminal and performed the three commands outlined by Darren.

Next I went to http://127.0.0.1:8500/CFIDE/administrator/index.cf... and viola, there was something driven by ColdFusion. It needed me to finish the installation. Then after a few second it said it was complete and I clicked okay to enter the CF Administrator.

So it is up and running.

Thanks everyone! I don't know what is sifferent about my system, but the stand-alone seems to be the key for my environment, anyway.

- Charles
# Posted By Charles Fahey | 10/29/07 9:59 PM
Geoff Bowers's Gravatar My thanks to the collective brains trust :)

I've summarised the thread here:
http://blog.daemon.com.au/go/blog-post/how-to-inst...
# Posted By Geoff Bowers | 10/30/07 3:30 AM
# Posted By Jarrod Taylor | 10/30/07 1:32 PM
Aaron Roberson's Gravatar I went through your tutorial and all seemed the same except that when I try to go to http://localhost/cfide/administrator/index.cfm" target="_blank">http://localhost/cfide/administrator/index.cfm I am redirected to http://localhost/

Any ideas?
# Posted By Aaron Roberson | 10/30/07 7:02 PM
John's Gravatar I am going insane with this...

I followed the steps outlined originally by mark and was able to start cfusion but when navigating to http://localhost/CFIDE/administrator/index.cfm the browser prompts to download.

So, I wipe everything... Used Cf installer to remove, then trashed the /Applications/JRun4 dir, rebooted and used the steps Geoff summarized at http://blog.daemon.com.au/go/blog-post/how-to-inst...

I ran into two issues:

1) /1 did not exist in the /Applications/JRun4/lib/wsconfig so I had to create it (using su rights)

2) When I was all finished http://localhost/CFIDE/administrator/index.cfm promts to download

So basically I have the same end result. I can start Cf manually from terminal, but can't connect to the admin.

I couldn't have fat-fingered anything because I copied/pasted.

I guess I'll remove, delete, reboot, and try again.

What a pain in the @$$
# Posted By John | 11/8/07 11:06 AM
Shahryar's Gravatar alright, I followed the directions exactly on Saturday, but couldn't get anything to work. Evertime I went to the localhost's CFIDE page, nothing would come up. But I just restarted m computer, and I put in the:

sudo /Applications/JRun4/bin/jrun -start cfusion

command in terminal and then I went into:

http://localhost:8300/CFIDE/administrator/index.cf... and I got into my ColdFusion administrator. I assume that means that everything is running fine. I'm not sure why it's localhost:8300 and not just regular localhost though.

I was hoping I could browse and play with some sample apps that would work on my comp but it seems all the examples are on adobe's site.

I'm not understanding the Apache talk on this thread though. What exactly is everyone trying to do here with the Apache questions?
# Posted By Shahryar | 11/20/07 10:48 PM
pete's Gravatar Thank you this is a very nice Running ColdFusion 8 on Leopard tips.
# Posted By pete | 11/22/07 7:25 PM
Gavin Stewart's Gravatar Hello, i got this going following these instructions on the Daemon blog http://blog.daemon.com.au/go/blog-post/how-to-inst...
but it fails to mention to add index.cfm to DirectoryIndex causing apache to try and download the .cfm file. What i want know is why the ColdFusionLauncher is so sh##e! It never starts cf having to resort to the command line, leaving an ugly terminal window open all the time. Just like the jrun consol, will they ever fix it?
# Posted By Gavin Stewart | 11/23/07 2:59 PM
# Posted By Matthew Wallace | 12/15/07 12:10 PM
Shahryar's Gravatar Argh! I'm not sure what's going on. I'm running a 2.2ghz MBP C2D w/ Leapord installed as a clean erase and install...

I Just restarted my computer and did the "sudo /Applications/JRun4/bin/jrun -start cfusion" command.

It seems to have gotten stuck on some part of the launch. I wish I could post on what specific command during the launch sequence it got stuck, but my log files are gone. ( I just uninstalled ColdFusion as part of the instructions from the post over here:
http://blog.daemon.com.au/go/blog-post/how-to-inst... )
And whenever I launch the CFIDE page in the Localhost:8300, it just gets hung up.

I don't understand what's going on here though. I can use the Jrun Launcher to launch both the admin on localhost:8000 and the samples on localhost:8200. But it seems with the Jrun launcher, I can't control cfusion at localhost:8300 at all.

I hope I have better luck following blog.daemon.com.au's instructions.
# Posted By Shahryar | 12/22/07 4:35 PM
Aaron West's Gravatar What worked for me, is pretty much what everyone else has mentioning working for them. My exact steps to get ColdFusion 8 installed on Leopard and integrated with Apache 2.2.6 were:

1. Download CF8 installer from adobe.com/go/coldfusion

2. Double-click the installer file to launch the wizard.

3. As you progress through the screens, be sure to select multi-server install (I always multi-instance CF).

4. On the Configure Web Server screen, select the option to configure a Web server. Select Apache in the drop-down.

For Configuration Directory type: /private/etc/apache2
NOTE: Others have mentioned typing /etc/apache2 here. This is also fine as that directory is a symbolic link to the REAL directory /private/etc/apache2.

For Directory and file name of server binary type: /usr/sbin/httpd

For Directory and file name of server control script type: /usr/sbin/apachectl

Click Ok.

5. The installer will do it's thing and then you'll get a message about successfully installing CF8 BUT, that the Web server and/or Web site do not appear to be running. You're directed to start the Web server and then run the Configuration Wizard: http://localhost:80/CFIDE/administrator/index.cfm

Just click Ok when you see the message above and move to the next step.

6. Download the recompiled, 64-bit Web server connector from Scott Pinkston: http://www.scottpinkston.org/Downloads/mod_jrun22_...

7. Make sure Apache is stopped. In Terminal, navigate to the /usr/sbin directory and type "sudo apachectl stop"

8. Copy mod_jrun22.so from the zip you downloaded and paste it into the following directory: /Applications/JRun4/lib/wsconfig/1/.

9. Restart Apache. From /usr/bin in Terminal, type "sudo apachectl start &"

10. Stop all CF/JRun services (just in case they are running). From /Applications/JRun4/bin/ type
"./jrun4 stop cfusion" and "./jrun4 stop admin" and "./jrun4 stop samples" Don't worry about what messages you get from typing the commands.

11. Open Activity Monitor (the OS X app) and look for any services called "jrun." If any are listed (be sure "All processes" is listed in the drop-down at the top of Activity Monitor), quit them by selecting them and pressing the Quit button, then the Force Quit button to confirm.

12. Start CF8 in Terminal: from /Applications/JRun4/bin type "./jrun4 start cfusion &"

13. Go to your browser and visit http://localhost/CFIDE/administrator/index.cfm. Be sure and type the filename (index.cfm). You will be prompted to enter your CF Admin password at which point CF will run through the configuration process and direct you to the CF Admin.

Now you can go back to Apache and set up Virtual Hosts or add "index.cfm" to the global DirectoryIndex directive.
# Posted By Aaron West | 1/11/08 3:44 PM
Joe Rinehart's Gravatar Ohhh, ok.

What's going wrong with MySQL on Leopard? I downloaded the 10.4 installer (http://dev.mysql.com/downloads/mysql/5.0.html#maco...), ran it, and it's up and running...
# Posted By Joe Rinehart | 1/23/08 11:05 AM