I’ve been banging my head against the following for about 8 hours now,
and have exhausted my web research options:
/usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi:21:in
`require’: no such file to load –
/usr/home/matthew.feadler/rails/avclfc/public/…/config/environment
(LoadError)
from
/usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi:21
2006-05-11 04:21:12: (mod_fastcgi.c.1048) the fastcgi-backend
/usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi failed to
start:
2006-05-11 04:21:12: (mod_fastcgi.c.1052) child exited with status 1
/usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi
–SNIP–
2006-05-11 04:21:12: (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed.
2006-05-11 04:21:12: (server.c.834) Configuration of plugins failed.
Going down.
no such file to load –
/usr/home/matthew.feadler/rails/avclfc/public/…/config/environment
(LoadError)
My app works beautifully via WebRICK, both in Development and Production
modes.
My Lighty fcgi config is as follows:
fastcgi.server = ( “.fcgi” =>
( “AVCNotes” =>
(
“min-procs” => 1,
“max-procs” => 5,
“socket” => “/tmp/rails.socket”,
“bin-path” =>
“/usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi”,
“bin-environment” => ( “RAILS_ENV” => “production” )
)
)
)
I’ve tried this both with and without the
ENV[‘RAILS_ENV’] ||= ‘production’
line in environment.rb.
It may be pertinent that I’m using Lighty now because I was originally
having fcgi issues with Apache, and suspected Apache was the culprit.
Given subsequent events, I was likely wrong; but apart from this issue
I’ve grown to like Lighty, and so will be sticking with it.
Thanks in advance,
-ELf