Accidental Technologist

Musings about Entrepreneurship, Technology and Software Development

  • Home
  • About
  • Still River Software
  • Privacy Policy

Powered by Genesis

You are here: Home / Ruby on Rails / Ruby on Rails and IIS7 Playing Nicely Together

Ruby on Rails and IIS7 Playing Nicely Together

April 4, 2008 by Rob Bazinet

Tweet

Ruby on Rails has been around for a few years now and has become a hugely popular web development framework, but not on Windows and Internet Information Server (IIS).  Rails has run on Linux and Max OSX almost exclusively, until recently. 

The Ruby on Rails Wiki has a very good article on setting up Ruby on Rails using IIS7.

Enter FastCGI

FastCGI is the key to getting Rails running in IIS.  The FastCGI web site describes FastCGI as:

FastCGI  is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs. See the docs for more details.

Dave Scruggs has a nice short tutorial about his experience getting Rails running on Windows Visata SP1 and IIS 7 with FastCGI.  One of the really nice features of Vista SP1 is that it includes FastCGI built-in. 

In the event you are running IIS7 without FastCGI built in, Dave points out a good tutorial from Carlos Caneja called Install FAST CGI on IIS7.

FastCGI is used to serve applications on IIS7 for languages such as:

  • Ruby
  • Python
  • PHP
  • and others….

What about IIS6?

Most of the recent resources on the web I have seen show FastCGI applications running on IIS7, mainly because it is built-into Vista SP1 and that avoids some configuration difficulties but IIS6 does has FastCGI support for it.  I have not personally attempted it but I may in the future.   The IIS.NET site has some information about using FastCGI on IIS6.

  • IIS.net : FastCGI Extension for IIS6 ? GoLive to RTM release upgrade
  • FastCGI Extension for IIS6.0 – RTM

It seems the primary support for FastCGI from Microsoft is on IIS7 but not everyone may be at the point where their web servers are running IIS7 just yet. 

Personal Setup

The tutorials given here are very good and work really well with Vista.  I have a VMWare VM setup on my MacBook Pro running Vista SP1, the setup was flawless.  I have an advantage of many years of IIS experience with a couple years of Ruby on Rails experience, which I think does help.

I would like to see some performance numbers of running Rails or any FastCGI hosted application under IIS.  I am not aware of any but would like to hear back from someone putting IIS and FastCGI through it paces.

Technorati Tags: Ruby on Rails,IIS,Microsoft,Vista

Share this:

  • LinkedIn
  • Twitter
  • Facebook
  • Email
  • More
  • Pinterest
  • Tumblr
  • Pocket
  • Reddit

Related

Filed Under: Ruby on Rails

Care about your privacy? I do and use Fathom Analytics on this site.

Fathom Analytics

Comments

  1. Mind Gravy » Blog Archive » links for 2008-04-08 says

    April 8, 2008 at 8:38 am

    […] Ruby on Rails and IIS7 Playing Nicely Together ? Accidental Technologist (tags: iis rubyonrails) […]

  2. Mind Gravy » Blog Archiv says

    April 8, 2008 at 8:38 am

    […] Ruby on Rails and IIS7 Playing Nicely Together ? Accidental Technologist (tags: iis rubyonrails) […]

  3. Hasan Rahman says

    July 22, 2008 at 8:09 am

    Hi Rob, I tried to install it on IIS7 on server 2008, but I keep getting a Internal error 500. I can run ruby and rails, but I do not know what is causing the error. I followed the tutorial on wiki.rubyonrails.org/…/HowToConfigureI

  4. Hasan Rahman says

    July 22, 2008 at 8:09 am

    Hi Rob, I tried to install it on IIS7 on server 2008, but I keep getting a Internal error 500. I can run ruby and rails, but I do not know what is causing the error. I followed the tutorial on wiki.rubyonrails.org/…/HowToConfigureI

Recent Posts

  • How to Fix Rails Flash Rendering When Using Hotwire
  • Hotwire Fix for CORS Error when using Omniauth
  • Fix Installation of Ruby using rbenv on macOS Big Sur
  • RailsConf 2021 and the Future of Conferences
  • Fixing Out of Diskspace Errors on Amazon EC2

Categories

Services I Love

HatchBox - Easy Rails Deploys Fathom Analytics
Follow @rbazinet

Rob Bazinet
@rbazinet

  • Exactly this…. https://t.co/yWj7fZ01HR
    about 1 day ago
  • https://t.co/EmagdpLoNv "Introducing GitHub Copilot X · GitHub"
    about 2 days ago
  • RIP Gordon Moore: https://t.co/c5J9LaHrj8
    about 2 days ago
  • Our daughter works as a teaching assistant at a local K-8 public school. It’s become apparent that students today r… https://t.co/p2t912GVyc
    about 2 days ago
  • Working to wrap up my current consulting gig by mid-April. I will be looking for the next thing soon. If anyone has… https://t.co/sg3cSV9yqM
    about 3 days ago
  • RSS - Posts
  • RSS - Comments
Find me on Mastodon