# RoR, Apache 2, FastCGI

**URL:** <https://www.ruby-forum.com/t/ror-apache-2-fastcgi/53590>\
**Category:** Rails\
**Created:** [February 10, 2006, 8:23pm UTC](https://www.ruby-forum.com/t/ror-apache-2-fastcgi/53590 "2006-02-10T20:23:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BuntinS\_SethSKATE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@BuntinS\_SethSKATE](https://www.ruby-forum.com/u/BuntinS_SethSKATE)\
**Post date:** [February 10, 2006, 8:23pm UTC](https://www.ruby-forum.com/t/ror-apache-2-fastcgi/53590/1 "2006-02-10T20:23:12Z")

</div>

I have everything working and I am really excited about learning Ruby  
and Rails. But whenever I access my different defs in my controller it  
takes ~ 5 seconds before they are returned. I am working locally so I  
don’t know what the issue is.

System Details:

Windows XP  
Apache 2.0.55  
Ruby 1.8.2  
Rails 1.0

Seth B.

Web Resources Coordinator

Kentucky Academy of Technology Education

Murray State University

---

<div class="post-metadata">

**Author:** ![BuntinS\_SethSKATE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@BuntinS\_SethSKATE](https://www.ruby-forum.com/u/BuntinS_SethSKATE)\
**Post date:** [February 10, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/ror-apache-2-fastcgi/53590/2 "2006-02-10T20:33:50Z")

</div>

On Feb 10, 2006, at 11:23 AM, Buntin, Seth - KATE wrote:

> I have everything working and I am really excited about learning  
> Ruby and Rails. But whenever I access my different defs in my  
> controller it takes ~ 5 seconds before they are returned. I am  
> working locally so I don’t know what the issue is.
> 
> Seth B.

Seth, odds are good that your requests aren’t being processed by  
FCGI. Add a little logging to dispatch.cgi and dispatch.fcgi to see  
which is called. If that is the problem, check that your .htaccess  
file is set up for FCGI.

Scott

---

<div class="post-metadata">

**Author:** ![BuntinS\_SethSKATE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@BuntinS\_SethSKATE](https://www.ruby-forum.com/u/BuntinS_SethSKATE)\
**Post date:** [February 10, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/ror-apache-2-fastcgi/53590/3 "2006-02-10T20:37:11Z")

</div>

Seth ~

Keep in mind that development mode will be much slower than production  
as  
everything is reloaded when the page is rendered. I have also found  
that  
after a lot of calls to the app, Apache starts to bloat. Restarting  
Apache  
will speed the app back up. I don’t use windows / apache in production,  
just for development.

~ Ben

---

<div class="post-metadata">

**Author:** ![BuntinS\_SethSKATE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@BuntinS\_SethSKATE](https://www.ruby-forum.com/u/BuntinS_SethSKATE)\
**Post date:** [February 11, 2006, 7:01am UTC](https://www.ruby-forum.com/t/ror-apache-2-fastcgi/53590/4 "2006-02-11T07:01:18Z")

</div>

If you’re just learning, why not just use webrick (run “ruby  
script\server” from your  
project root dir)?

b
