Skip to main content
Participating Frequently
July 21, 2011
Question

My Experience with Lion and CF9

  • July 21, 2011
  • 3 replies
  • 4524 views

I'm going to share my experience with you so you can either try to get a little farther than I did, or wait until Adobe supports Lion officially (Recommended).

There were three basic hurdles to get CF server to run on Lion and all but one of them becomes a show stopper.

1.  The first thing you'll trip over are the permission changes in apache, even if you had web sharing turned on, your sites directory and of your localhosts will be screwed.

To overcome that bit you'll need to add a block to user.conf like so:

Directory "your/path/is/different/than/mine"

    Options Indexes MultiViews

    AllowOverride None

    Order allow,deny

    Allow from all

/Directory

At this point, you should be able to get to localhost and bring up your default site as long as it is not using CF.

2. One thing you have to understand about Lion is the big change in permissions. A number of directories that used to allow admin to read and write no longer allow this.  For our purposes we're mostly concerned with /Library/WebServer/Documents/ - I installed the developer edition of the enterprise version of CF 9.01, and this (I believe) was the default location where the admin was installed.  Post Lion migration, your user (admin) account will no longer be able to write to this location and CF will choke.  There are two choices at this point, you can muck around with permissions or you can uninstall JRun4/CF and install the admin in another writeable location.  I elected to reinstall in my case just to try to adhere to the new rules imposed by Lion.  The root user could in fact continue to do anything in this location, but my normal user is simply an admin.

The install works fine writing to the Application directory, the only bit you have to change is where your administrator will be.  Again, it defaults to /Library/WebServer/Documents/, and that's what you have to change.  I chose a location I created under my user directory.  I found that it was best to write a new alias in my httpd.conf file and to test and restart apache after the CF uninstall.

3. The final hurdle was this: Once you clear the installation hurdle, you can bring up the admin, add data sources, and so on, but what you can't do is get to the System Information screen.  In my case it just hung forever.

I was able to bring up all my local development sites, but there were various quirks, cfscript that worked perfectly before would break,  some pages were fast as ever, others were dog slow.  Since I downloaded the installer fresh today I presume I was on the latest, but maybe not.  The bottom line is this:  After I installed Lion and opened up CF Builder for the first time (Eclipse) the OS knew I needed a java runtime and installed it for me.  I couldn't descern if this was the same one CF was using or not, but one of two conditions exist.  Either CF is using it, in which case CF is choking internally on the one provided by Apple, or it's using one packaged with JRun, which must be incompatiable with something in Lion.

I could not resolve the issues I had running various local sites.   Where everything worked without a hitch before Lion, the system was intermitently slow, or would just hang, and the most vexing indication of that was simple trying to bring up the System Information page with CF Admin itself.

So that is my sad tale, I couldn't live with the hanging and slowness and decided to restore my system to its pre lion install state so I can keep working efficiently.  My hope is that better minds than mine at Adobe will be able to update CF so it runs well on Lion, or maybe someone will read this and push the ball down the field a little more.

Best,

-john

    This topic has been closed for replies.

    3 replies

    Participant
    August 13, 2011

    Folks, most of this issues are with multi-instance, not the single instance - that works fine. Plus, in my humble opinion - the issues are mostly with Apple's typical behavoir of making large changes that effect third party vendors like Adobe in their major OS releases. Adobe will provide support for these other instances of OS X Lion in time, but if you expect other "alternatives" to provide release day support for every new OS release, then I would just say "good luck with that." Every developer using OS X Lion should be able to get CF up and running using the single instance server. And any server provider who would upgrade to a new OS version out of the gate would probably scare me. I mean, our Windows system admins would not roll our production servers on the latest Windows server versions without a few months shaking out first and perhaps not until the first service pack.

    Is it frustrating that CF doesn't work in every instance on the new OS X Lion? Sure. Am I going to dump Adobe because they had other priorities that probably should come first? Not likely.

    August 13, 2011

    Sorry to hear everyone so down on OSX.  We've got 8 mac mini servers at our datacenter that actually run circles around their windows counterparts.  OSX has historically been our server platform of choice.  Reading this I fear we may need to begin to start identifying alternatives to Adobe CF.

    I actually took it for granted that CF would be fine on lion and already have another OSX server on the way. I suppose I need to check railo and other alternatives at this point.  Bummer.

    Participant
    July 25, 2011

    Seems many people (including me) are having the same issue. http://www.trunkful.com/index.cfm/2011/7/20/ColdFusion-9-on-OS-X-Lion. While your work around worked for me on a single server install, the multi-server install still bombs out on 9.0.1.

    john1964Author
    Participating Frequently
    July 25, 2011

    None of this would bother me if I could find one adobe employee, evanglist, anyone, who wrote about CF development on Mac OS.  Apple's had a pre-release version of Lion out there for months and Adobe appears to have done nothing.  It's all about the flash war isn't it fellas?  The last bit posted on Forta's blog is on Flash based andriod development for crying out loud.  Almost a week later what can anyone find on this issue.?  The answer is silence.  It's pathetic.

    Owainnorth
    Inspiring
    July 26, 2011

    I don't think it's pathetic and I don't think it has anything to do with Flash, it's just that running an OSX server for ColdFusion is not exactly commonplace. As a company, we're currently running nearly 1700 servers, and not a single customer has, or has ever shown an interest in, running OSX.

    ColdFusion is a webserver technology, and webservers generally run Linux or they run Windows. If Apple are going to stop supporting Java, why should Adobe pour money into trying to make ColdFusion work on a platform that basically none of their customers use?

    Out of interest, why are you running CF on an OSX box anyway?