# Apache + fastcgi and rails in vendor

**URL:** <https://www.ruby-forum.com/t/apache-fastcgi-and-rails-in-vendor/92983>\
**Category:** Rails\
**Created:** [April 26, 2007, 9:52am UTC](https://www.ruby-forum.com/t/apache-fastcgi-and-rails-in-vendor/92983 "2007-04-26T09:52:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [April 26, 2007, 9:52am UTC](https://www.ruby-forum.com/t/apache-fastcgi-and-rails-in-vendor/92983/1 "2007-04-26T09:52:18Z")

</div>

Hi

I want to run my new shiny rail application with apache. Running my  
application using cgi works but is very slow. So I want to switch to  
fastcgi.

I downloaded and installed mod\_fcgid and have apache running my fcgi  
scripts. Now my problems start ☹

I’m running apache on an ubuntu system. The ubuntu packed for ruby and  
RoR is not the most recent. As I need the most recent rails version  
and I can’t install anything that is not an ubuntu package I currently  
running rails from vendor directory of my application.

My current situation:

- apache is executing my dispatch.fcgi
- dispatch.fcgi is failing on the line with “require ‘fcgi\_handler’”

As I could read on several pages about ruby on rails with fastcgi I  
guess I need fastcgi support for rails.  
I can’t install it via ruby gems at this won’t put it into my vendor  
directory. In fact I’m not even allowed to install ruby gems itself  
(as there is no ubuntu package).

How can I add fcgi support to my RoR installed in vendor?

Thanks for any hint or documentation

Alex

---

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [April 26, 2007, 10:38am UTC](https://www.ruby-forum.com/t/apache-fastcgi-and-rails-in-vendor/92983/2 "2007-04-26T10:38:26Z")

</div>

Hi all

I figured it out on my own.  
I had to install fastcgi library for ruby and everything is working as  
expected.

If someone could explain how everything is working together (ruby,  
rails and gems) this would be helpfull

alex
