Hey: I have this problem every time I set things up in IIS w/ rails. Here''s my checklist: 1. Is your app mounted to the root of your server? 2. Where''s your ISAPI.FCGI.DLL file located? Your IIS Guest user should have READ access to the file. 2. What URL rewriter are you using 3. What rule do you use for your rewriting? 4. Did you set the required variables for .fcgi in the registry? 5. What are those variables? 5a. AppPath = c:\ruby\bin\rubyw.exe 5b. Args = c:\your\railsapp\public\dispatch.fcgi 5c. BindPath = rails-fcgi 6. Did you set up the app mapping in your site root to point .fcgi to isapi_fcgi 7. most importantly, did you allow fcgi in the "web service extensions"? Finally, did you see this page? http://rubyforiis.sosukodo.org/ (RubyForIIS) If you did, try installing Ruby For Apache http://rubyforge.org/projects/rubyforapache/ because sometimes you need to do that a few times. (don''t know why, but once it''s working, it does stay that way. If there''s any way I can be of assistance, let me know! -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Stephen Karsch Sent: Tuesday, November 22, 2005 8:56 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] rails on Win2k3/IIS 6? ok, did that. now i''m getting "Server Error, unable to connect to fastcgi server." and no logs have been created in the log dir. thanks for the tip...i guess i messed something up along the way while configuring fastCGI? Nick Stuart wrote:> Quick tip, delete all the log files in your app and restart IIS (not > just the site your app is using, the whole thing). Do you get log > files generated again? If so you''re headed in the right direction. You> should have the environmnet log, and a couple fast-cgi logs generated. > > Let us know if you get these or not and we can go from there. :) > > -Nick > > On 11/21/05, Stephen Karsch <steve-YHcZVUo8PusupyLQ5gChsQ@public.gmane.org> wrote: >> hey everyone, >> i read this article: >> http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003 >> but am still unable to get RoR working on win2k3/iis6. i can confirm>> that my app is working with WEBrick, but whenever i try to access it >> with IIS, i get a 404 error. i am pretty sure i have everything >> configured correctly. anyone have any tips to get this running? >> thanks a lot! >> steve >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
ok, i''ve gone through this, and now i''m running the Ruby for IIS setup. I get an error "Error opening file for writing: c:\windows\system32\msvcp71.dll" what is this file and why does it need to be written to? (this also happenned when I ran the Ruby for Apache setup). thanks for your help! Hogan, Brian P. wrote:> Hey: > > I have this problem every time I set things up in IIS w/ rails. Here''s > my checklist: > > 1. Is your app mounted to the root of your server? > 2. Where''s your ISAPI.FCGI.DLL file located? Your IIS Guest user should > have READ access to the file. > 2. What URL rewriter are you using > 3. What rule do you use for your rewriting? > 4. Did you set the required variables for .fcgi in the registry? > 5. What are those variables? > 5a. AppPath = c:\ruby\bin\rubyw.exe > 5b. Args = c:\your\railsapp\public\dispatch.fcgi > 5c. BindPath = rails-fcgi > 6. Did you set up the app mapping in your site root to point .fcgi to > isapi_fcgi > 7. most importantly, did you allow fcgi in the "web service extensions"? > > Finally, did you see this page? > http://rubyforiis.sosukodo.org/ (RubyForIIS) > > If you did, try installing Ruby For Apache > http://rubyforge.org/projects/rubyforapache/ because sometimes you need > to do that a few times. (don''t know why, but once it''s working, it does > stay that way. > > If there''s any way I can be of assistance, let me know! > > > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Stephen Karsch > Sent: Tuesday, November 22, 2005 8:56 AM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] rails on Win2k3/IIS 6? > > > ok, did that. now i''m getting "Server Error, unable to connect to > fastcgi server." > and no logs have been created in the log dir. > thanks for the tip...i guess i messed something up along the way while > configuring fastCGI? > > Nick Stuart wrote: >> Quick tip, delete all the log files in your app and restart IIS (not >> just the site your app is using, the whole thing). Do you get log >> files generated again? If so you''re headed in the right direction. You > >> should have the environmnet log, and a couple fast-cgi logs generated. >> >> Let us know if you get these or not and we can go from there. :) >> >> -Nick >> >> On 11/21/05, Stephen Karsch <steve-YHcZVUo8PusupyLQ5gChsQ@public.gmane.org> wrote: >>> hey everyone, >>> i read this article: >>> http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003 >>> but am still unable to get RoR working on win2k3/iis6. i can confirm > >>> that my app is working with WEBrick, but whenever i try to access it >>> with IIS, i get a 404 error. i am pretty sure i have everything >>> configured correctly. anyone have any tips to get this running? >>> thanks a lot! >>> steve >>> >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
You should try running Ruby for IIS (dont have link, but its on the wiki). I got that error as well when I tried to install Ruby for Apache, but didn''t have apache installed. I may have seen on my XP laptop too, but can''t remember. -Nick On 11/22/05, Stephen Karsch <steve-YHcZVUo8PusupyLQ5gChsQ@public.gmane.org> wrote:> ok, i''ve gone through this, and now i''m running the Ruby for IIS setup. > I get an error > > "Error opening file for writing: > > c:\windows\system32\msvcp71.dll" > > what is this file and why does it need to be written to? > > (this also happenned when I ran the Ruby for Apache setup). > thanks for your help! > > Hogan, Brian P. wrote: > > Hey: > > > > I have this problem every time I set things up in IIS w/ rails. Here''s > > my checklist: > > > > 1. Is your app mounted to the root of your server? > > 2. Where''s your ISAPI.FCGI.DLL file located? Your IIS Guest user should > > have READ access to the file. > > 2. What URL rewriter are you using > > 3. What rule do you use for your rewriting? > > 4. Did you set the required variables for .fcgi in the registry? > > 5. What are those variables? > > 5a. AppPath = c:\ruby\bin\rubyw.exe > > 5b. Args = c:\your\railsapp\public\dispatch.fcgi > > 5c. BindPath = rails-fcgi > > 6. Did you set up the app mapping in your site root to point .fcgi to > > isapi_fcgi > > 7. most importantly, did you allow fcgi in the "web service extensions"? > > > > Finally, did you see this page? > > http://rubyforiis.sosukodo.org/ (RubyForIIS) > > > > If you did, try installing Ruby For Apache > > http://rubyforge.org/projects/rubyforapache/ because sometimes you need > > to do that a few times. (don''t know why, but once it''s working, it does > > stay that way. > > > > If there''s any way I can be of assistance, let me know! > > > > > > > > -----Original Message----- > > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Stephen Karsch > > Sent: Tuesday, November 22, 2005 8:56 AM > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Subject: Re: [Rails] rails on Win2k3/IIS 6? > > > > > > ok, did that. now i''m getting "Server Error, unable to connect to > > fastcgi server." > > and no logs have been created in the log dir. > > thanks for the tip...i guess i messed something up along the way while > > configuring fastCGI? > > > > Nick Stuart wrote: > >> Quick tip, delete all the log files in your app and restart IIS (not > >> just the site your app is using, the whole thing). Do you get log > >> files generated again? If so you''re headed in the right direction. You > > > >> should have the environmnet log, and a couple fast-cgi logs generated. > >> > >> Let us know if you get these or not and we can go from there. :) > >> > >> -Nick > >> > >> On 11/21/05, Stephen Karsch <steve-YHcZVUo8PusupyLQ5gChsQ@public.gmane.org> wrote: > >>> hey everyone, > >>> i read this article: > >>> http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003 > >>> but am still unable to get RoR working on win2k3/iis6. i can confirm > > > >>> that my app is working with WEBrick, but whenever i try to access it > >>> with IIS, i get a 404 error. i am pretty sure i have everything > >>> configured correctly. anyone have any tips to get this running? > >>> thanks a lot! > >>> steve > >>> > >>> _______________________________________________ > >>> Rails mailing list > >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >>> http://lists.rubyonrails.org/mailman/listinfo/rails > >>> > >> _______________________________________________ > >> Rails mailing list > >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Stephen Karsch <steve@...> writes:> ok, i''ve gone through this, and now i''m running the Ruby for IIS setup. > I get an error > > "Error opening file for writing: > > c:\windows\system32\msvcp71.dll" > > what is this file and why does it need to be written to? > > (this also happenned when I ran the Ruby for Apache setup).Stephen, I think that RubyForApache needs to copy a version of "msvcp71.dll" to your system32 folder. It needs it to recompile fastcgi or something else. The problem (at least on Windows XP, on Win200 I didn''t had this problem) is that you already have a copy of "msvcp71.dll" in your system32 folder. What I did was to rename my original copy to "msvcp71_original.dll" or something , let the RubyFoApache installer do it''s thing and then rename the new one to "msvcp71_rubyforapache.dll" and put back my original. I think this dll is the c++ compiler from VisualStudio. Or is needed by the compiler ... whatever. Hope this helps. Marius Popescu http://mapopescu.blogsome.com