<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Durgaprasad Gorti's WebLog : Ruby On Rails IIS IIS 7 RoR Windows</title><link>http://blogs.msdn.com/dgorti/archive/tags/Ruby+On+Rails+IIS+IIS+7+RoR+Windows/default.aspx</link><description>Tags: Ruby On Rails IIS IIS 7 RoR Windows</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Ruby On Rails with IIS 7 - Reloaded</title><link>http://blogs.msdn.com/dgorti/archive/2009/06/17/ruby-on-rails-with-iis-7-reloaded.aspx</link><pubDate>Thu, 18 Jun 2009 01:15:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9770763</guid><dc:creator>dgorti</dc:creator><slash:comments>10</slash:comments><comments>http://blogs.msdn.com/dgorti/comments/9770763.aspx</comments><wfw:commentRss>http://blogs.msdn.com/dgorti/commentrss.aspx?PostID=9770763</wfw:commentRss><description>&lt;p&gt;In my last post I mentioned getting into Ruby and making MABUILD and rake work together. &lt;br&gt;I think I found a better way to do the same with PowerShell integration, which I will &lt;br&gt;write up sometime this week.&lt;/p&gt; &lt;p&gt;Now, it is inevitable that Ruby leads to Ruby On Rails. I needed to get RoR work on my dev machine with VISTA SP1 and IIS7.&lt;br&gt;I was little surprised to find that there are very few articles on this. A few I found were outdated. Then I landed on Ruslan's &lt;a href="http://ruslany.net/2008/08/ruby-on-rails-in-iis-70-with-url-rewriter/"&gt;post&lt;/a&gt;. &lt;br&gt;It got me to a point but then I was stuck. So I walked to Ruslan's office and we discussed this quite a bit. I went back to my office and researched this some more.&lt;br&gt;I finally got this working after about 3 days of stumbling around. So here is the post that builds on Ruslan's &lt;br&gt;post and clarifies a few things. Mostly I wanted to make sure that even folks like me, who are beginners in the Ruby universe, &lt;br&gt;could follow the steps to get RoR and IIS 7 working.&lt;/p&gt; &lt;p&gt;I am starting here with a clean system with VISTA SP1. &lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;Step 1:&lt;/strong&gt;&amp;nbsp; INSTAL IIS AND CGI&lt;/u&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;Go to control panel, Programs and Features and then select "Turn features on or off". You can get there quicker&lt;br&gt;by typing appwiz.cpl on a command prompt and then selecting "Turn features on or off " from the left side&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb.png" width="199" height="175"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;From the features select World Wide Web Services&lt;br&gt;and make sure that you select the following &lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;font color="#008000"&gt;&lt;strong&gt;REQUIRED: CGI. This is the same as the FastCGI support&lt;/strong&gt;&lt;/font&gt;  &lt;li&gt;&lt;strong&gt;&lt;font color="#008000"&gt;REQUIRED: IIS Management Console&lt;/font&gt;&lt;/strong&gt;  &lt;li&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;OPTIONAL: Custom HTTP Features: Static Content, etc&lt;br&gt;[We will use this to check if IIS is installed correctly]&lt;/font&gt;&lt;/strong&gt;  &lt;li&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;OPTIONAL : Other health and diagnostics info as &lt;br&gt;Shows in the picture below&lt;/font&gt;&lt;/strong&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_8.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_3.png" width="321" height="485"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Click OK and let the Windows install IIS and FastCGI for you.&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;Step 2:&lt;/strong&gt;&amp;nbsp; VERIFY THAT IIS IS WORKING&lt;/u&gt;&lt;/p&gt; &lt;p&gt;Once installed you can verify that the IIS is installed by going to the &lt;br&gt;&lt;a href="http://localhost/iisstart.htm"&gt;http://localhost/iisstart.htm&lt;/a&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_10.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_4.png" width="244" height="163"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Please note: If you did not enable STATIC CONTENT feature when you installed, you will get a 404 NOT FOUND. &lt;br&gt;You see the file right there but you still get 404 NOT FOUND. Security aside, it would be great &lt;br&gt;if there is a more easier way to diagnose this, I ended up researching this for more than 3 hours wondering&lt;br&gt;why am I getting the 404 not found. Anyway, now you know and you don't need to waste those hours. &lt;br&gt;Again, enable the static content feature to be able to see this static content page. &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;Step 3: INSTALL RUBY&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;Navigate to &lt;a title="Ruby 1.8.6 One-Click Installer" href="http://rubyforge.org/frs/download.php/47082/ruby186-27_rc2.exe"&gt;Ruby 1.8.6 One-Click Installer&lt;/a&gt; and install RUBY&lt;br&gt;&lt;font color="#ff0000"&gt;CAUTION: DONT INSTALL TO A FOLDER that has SPACES in the name or its path.&amp;nbsp; like "C:\program Files\Ruby"&lt;br&gt;I had strange errors and I had to reinstall RUBY. It is best to stick with the C:\Ruby.&lt;/font&gt; &lt;br&gt;As a side and tangential note, what's up with installing to C:\Ruby? Aren't the people in that &lt;br&gt;alternate universe hate installing to root directories like C:\? Why can't it default to C:\Program Files\Ruby?&lt;br&gt;RUBY is supposed to make you HAPPY!! Huh!&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;Step 4: VERIFY RUBY IS IN THE PATH&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;RUBY Installation should have added the C:\ruby\bin [or whatever the path you gave] to the path. &lt;br&gt;Open a command prompt; type "SET PATH" and look at the path. You should see the ruby\bin in the path.&lt;br&gt;If not, no big deal, add ruby to the path in the System Variables. &lt;br&gt;Type ruby -help to see that you get some help on the screen. This verifies that Ruby is indeed installed. &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;Step 5: INSTALL RAILS&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;on a command prompt, type "Gem Install Rails". [The dependencies are already &lt;br&gt;included, contrary to popular belief that suggests the -includedependencies option&lt;br&gt;is required to do so]&lt;br&gt;Once installed, do "gem list" to list the gems locally installed. You should see &lt;br&gt;something like this - which should include rails. &lt;/p&gt; &lt;p&gt;C:\Windows\system32&amp;gt;gem list  &lt;p&gt;*** LOCAL GEMS ***  &lt;p&gt;actionmailer (2.3.2)&lt;br&gt;actionpack (2.3.2)&lt;br&gt;activerecord (2.3.2)&lt;br&gt;activeresource (2.3.2)&lt;br&gt;activesupport (2.3.2)&lt;br&gt;fxri (0.3.6)&lt;br&gt;fxruby (1.6.16)&lt;br&gt;hpricot (0.6.164)&lt;br&gt;log4r (1.0.5)&lt;br&gt;ptools (1.1.6)&lt;br&gt;&lt;strong&gt;&lt;font color="#008000" size="4"&gt;rails (2.3.2)&lt;/font&gt;&lt;/strong&gt;&lt;br&gt;rake (0.8.7, 0.8.1)&lt;br&gt;ruby-opengl (0.60.0)&lt;br&gt;test-unit (2.0.1)&lt;br&gt;win32-api (1.2.1, 1.2.0)&lt;br&gt;win32-clipboard (0.4.4)&lt;br&gt;win32-dir (0.3.2)&lt;br&gt;win32-eventlog (0.5.0)&lt;br&gt;win32-file (0.5.5)&lt;br&gt;win32-file-stat (1.3.1)&lt;br&gt;win32-process (0.5.9)&lt;br&gt;win32-sapi (0.1.4)&lt;br&gt;win32-sound (0.4.1)&lt;br&gt;windows-api (0.2.4)&lt;br&gt;windows-pr (0.9.3) &lt;p&gt;&lt;u&gt;&lt;strong&gt;Step 6: Install FASTCGI Update for IIS7&lt;br&gt;&lt;a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=19600729-8470-4956-a276-200450d814bd&amp;amp;displaylang=en&amp;amp;Hash=CUX9vrzjILBL3AghMTxtsgswXdorhJT4JhGOGHeRvFL9AQlhlkUkNtnVcQflyQD7VwtQyh51gAxTnsa4f4OlBA%3d%3d" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=19600729-8470-4956-a276-200450d814bd&amp;amp;displaylang=en&amp;amp;Hash=CUX9vrzjILBL3AghMTxtsgswXdorhJT4JhGOGHeRvFL9AQlhlkUkNtnVcQflyQD7VwtQyh51gAxTnsa4f4OlBA%3d%3d"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=19600729-8470-4956-a276-200450d814bd&amp;amp;displaylang=en&amp;amp;Hash=CUX9vrzjILBL3AghMTxtsgswXdorhJT4JhGOGHeRvFL9AQlhlkUkNtnVcQflyQD7VwtQyh51gAxTnsa4f4OlBA%3d%3d&lt;/a&gt;&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff" size="3"&gt;I am not quite sure if this is a general update for FastCGI or just for PHP. To avoid hitting my head against a wall, I installed this anyway.&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;br&gt;&lt;u&gt;&lt;strong&gt;Step 7: Pretend that you are hosting a website called&amp;nbsp; RoRIIS7 &lt;/strong&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;Add a HOST Entry so that the name resolver won't go out to the DNS Server. &lt;br&gt;&lt;font color="#ff0000" size="3"&gt;Don't forget to use an administrative command prompt from which you &lt;br&gt;&lt;/font&gt;&lt;font color="#ff0000" size="3"&gt;launch notepad. edit Windows\System32\Driver\Etc\Hosts like below. &lt;/font&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_20.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_8.png" width="472" height="267"&gt;&lt;/a&gt;  &lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;Step 8&amp;nbsp; Add a new Website to IIS&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Go to C:\InetPub [or where ever you installed the inetpub to]&lt;/p&gt; &lt;p&gt;create a directory called RoRIIS7. We are not touching the wwwroot directory for this experiment.&lt;br&gt;i will post an update dealing with default web site later. &lt;br&gt;&lt;/p&gt; &lt;p&gt;Open MMC, Add the Internet Services Manager to the MMC Console.&lt;br&gt;Expand the IIS Manager. It will show the local web server. &lt;br&gt;Click on Add WebSite to add a website like below&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_12.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_2.png" width="378" height="260"&gt;&lt;/a&gt; &lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;Here we are adding a new WebSite RoRIIS7&lt;br&gt;mapped to the physical directory C:\Inetpub\RoRIIS7 &lt;br&gt;Please note that the HostName we are using&lt;strong&gt;&lt;font color="#0000ff" size="3"&gt; &lt;/font&gt;&lt;/strong&gt;&lt;font color="#0000ff" size="3"&gt;&lt;strong&gt;RoRIIS7&lt;/strong&gt;&lt;/font&gt;&lt;br&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;AND that I am using port 8080&lt;br&gt;&lt;/font&gt;&lt;/strong&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_18.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_7.png" width="408" height="398"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;The website should start.&lt;/p&gt;&lt;/blockquote&gt; &lt;div&gt;&lt;strong&gt;&lt;u&gt;Step 9 Verify that the new website is working&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt; &lt;blockquote&gt; &lt;div&gt;To verify that the website is working, copy the IISSTART.HTM and the &lt;br&gt;welcome.png files into the RoRIIS7 directory. &lt;br&gt;Then navigate to &lt;a href="http://RoRIIS7/iisstart.htm"&gt;http://RoRIIS7/iisstart.htm&lt;/a&gt;&lt;br&gt;You should see a page similar to step 2. &lt;/div&gt; &lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt; &lt;div&gt;&lt;strong&gt;&lt;u&gt;Step 10 Generate a RAILS APP&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt; &lt;blockquote&gt; &lt;div&gt;NOTE: When you generate the Rails app, make sure that &lt;br&gt;you use -D option. -D option generated the dispatchers&lt;br&gt;for CGI and FastCGI&lt;/div&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;table border="0" cellspacing="0" cellpadding="2" width="400"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign="top" width="400"&gt;&lt;font color="#0000ff"&gt;Luanch CMD prompt as administrator&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" width="400"&gt;&lt;font color="#0000ff"&gt;cd C:\inetpub\RoRIIS7&lt;br&gt;&lt;strong&gt;&lt;font size="4"&gt;rails -D MyApp&lt;br&gt;&lt;/font&gt;&lt;/strong&gt;cd MyApp&lt;br&gt;ruby script\generate Controller Test Index&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;Step 11 Generate a RAILS APP&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Modify the app\controllers\test_controller.rb like below&lt;br&gt;This will enable it to display some test when we navigate to this URL&lt;/p&gt; &lt;p&gt;class TestController &amp;lt; ApplicationController&lt;br&gt;&amp;nbsp;&amp;nbsp; def index&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; render :text=&amp;gt;"The index action"&lt;br&gt;&amp;nbsp;&amp;nbsp; end&lt;br&gt;&amp;nbsp;&amp;nbsp; def about&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; render :text=&amp;gt;"The about action"&lt;br&gt;&amp;nbsp;&amp;nbsp; end&lt;br&gt;end&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;Step 12 Hook up IIS to Ruby&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;So far, we have IIS Setup and a Ruby App Setup&lt;br&gt;We need to hook them together now. &lt;br&gt;&lt;/p&gt; &lt;p&gt;Go to the MMC/Internet Services Manager, Go to the site RoRIIS7 in the &lt;br&gt;MMC snapin. We are now going to add a module mapping&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_22.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_9.png" width="373" height="324"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;We are mapping * ==&amp;gt; All requests To the FastCGI Module. &lt;br&gt;The executable we use is of course the ruby interpreter. &lt;br&gt;But then there you see a PIPE character and the path to the &lt;br&gt;dispatch.fcgi. The reason is that Ruby by iteself does not handle&lt;br&gt;the FCGI. The FCGI handling is provided by the Rails &lt;br&gt;Dispatcher. &lt;/p&gt; &lt;p&gt;Once you add the mapping go to &lt;br&gt;C:\windows\system32\inetsrv\config and open &lt;br&gt;applicationhost.config&lt;br&gt;In this config file you should see a section for fast cgi&lt;/p&gt; &lt;p&gt;&amp;lt;fastCgi&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;application fullPath="C:\ruby\bin\ruby.exe" arguments="C:\inetpub\RoRIIS7\MyApp\public\dispatch.fcgi" /&amp;gt;&lt;br&gt;&amp;lt;/fastCgi&amp;gt; &lt;p&gt; and another section for&lt;br&gt;the module mapping. &lt;/p&gt; &lt;p&gt;&amp;lt;/system.webServer&amp;gt;&lt;br&gt;&amp;lt;location path="RoRIIS7"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;handlers&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="RubyFastCGI" path="*" verb="*" modules="FastCgiModule" scriptProcessor="C:\ruby\bin\ruby.exe|C:\inetpub\RoRIIS7\MyApp\public\dispatch.fcgi" resourceType="Unspecified" /&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/handlers&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.webServer&amp;gt; &lt;p&gt;&lt;br&gt;These sections are created for you when you added the module mapping &lt;br&gt;through the GUI above. Now, you could directly edit the file yourself if you wanted to. &lt;br&gt;&lt;br&gt;Sensing the smell of completion you go to &lt;a href="http://roriis7/test/about"&gt;http://roriis7/test/about&lt;/a&gt; &lt;br&gt;but then you are greeted by the&lt;br&gt; &lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_24.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_10.png" width="420" height="316"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;Step 13 Fixing Permissions&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt; When working with IIS, I always turn on the security audit.&lt;br&gt;Turning the security audit on can it self be somewhat of a challenge. &lt;br&gt;Without going into detail, what is required apparently is to &lt;br&gt;grant NETWORK Service Account permissions to the RoRIIS7 Folder. &lt;br&gt;Since Ruby will write some logfiles etc to that dir. You could&lt;br&gt;possibly fine tune this later if you needed to. &lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_26.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_11.png" width="286" height="348"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Do an IISRESET and go visit &lt;a href="http://roriis7:8080/test/about"&gt;http://roriis7:8080/test/about&lt;/a&gt;&lt;br&gt;OOPS! What went wrong now?&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_28.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_12.png" width="685" height="254"&gt;&lt;/a&gt; &lt;br&gt;Apparently the RAILS needs SQLITE and it is not happy that it can't find SQLLite&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;Step 14 Installing SQLITE and the SQLLITE GEM&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Download SQLITE-3.6.15 ZIP file and place the exe in the Ruby\Bin directory&lt;br&gt;this is the command line config&amp;nbsp; tool&lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;Download SQLITEDLL-3.6.15 ZIP and place the dll in the system32 directory.&lt;br&gt;This is the engine for SQLITE. &lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;Now we need to install the GEM&lt;/p&gt; &lt;p&gt;&lt;a title="http://blog.anlek.com/2008/09/installing-updating-sqlite3-on-windows/" href="http://blog.anlek.com/2008/09/installing-updating-sqlite3-on-windows/"&gt;http://blog.anlek.com/2008/09/installing-updating-sqlite3-on-windows/&lt;/a&gt; has the &lt;br&gt;tip on getting this done&lt;br&gt;&lt;br&gt;&lt;strong&gt;&lt;code&gt;gem install --version 1.2.3 sqlite3-ruby&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;Step 14 COMPLETE!!!&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;Now you navigate to &lt;a href="http://roriis7:8080/test/about"&gt;http://roriis7:8080/test/about&lt;/a&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;and you should see&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_30.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/dgorti/WindowsLiveWriter/RubyOnRailswithIIS7Reloaded_14757/image_thumb_13.png" width="791" height="279"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt;There you go ladies and gentlemen, I give you Ruby On Rails with IIS7&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9770763" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/dgorti/archive/tags/Ruby+On+Rails+IIS+IIS+7+RoR+Windows/default.aspx">Ruby On Rails IIS IIS 7 RoR Windows</category></item></channel></rss>