# Apache 2.2 and mod\_fastcgi

**URL:** <https://www.ruby-forum.com/t/apache-2-2-and-mod-fastcgi/100118>\
**Category:** Ruby\
**Created:** [February 2, 2006, 12:35am UTC](https://www.ruby-forum.com/t/apache-2-2-and-mod-fastcgi/100118 "2006-02-02T00:35:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![reis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@reis](https://www.ruby-forum.com/u/reis)\
**Post date:** [February 2, 2006, 12:35am UTC](https://www.ruby-forum.com/t/apache-2-2-and-mod-fastcgi/100118/1 "2006-02-02T00:35:40Z")

</div>

I’m trying to install mod\_fastcgi for my rails app.

I use Apache 2.2 and FastCGI 2.4.2 in windows xp.  
I have modified the httpd.conf adding LoadModule fastcgi\_module  
modules/mod\_fastcgi.dll (with mod\_fastcgi.dll and mod\_fastcgi.so in the  
modules directory).

## Whe i try to start Apache i have this error

## apache: Syntax error on line 122 of C:/xampp/apache/conf/httpd.conf: Cannot load C:/xampp/apache/modules/mod\_fastcgi.dll into server: Impossible to find the module.

But the file is in the dir modules. So Apache not start becouse don’t  
load fastcgi.

Then I have find in the web this link  
[http://groups.google.it/group/mailing.freebsd.ports/browse\_thread/thread/ef147c0de20f747d/77d82789348085e9?lnk=st&q=error+apache+mod\_fastcgi&rnum=2#77d82789348085e9](http://groups.google.it/group/mailing.freebsd.ports/browse_thread/thread/ef147c0de20f747d/77d82789348085e9?lnk=st&q=error+apache+mod_fastcgi&rnum=2#77d82789348085e9)  
but I have not understand the solution. Then it ask for unix.

Thanks to all for the time.  
–Reis.

---

<div class="post-metadata">

**Author:** ![reis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@reis](https://www.ruby-forum.com/u/reis)\
**Post date:** [February 2, 2006, 12:38am UTC](https://www.ruby-forum.com/t/apache-2-2-and-mod-fastcgi/100118/2 "2006-02-02T00:38:43Z")

</div>

I installed Apache a few weeks ago. Everything worked perfectly (on  
Windows XP service pack 2) for Ruby on Rails with FastCGI. Didn’t have  
to patch anything. I don’t remember clearly, but probably, I didn’t  
have to install mod\_fastcgi separately … it came with the Apache for  
Windows installation. I believe I have version 2.0.55.

Don’t understand why you mentioned “mod\_fastcgi.dll” because I don’t  
have such a file in my system. As far as I know, there’s mod\_fastcgi.so  
only.

---

<div class="post-metadata">

**Author:** ![reis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@reis](https://www.ruby-forum.com/u/reis)\
**Post date:** [February 2, 2006, 12:41am UTC](https://www.ruby-forum.com/t/apache-2-2-and-mod-fastcgi/100118/3 "2006-02-02T00:41:46Z")

</div>

X-Man ha scritto:

> I installed Apache a few weeks ago. Everything worked perfectly (on  
> Windows XP service pack 2) for Ruby on Rails with FastCGI. Didn’t have  
> to patch anything. I don’t remember clearly, but probably, I didn’t  
> have to install mod\_fastcgi separately … it came with the Apache for  
> Windows installation. I believe I have version 2.0.55.

I think is this the problem. I have Apache 2.2 and the problem for me  
is here (i thing it has deprecated a directive that is usefol for  
reading mod\_fastcgi).  
The next day I will try with Apache 2.0…

> Don’t understand why you mentioned “mod\_fastcgi.dll” because I don’t  
> have such a file in my system. As far as I know, there’s mod\_fastcgi.so  
> only.

I have read this in the rails wiki were they say to use the dll (i  
don’t know the motivation)  
[http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP](http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP)

I have tried also with mod\_fastcgi.so, but I have the same error.

Thanks so much for the help.  
–Reis

---

<div class="post-metadata">

**Author:** ![reis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@reis](https://www.ruby-forum.com/u/reis)\
**Post date:** [February 2, 2006, 12:44am UTC](https://www.ruby-forum.com/t/apache-2-2-and-mod-fastcgi/100118/4 "2006-02-02T00:44:48Z")

</div>

I just recalled now. I actually got the FastCGI component for Apache  
from this site

[http://rubyforge.org/frs/?group\_id=477](http://rubyforge.org/frs/?group_id=477)

I learned about this from reading this how-to

> **[Electric Visions - A Computer Games Company](https://electricvisions.com/rails.html)**
>
> Online presence of Electric Visions Ltd. A Computer Games Company

No patching was required on my part. I just installed, and it worked.
