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:
- Run the installer, and select Multiserver
- Do all the settings as you want, I installed it into Applications/JRun4
- 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)
- Type sudo /Applications/JRun4/bin/jrun -start cfusion
- 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)
- 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
- Restart apache by opening another Terminal window and type: sudo apachectl restart
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:




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....
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
I've summarised the thread here:
http://blog.daemon.com.au/go/blog-post/how-to-inst...
Worked well for me.
Any ideas?
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 @$$
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?
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?
http://www.flashalisious.com/2007/12/14/installing...
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.
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.
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...