It has been ages since I've setup ColdFusion with IIS and at my new job we're also using Railo. Last week we worked through the installation process for getting both Adobe ColdFusion and Rail connected to IIS. I thought I'd blog about it here as it may be helpful to others.

Environment

  • Windows 7
  • IIS 7
  • ColdFusion 9
  • Railo 4

HOSTS File

Edit your hosts file (C:\Windows\System32\drivers\etc\hosts) and add the following:

  • 127.0.0.1 a.local
  • 127.0.0.1 r.local

Install IIS

  • Click Control Panel > Programs > Turn Windows Features on or off.
  • Install IIS with these options

IIS Installation

Configure IIS

  • Verify configuration
    • For: IIS Metabase and IIS 6 configuration compatibility
      • 32bit Windows - off
      • 64bit Windows - on
  • Open IIS Management Console
    • Delete default website and setup two new sites.
      • Adobe (C:\inetpub\wwwroot\adobe) a.local
      • Railo (C:\inetpub\wwwroot\railo) r.local
    • Create an index.html file and place a copy in each root /coldfusion/index.html & /railo/index.html
    • Verify IIS responds to both http://a.local and http://r.local

While you can organize your directories how you like - this guide assumes you have created the two directories under the webroot.

IIS Sites

Install ColdFusion

  • Select "Use internal web server"
  • Verify you can access the local ColdFusion administrator on port 8500: http://127.0.0.1:8500/CFIDE/administrator/index.cfm
  • Run the Unofficial Updater to patch ColdFusion

Install Railo (NOT Express)

  • During Railo installation it will connect to IIS
  • Verify Railo installed correctly by creating C:\inetpub\wwwroot\railo\index.cfm

Test Railo

<cfdump var="#server#" />

Railo Dump

  • Verify the dump for Railo information at http://r.local

Configure ColdFusion

  • Run the ColdFusion web connector: C:\ColdFusion9\runtime\bin\wsconfig.exe
  • Select the "Adobe" IIS Website (which you created above)
  • Click "Configure web server for ColdFusion 9 applications"
  • Click OK

ColdFusion Configuration

Test ColdFusion

  • Create an index.cfm in C:\inetpub\wwwroot\adobe directory with a cfdump tag
  • Verify http://a.local/index.cfm returns a proper ColdFusion dump (NOT a Railo dump!)

ColdFusion Dump

Troubleshooting

  • http://boncode.net/connector/webdocs/Tomcat_Connector.htm#_Toc349117812
  • If you continue to get the "Bon Code" error try re-registering ASP.net. Re-register asp.net under the correct .net version, run command:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

Published on Mon 13 May 2013 Filed under code
Read more articles...

MAILING LIST LAZINESS

Sun 07 April 2013

BREAKING UP WITH GOOGLE: READER

Tue 02 April 2013

BREAKING UP WITH GOOGLE: ANALYTICS

Fri 29 March 2013

AUTOMATE YOUR PHONE WITH TASKER

Fri 29 March 2013

NEW CRON FOR WINDOWS

Sun 24 March 2013

SUBLIME TEXT PACKAGE OF THE DAY: BROWSER REFRESH

Tue 12 March 2013

ADOBE COLDFUSION 10 UPDATER WOES

Sat 09 March 2013

CONFIGURING CONEMU AND GIT

Wed 06 March 2013

CONFIGURING CONEMU AND PUTTY

Mon 04 March 2013

RUNNING RSYNC ON WINDOWS

Fri 01 March 2013

GOODBYE OCTOPRESS, HELLO PELICAN

Sun 24 February 2013

MOVING TO PELICAN

Mon 18 February 2013

SEARCHING FOR THE PERFECT WINDOWS TERMINAL

Fri 30 November 2012

STANDING DESK FOLLOWUP 2

Tue 20 November 2012

STARTING SELENIUM RC AS A SERVICE FOR JENKINS

Mon 19 November 2012

ORACLE XE MEMORY TWEAKS

Wed 01 August 2012

VALIDATETHIS

Mon 30 July 2012

KANBAN AND POMODORO

Fri 27 July 2012

ESAPI ISSUES

Thu 26 July 2012