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 (mod_jrun22.so).
Originally I was going to do this the long way by compiling the mod_jrun22.so 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 dal.net) to ScottP who had already compiled the file and offered to send me a copy.
Here's essentially what I did:
After saving these settings you need to replace the mod_jrun22.so file in /Applications/ColdFusion8/runtime/lib/wsconfig/1 (download the compiled mod_jrun22.so file from ScottP's blog).
Note: If using ColdFusion 8 multiserver edition you'll need to place the mod_jrun22.so file in /Applications/JRun4/lib/wsconfig/1.
Restart CF (and possibly Apache) and you should be good to go.
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:
http://blog.webmages.com/geek/cfmx-on-intel-macs/
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:
http://www.acidlabs.org/2007/02/24/howto-multiple-...
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?
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).
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:
http://blog.webmages.com/geek/cfmx-on-intel-macs/ ?
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:
http://www.markdrew.co.uk/blog/index.cfm/2007/10/2...
http://renaun.com/blog/2007/08/07/230/
http://www.scottpinkston.org/blog/index.cfm/2007/1...
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:
http://www.acidlabs.org/2007/02/24/howto-multiple-...
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 Half.com and see if anyone wants it. The book swapping is no big deal.
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).
"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!
Patrick
Thanks. I updated it to say httpd (I'm surprised no one else caught that before now :) ).
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. http://www.flashalisious.com/2007/12/14/installing...
I first started off following the instructions over at Mark Drew's blog (http://www.markdrew.co.uk/blog/index.cfm/2007/10/2... ).
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:
http://blog.daemon.com.au/go/blog-post/how-to-inst...
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/mod_jrun22.so /Applications/JRun4/lib/wsconfig/1/mod_jrun22.so
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?
As of this post, you can find TextWrangler at the following link http://www.barebones.com/products/textwrangler/.
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 http://www.webbschofield.com/index.cfm/2007/11/19/... .
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.
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?
Thanks
Larry
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/mod_jrun22.so into server: dlopen(/Applications/ColdFusion8/runtime/lib/wsconfig/1/mod_jrun22.so, 10): no suitable image found. Did find:\n\t/Applications/ColdFusion8/runtime/lib/wsconfig/1/mod_jrun22.so: mach-o, but wrong architecture
1/27/08 4:46:38 PM com.apple.launchd[1] (org.apache.httpd[210]) Exited with exit code: 1
1/27/08 4:46:38 PM com.apple.launchd[1] (org.apache.httpd) Throttling respawn: Will start in 10 seconds
THanks
Larry
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
Any chance there was a resolution here?
If you are just doing development work I recommend using the built in webserver with CF.
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 :)