Select Page

Coldfusion 9 and IIS

Coldfusion 9 and IIS

I have been developing in ColdFusion for a while locally using the built in web server. Recently at work several of the projects I am involved with moved to an IIS production server. In order to test fully in my local environment I needed to install IIS and setup ColdFusion to use it as the server instead of its built in version. I ran into a few problems trying to figure this out so I decided to write a blog post of the process in case it is of help to others who need to do the same thing. I am including a set of steps below:

  1. Download the latest version of IIS at http://www.iis.net/download
  2. If you don’t already have ColdFusion installed, grab the latest version at http://www.adobe.com/products/coldfusion/
  3. Be sure to also grab the latest CF patch, which fixes a number of different issues at: http://www.adobe.com/support/coldfusion/downloads_updates.html#cf9
  4. Install IIS. You can either use the recommended settings or the complete install. If you use the recommended settings be sure to install ISAPI extensions and the IIS Metabase detailed in this blog posting. If you don’t will get a page not found error when trying to access any cfm resource!
  5. If you already have CF installed, run the Web Server Configuration Tool (this is located under the Adobe Coldfusion folder in the Windows Start menu). Next click ‘add’ in the server configuration prompt and then select IIS all sites or whatever additional configuration options you need. If the configuration tool fails, make sure you installed the ISAPI extensions and Metabase listed above.
  6. If you are installing a fresh copy of ColdFusion, choose IIS server when the option choices are presented during the installation process.
  7. At the end of the installation you should be able to access your administration area by browsing to http://localhost/cfide/administrator

If you are new to IIS as I was, you will want to figure out how to add your projects or sites. This can be done by running the IIS Services Manager (available under control panel -> administrative tools). Once loaded:

  1. Expand the server tree on the right hand side to ‘sites’
  2. Right-click sites and select ‘Add web site’
  3. Type in a site name e.g. mysite
  4. Select the physical path to your code base for this project / site
  5. In the IP Assigned field type 127.0.0.1
  6. In the hostname field type the hostname you would like to access e.g. mysite
  7. Using a text editor (e.g. notepad++) open c:windowssystem32driversetchosts and enter the following line at the bottom of the file: 127.0.0.1 mysite

That’s it – now if you go to your browser you should be able to open http://mysite/. You may need to set up a few other things such as data sources, etc. but this should essentially get you up and running.

Related Articles

5 Comments

  1. Kieth Wendlen

    Great article. This is awesome information about Coldfusion 9 and IIS. Thank you.

    Reply
  2. Griff Robinson

    This is an awesome article. How can I get some web development work done from you? My site needs some help…

    Reply
  3. Karen Butler

    Thanks for this post. I was getting really frustrated with this technology, but now I understand!

    Reply
  4. tf61

    Thanks for this! I’ll surely try out.

    Reply
  5. techiguy

    Thanks brock .I will surely download this

    Reply

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Tweets