Forum: Ruby on Rails Error starting lighttpd

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2006-04-24 12:36
(Received via mailing list)
Hi, I'm getting the following error message when I try to start
lighttpd:

BEGIN ERROR:

$ script/server
=> Booting lighttpd (use 'script/server webrick' to force WEBrick)
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)
2006-04-24 03:29:39: (mod_fastcgi.c.1022) execve failed for:
public/dispatch.fcgi No such file or directory
2006-04-24 03:29:39: (mod_fastcgi.c.1048) the fastcgi-backend
public/dispatch.fcgi failed to start:
2006-04-24 03:29:39: (mod_fastcgi.c.1052) child exited with status 2
public/dispatch.fcgi
2006-04-24 03:29:39: (mod_fastcgi.c.1055) if you try do run PHP as
FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing 'php -v' and it
should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
For more information check
http://www.lighttpd.net/documentation/fastcgi.html...
2006-04-24 03:29:39: (mod_fastcgi.c.1060) If this is PHP on Gentoo add
fastcgi to the USE flags
2006-04-24 03:29:39: (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed.
2006-04-24 03:29:39: (server.c.834) Configuration of plugins failed.
Going down.
Exiting


END ERROR:

Thanks in advance,

-Conrad
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-04-24 13:01
(Received via mailing list)
Conrad Taylor wrote:
> public/dispatch.fcgi No such file or directory
Check that your lighttpd.conf is definitely pointing at your public
directory (remembering that different versions handle relative paths in
different ways), and then check that dispatch.fcgi is set to be
executable.  It's usually one of those two...
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2006-04-24 13:13
(Received via mailing list)
Hi, I just did some checking and it seems that the lighttpd.conf isn't
being generated.  BTW, I'm using Ruby 1.8.4 and Rails 1.1.2.  Thus, I
only have the following files within
the config directory:

boot.rb
database.yml
environment.rb
environments
routes.rb

Is this the correct behavior when you create a new projtect?

Thanks in advance,

-Conrad
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-04-24 13:19
(Received via mailing list)
Conrad Taylor wrote:
>
> Is this the correct behavior when you create a new projtect?
The lighttpd.conf file doesn't get created until you run script/server
the first time.  The fact that you're not seeing it tells me there's
something else wrong, but you should be able to copy the config file
from gems/rails-1.1.2/configs/lighttpd.conf to your config directory to
get past this problem.
424f838c3f6d203fa5e7298ba7d0af59?d=identicon&s=25 Eszter Biro (eszter)
on 2006-04-24 13:25
(Received via mailing list)
Conrad Taylor wrote:
> public/dispatch.fcgi No such file or directory
> 2006-04-24 03:29:39: (mod_fastcgi.c.1060) If this is PHP on Gentoo add
> fastcgi to the USE flags
> 2006-04-24 03:29:39: (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed.
> 2006-04-24 03:29:39: (server.c.834) Configuration of plugins failed.
> Going down.
> Exiting


Try using absolute path to dispatch.fcgi in your config/lighttpd.conf:

fastcgi.server = ( ".fcgi" =>
  ( "localhost" =>
      (
        "min-procs" => 1,
        "max-procs" => 1,
        "socket"    => "log/fcgi.socket",
        "bin-path"  => "Absolute_Path/public/dispatch.fcgi",
        "bin-environment" => ( "RAILS_ENV" => "development" )
      )
  )
)

Eszter
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2006-04-24 13:28
(Received via mailing list)
Hi, I guess when I moved the all the rails projects from ruby.dir to
ruby.dir/rails_apps this may have put the lighttpd.conf out of sync.
Thus, I removed the file and I'm rocking and rolling again.  Thanks
for all you help.  Gotta go and thanks again.

-Conrad
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-04-24 13:38
(Received via mailing list)
Conrad Taylor wrote:
> Hi, I guess when I moved the all the rails projects from ruby.dir to
> ruby.dir/rails_apps this may have put the lighttpd.conf out of sync.
> Thus, I removed the file and I'm rocking and rolling again.  Thanks
> for all you help.  Gotta go and thanks again.
No worries :-)
This topic is locked and can not be replied to.