# Apache2, FastCGI and Rails on Windows

**URL:** <https://rubytalk.org/t/apache2-fastcgi-and-rails-on-windows/15349>\
**Category:** ruby-talk\
**Created:** [17 December 2004 14:26 UTC](https://rubytalk.org/t/apache2-fastcgi-and-rails-on-windows/15349 "2004-12-17T14:26:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Williams\_Chris1](https://avatars.discourse-cdn.com/v4/letter/w/b487fb/32.png) [@Williams\_Chris1](https://rubytalk.org/u/Williams_Chris1)\
**Post date:** [17 December 2004 14:26 UTC](https://rubytalk.org/t/apache2-fastcgi-and-rails-on-windows/15349/1 "2004-12-17T14:26:05Z")

</div>

Sarah,  
&nbsp;&nbsp;

> May be I did something wrong. I have not been able to run fcgi, and

yes,

> I did try your sample script. So, I test using 'irb' if there are

error

> ...
> 
> % irb  
> LoadError: No such file to load -- fcgi  
> from  
> c:/apps/ruby/ruby-  
> 1.8/lib/ruby/site\_ruby/1.8/rubygems/loadpath\_manager.rb:5:in  
> `require\_\_'  
> from  
> c:/apps/ruby/ruby-  
> 1.8/lib/ruby/site\_ruby/1.8/rubygems/loadpath\_manager.rb:5:in  
> `require' from (irb):1  
> irb(main):002:0\>

I was having troubles with FastCGI earlier (that's what started this  
Thread). The sad conclusion to it was that I didn't have the fcgi  
library for Ruby installed! Looks like you have the same problem. Look  
in the RubyForApache folder that Kent's program produced. Copy  
fastcgi.so from RubyForApache\lib\ruby\site\_ruby\1.8\i386-msvcrt to  
C:\ruby\lib\ruby\site\_ruby\1.8\i386-msvcrt (or wherever your base ruby  
is installed). Also copy fcgi.rb from  
RubyForApache\lib\ruby\site\_ruby\1.8 to C:\ruby\lib\ruby\site\_ruby\1.8

Assuming you also have everything else set up and mod\_fastcgi.so in  
C:\Program Files\apache Group\Apache2\modules then you should now be  
working.

Thanks,  
Chris
