Archive for June, 2010

Coldfusion and Apache won’t default execute index.cfm?

Ran into this today, strange setup but I’m running Coldfusion 9 with Apache (WAMP Server) 2.2.11. The short story is that I installed and configured CF just fine, but when it came time to execute CFML pages, nothing would happen unless I put the name of the file at the end of the URL? So in the case of index.cfm, I had to actually type that on the end of the URL?

Initially I figured I forgot to add index.cfm to the DirectoryIndex in httpd.conf. I did that and restarted apache and still no execution of index.cfm?? After googling a bit and finding nothing, I examined the only other portion of apache I thought could be responsible. The spot where JRun gets loaded as an Apache module. Sure enough, the following line was at the bottom:

AddHandler jrun-handler .jsp .jws

It was obvious I needed to add .cfm to that list in order to have Apache pass any CFML page along to the module for execution by Coldfusion. So I made the following change:

AddHandler jrun-handler .jsp .jws .cfm

After that, Apache happily referred index.cfm to JRun for processing. Why the installer didn’t get that setup correctly in the first place I don’t know. The Web Server Configuration Tool said everything was great when I set the server up. Something to watch for and hopefully not waste too much time with next time.

ColdFusion Enterprise server spontaneously reverting to Developer Edition!?

I’ve had this happen on multiple occasions and it isn’t after 30 days either. Most recently, (about 30 minutes ago I might add) a production enterprise server that has been running as with an Enterprise License for two years, crashed and when it restarted, it was a developer edition.

Ok, so now my public facing server has a limit of three concurrent IP addresses, not good. I quickly grab my list of Enterprise serial numbers but uh oh, I can’t log in to the administrator because the rest of the world is trying to hit the server! So I must restart CF and refresh my browser over and over until I beat the rest of the planet to acquire one of my three precious IP slots. Lucky for me I get in, re-apply my serial numbers and I’m back in business.

As to why this happens, I have no idea. I googled and didn’t come up with much (or every time I used the phrase “reverts to developer edition” I got entries talking about what happens after a 30 day trial. At any rate, it seems to happen to me about once every 1-2 years. It always annoys but not enough to make me say things like, “I’m switching to .NET or J2EE”. I suppose those servers have their own issues just as CF has, but the spontaneous reversion to developer edition is indeed a bad one because it renders your server useless.