# Rails 3.0 + Lighttpd + FCGI = RAGE

**URL:** <https://discuss.rubyonrails.org/t/rails-3-0-lighttpd-fcgi-rage/52751>\
**Category:** rubyonrails-talk\
**Created:** [July 5, 2010, 11:41am UTC](https://discuss.rubyonrails.org/t/rails-3-0-lighttpd-fcgi-rage/52751 "2010-07-05T11:41:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maccy](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Maccy](https://discuss.rubyonrails.org/u/Maccy)\
**Post date:** [July 5, 2010, 11:41am UTC](https://discuss.rubyonrails.org/t/rails-3-0-lighttpd-fcgi-rage/52751/1 "2010-07-05T11:41:35Z")

</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 \<defunct\>

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" { &nbsp;&nbsp;&nbsp;&nbsp;server.document-root = "/var/www/stuff/public" &nbsp;&nbsp;&nbsp;&nbsp;server.errorlog = "/var/log/lighttpd/stuff.error.log" &nbsp;&nbsp;&nbsp;&nbsp;accesslog.filename = "/var/log/lighttpd/stuff.access.log" &nbsp;&nbsp;&nbsp;&nbsp;server.error-handler-404 = "/dispatch.fcgi" &nbsp;&nbsp;&nbsp;&nbsp;fastcgi.server = ( "dispatch.fcgi" =\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"socket" =\> "/var/www/stuff/tmp/stuff.socket", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"bin-path" =\> "/var/www/stuff/public/dispatch.fcgi", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"min-procs" =\> 1, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"max\_procs" =\> 1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)) &nbsp;&nbsp;&nbsp;&nbsp;) }

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [July 5, 2010, 6:53pm UTC](https://discuss.rubyonrails.org/t/rails-3-0-lighttpd-fcgi-rage/52751/2 "2010-07-05T18: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 \<defunct\>
> 
> PLEASE help!

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

---

<div class="post-metadata">

**Author:** ![Maccy](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Maccy](https://discuss.rubyonrails.org/u/Maccy)\
**Post date:** [July 6, 2010, 11:42am UTC](https://discuss.rubyonrails.org/t/rails-3-0-lighttpd-fcgi-rage/52751/3 "2010-07-06T11:42:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [July 6, 2010, 6:52pm UTC](https://discuss.rubyonrails.org/t/rails-3-0-lighttpd-fcgi-rage/52751/4 "2010-07-06T18: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,
