# RoR Apache 2.2 production environment?

**URL:** <https://www.ruby-forum.com/t/ror-apache-2-2-production-environment/56380>\
**Category:** Ruby\
**Created:** [March 30, 2006, 7:05pm UTC](https://www.ruby-forum.com/t/ror-apache-2-2-production-environment/56380 "2006-03-30T19:05:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![news.sonic.net](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e56c9b/32.png) [@news.sonic.net](https://www.ruby-forum.com/u/news.sonic.net)\
**Post date:** [March 30, 2006, 7:05pm UTC](https://www.ruby-forum.com/t/ror-apache-2-2-production-environment/56380/1 "2006-03-30T19:05:04Z")

</div>

As a mod\_perl developer, I have been looking into Ruby/Rails lately.

I am a little confused as to what people are using for a production  
webserver environment.

From what I understand, WEBBrick is an easy to use development  
environment  
but not really robust enough for production use.

lighthttpd is fast but not as full featured or stable as apache.

mod\_fastcgi is depricated for Apache 2.2 and not maintained.

Apache cgi seems to be the stable option, and ok for development, but I  
much  
prefer having a persistant interpreter - especially since Rails seems to  
have a lot of files to open on a request. I have a massive mod\_perl  
site,  
and nearly drove the disk into the ground by turning on Apache Reload  
All, I  
had forgotten how much mod\_perl had been holding up my server farm!

So I guess the two remaining options are mod\_fcgid and mod\_proxy\_fcgid.

I tried mod\_fcgid but couldnt get it to work. I got mod\_fcgid to compile  
and  
install with a patch for Apache 2.2, but when I test a cgi with it, it  
404’s  
yet according to Apache’s access and error logs the request was  
successful!  
(!!!??)

Also, I couldnt find any documentation about anything special you need  
to do  
to the CGI to make mod\_fcgi or mod\_fastcgi work - I noticed Perl has a  
FCGI  
module - is that required? And does Ruby have an equivilent?

I havent tried mod\_proxy\_fcgid yet.

I would appreciate all input from anyone who is working with production  
rails, and especially anyone who has mod\_fcgid or mod\_proxy\_fcgid  
working in  
Apache 2.2!

I cant find a lot of information about mod\_ruby - what state is this  
project  
in, and where can I find good documentation?

Thanks Ruby peeps!

---

<div class="post-metadata">

**Author:** ![news.sonic.net](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e56c9b/32.png) [@news.sonic.net](https://www.ruby-forum.com/u/news.sonic.net)\
**Post date:** [March 30, 2006, 7:32pm UTC](https://www.ruby-forum.com/t/ror-apache-2-2-production-environment/56380/2 "2006-03-30T19:32:43Z")

</div>

[news.sonic.net](http://news.sonic.net) wrote:

> As a mod\_perl developer, I have been looking into Ruby/Rails lately.
> 
> I am a little confused as to what people are using for a production  
> webserver environment.

I’ve been running Nitro and Rails apps with SCGI + Apache2 with good  
results. Worth looking into.

If you are in need of more detailed help on getting your Rails app  
running, you will get better, faster help on the Rails mailing list.

[lists.rubyonrails.org](http://lists.rubyonrails.org)

–  
James B.

[http://www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
[Ruby Code & Style](http://www.artima.com/rubycs/) - The Journal By & For Rubyists  
[http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
[http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys  
[http://www.30secondrule.com](http://www.30secondrule.com) - Building Better Tools
