# Rails is slow on Apache!

**URL:** <https://www.ruby-forum.com/t/rails-is-slow-on-apache/51562>\
**Category:** Rails\
**Created:** [January 3, 2006, 8:25am UTC](https://www.ruby-forum.com/t/rails-is-slow-on-apache/51562 "2006-01-03T08:25:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vivek](https://www.ruby-forum.com/u/vivek)\
**Post date:** [January 3, 2006, 8:25am UTC](https://www.ruby-forum.com/t/rails-is-slow-on-apache/51562/1 "2006-01-03T08:25:52Z")

</div>

Hi ,  
I have rails running on my development machine. I have installed  
mod\_ruby  
and set up the httpd.conf file to add handlers for .rb files. But the  
speed  
I get is still slow compared to webrick which is blazingly fast.  
I have 2 questions

1. How do I determine if mod\_ruby is loaded and is being used to run my  
ruby  
scripts ?
2. Which of these fcgi /mod\_ruby is faster ?  
Thanks  
vivek

---

<div class="post-metadata">

**Author:** ![vivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vivek](https://www.ruby-forum.com/u/vivek)\
**Post date:** [January 3, 2006, 9:32am UTC](https://www.ruby-forum.com/t/rails-is-slow-on-apache/51562/2 "2006-01-03T09:32:59Z")

</div>

Am Dienstag, den 03.01.2006, 12:24 +0530 schrieb Vivek K.:

> vivek

1. Don’t know, but mod\_ruby is no choice if you want a fast responding  
app, at all.

2. See 1.

If you have a Debian System, you may want to follow my quick HowTo to  
setup Fcgi.

[http://blog.inlet-media.de/the-perfect-ruby-on-rails-with-apache2-and-fastcgi-setup-on-debian-sarge](http://blog.inlet-media.de/the-perfect-ruby-on-rails-with-apache2-and-fastcgi-setup-on-debian-sarge)

---

<div class="post-metadata">

**Author:** ![vivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vivek](https://www.ruby-forum.com/u/vivek)\
**Post date:** [January 3, 2006, 11:55am UTC](https://www.ruby-forum.com/t/rails-is-slow-on-apache/51562/3 "2006-01-03T11:55:23Z")

</div>

Vivek,

Not to confuse you but here is another good looking debian way, with  
apache2  
and lighttpd and scgi. (I wrote looking because I want to pursue it  
myself,  
but haven’t yet). Links about the latter two:

[http://www.zedshaw.com/projects/scgi\_rails/index.html](http://www.zedshaw.com/projects/scgi_rails/index.html)  
[http://brainspl.at/rails\_stack.html](http://brainspl.at/rails_stack.html)

I’m a hoster and very fond of apache2. Since I use a lot of apache’s  
features  
I’m not able (and probably willing) to completely replace (read kick  
out)  
apache2. The plan is to see how a proxy works. That way rails apps are  
redirected to an internal higher prot number, and I get to keep apache  
running as is.

An finding you might have are welcome … 🙂

Regards,

Gerard.

On Tuesday 03 January 2006 07:54, Vivek K. tried to type something  
like:

> Hi ,  
> I have rails running on my development machine. I have installed mod\_ruby  
> and set up the httpd.conf file to add handlers for .rb files. But the speed  
> I get is still slow compared to webrick which is blazingly fast.  
> I have 2 questions
> 
> 1. How do I determine if mod\_ruby is loaded and is being used to run my  
> ruby scripts ?
> 2. Which of these fcgi /mod\_ruby is faster ?  
> Thanks  
> vivek

–  
“Who cares if it doesn’t do anything? It was made with our new  
Triple-Iso-Bifurcated-Krypton-Gate-MOS process …”

My $Grtz =~ Gerard;  
~  
:wq!
