It's about the code 

Facebook Twitter Gplus LinkedIn RSS

ColdFusion 9.0.2 Installation on 64bit Mountain Lion

CF Web Server Connector appears to successfully configure during installation but silently fails to connect to Apache Web server.

During a ColdFusion 9.0.2 installation I was configuring CF to connect to Apache Web server and experienced the behavior of index.cfm being downloaded instead of rendering in Chrome. This behavior is indicative of Apache either not running or not having index.cfm configured as a directory index in httpd.conf. The first place I looked was to make sure that I had restarted Apache and it was indeed running. Once verified I went to have a look at my httpd.conf file. The only changes I had made to default conf were changing my DocumentRoot, Directory, DirectoryIndex, and enabling Virtual hosts. Everything looked fine in Apache, except that the JRun Settings configuration had not been added by the Web connector durning installation. Okay, so I figured I blew the install, uninstalled, reinstalled, same thing. On to the ColdFusionLauncher.

Here is where things became more interesting. I started up the CF Launcher so that I could use the WebServerConnector Utility to configure CF/Apache connection manually. Here are some screenshots of my configuration:

Web Configuration Step 1
Web configuration step 2
This all looks fine, no problems thus far…Then I receive this warning:
Warning missing

At this point I really wasn’t sure what was going on. A colleague, Mike McKellip, suggested that I have a look at the wsconfig directory. I pulled it up and wsconfig has no content. After some more research, it appears there is an issue with the ColdFusion installer on 64bit Mountain Lion. So, what to do… Mike provided me with a wsconfig and a to use for manual installation. Along with the JRUN entry for httpd.conf to complete configuration:

# JRun Settings
LoadModule jrun_module /Applications/ColdFusion9/runtime/lib/wsconfig/1/
<IfModule mod_jrun22.c>
    JRunConfig Verbose false
    JRunConfig Apialloc false
    JRunConfig Ignoresuffixmap false
    JRunConfig Serverstore /Applications/ColdFusion9/runtime/lib/wsconfig/1/
    JRunConfig Bootstrap
    #JRunConfig Errorurl url <optionally redirect to this URL on errors>
    #JRunConfig ProxyRetryInterval 600 <number of seconds to wait before trying to reconnect to unreachable clustered server>
    #JRunConfig ConnectTimeout 15 <number of seconds to wait on a socket connect to a jrun server>
    #JRunConfig RecvTimeout 300 <number of seconds to wait on a socket receive to a jrun server>
    #JRunConfig SendTimeout 15 <number of seconds to wait on a socket send to a jrun server>
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf

You can find the solution details related to creating the wsconfig directory and compiling over on or Just Another Tech Blog.

Home Apache ColdFusion 9.0.2 Installation on 64bit Mountain Lion