# Rails 3.0 + Lighttpd + FCGI = RAGE

**URL:** <https://www.ruby-forum.com/t/rails-3-0-lighttpd-fcgi-rage/191100>\
**Category:** Rails\
**Created:** [July 5, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/rails-3-0-lighttpd-fcgi-rage/191100 "2010-07-05T15:49:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maccy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Maccy](https://www.ruby-forum.com/u/Maccy)\
**Post date:** [July 5, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/rails-3-0-lighttpd-fcgi-rage/191100/1 "2010-07-05T15:49:48Z")

</div>

Hi all hopefully someone has already gone through my pain.  
Firstly the setup. I am running Lighttpd(latest) + FastCGI + Rails  
2.3.8 and it works brilliantly and very fast.

When trying the deploy the Rails 3.0 beta in the same fashion the  
fastcgi processes start and then crash 5 seconds later. The dispatcher  
command in rails 3 I know is removed so I made my own dispatchers  
looking closely at the others from my rails 2 apps. it just shows the  
dispatch.fcgi process as

PLEASE help!

Below is my lighty config. It also for some reason even though I have  
specified 1 process max it always spawns 4.

$HTTP[“host”] =~ “stuff” {  
server.document-root = “/var/www/stuff/public”  
server.errorlog = “/var/log/lighttpd/stuff.error.log”  
accesslog.filename = “/var/log/lighttpd/stuff.access.log”  
server.error-handler-404 = “/dispatch.fcgi”  
fastcgi.server = ( “dispatch.fcgi” =\>  
((  
“socket” =\> “/var/www/stuff/tmp/stuff.socket”,  
“bin-path” =\> “/var/www/stuff/public/dispatch.fcgi”,  
“min-procs” =\> 1,  
“max\_procs” =\> 1  
))  
)  
}

---

<div class="post-metadata">

**Author:** ![Maccy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Maccy](https://www.ruby-forum.com/u/Maccy)\
**Post date:** [July 6, 2010, 1:43pm UTC](https://www.ruby-forum.com/t/rails-3-0-lighttpd-fcgi-rage/191100/2 "2010-07-06T13:43:31Z")

</div>

Assuming then I would need to use apache. Does passenger work with the  
mpm-worker module?

---

<div class="post-metadata">

**Author:** ![Maccy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Maccy](https://www.ruby-forum.com/u/Maccy)\
**Post date:** [July 5, 2010, 8:53pm UTC](https://www.ruby-forum.com/t/rails-3-0-lighttpd-fcgi-rage/191100/3 "2010-07-05T20:53:09Z")

</div>

Maccy wrote:

> Hi allï¿½ hopefully someone has already gone through my pain.  
> Firstly the setup.ï¿½ I am running Lighttpd(latest) + FastCGI + Rails  
> 2.3.8 and it works brilliantly and very fast.  
> ï¿½  
> When trying the deploy the Rails 3.0 beta in the same fashion the  
> fastcgi processes start and then crash 5 seconds later. The dispatcher  
> command in rails 3 I know is removed so I made my own dispatchers  
> looking closely at the others from my rails 2 apps.ï¿½ it just shows the  
> dispatch.fcgi process as
> 
> PLEASE help!

FCGI is obsolescent, if not entirely obsolete. Just use Passenger and  
have done with it.

–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

Sent from my iPhone

---

<div class="post-metadata">

**Author:** ![Maccy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Maccy](https://www.ruby-forum.com/u/Maccy)\
**Post date:** [July 6, 2010, 8:52pm UTC](https://www.ruby-forum.com/t/rails-3-0-lighttpd-fcgi-rage/191100/4 "2010-07-06T20:52:42Z")

</div>

Maccy wrote:

> Assuming then I would need to use apache.

Or Nginx. Passenger works with either.

> Does passenger work with the  
> mpm-worker module?

I don’t recall, but I believe that got discussed on the list recently.  
Search the archives.

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

Sent from my iPhone
