I finally got around to installing lighttpd on my mac for dev work, followed the instructions at http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger When I go into my rails app and type "./script/server" I get the following errors: baggio:~/work/teore pergesu$ ./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 (requires absolute paths in config/lighttpd.conf) => Ctrl-C to shutdown server (see config/lighttpd.conf for options) 2006-01-19 06:52:05: (mod_fastcgi.c.989) execve failed for: public/dispatch.fcgi No such file or directory 2006-01-19 06:52:05: (mod_fastcgi.c.1015) the fastcgi-backend public/dispatch.fcgi failed to start: 2006-01-19 06:52:05: (mod_fastcgi.c.1019) child exited with status 2 public/dispatch.fcgi 2006-01-19 06:52:05: (mod_fastcgi.c.1022) 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#preparing-php-as-a-fastcgi-program 2006-01-19 06:52:05: (mod_fastcgi.c.1027) If this is PHP on Gentoo add fastcgi to the USE flags 2006-01-19 06:52:05: (mod_fastcgi.c.1314) [ERROR]: spawning fcgi failed. 2006-01-19 06:52:05: (server.c.702) Configuration of plugins failed. Going down. webrick still runs fine...public/dispatch.fcgi definitely exists, as does the interpretter specified in the shebang (/usr/local/bin/ruby). Any clue why this is complaining? Pat
I think the problem lies in your lighttpd.conf. Did rails copy in a script the first time you ran it? or did you create it on your own? ~ Ben On 1/19/06, Pat Maddox <pergesu@gmail.com> wrote:> > I finally got around to installing lighttpd on my mac for dev work, > followed the instructions at > http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger > > When I go into my rails app and type "./script/server" I get the > following errors: > baggio:~/work/teore pergesu$ ./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 (requires absolute paths in > config/lighttpd.conf) > => Ctrl-C to shutdown server (see config/lighttpd.conf for options) > 2006-01-19 06:52:05: (mod_fastcgi.c.989) execve failed for: > public/dispatch.fcgi No such file or directory > 2006-01-19 06:52:05: (mod_fastcgi.c.1015) the fastcgi-backend > public/dispatch.fcgi failed to start: > 2006-01-19 06:52:05: (mod_fastcgi.c.1019) child exited with status 2 > public/dispatch.fcgi > 2006-01-19 06:52:05: (mod_fastcgi.c.1022) 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#preparing-php-as-a-fastcgi-program > 2006-01-19 06:52:05: (mod_fastcgi.c.1027) If this is PHP on Gentoo add > fastcgi to the USE flags > 2006-01-19 06:52:05: (mod_fastcgi.c.1314) [ERROR]: spawning fcgi failed. > 2006-01-19 06:52:05: (server.c.702) Configuration of plugins failed. Going > down. > > > webrick still runs fine...public/dispatch.fcgi definitely exists, as > does the interpretter specified in the shebang (/usr/local/bin/ruby). > Any clue why this is complaining? > > Pat > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Ben Reubenstein benr@x-cr.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060119/f8f90df4/attachment-0001.html
Pat: On Jan 19, 2006, at 5:57 AM, Pat Maddox wrote:> I finally got around to installing lighttpd on my mac for dev work, > followed the instructions at > http://hivelogic.com/articles/2005/12/01/ > ruby_rails_lighttpd_mysql_tigerI solved the problem you''re having by commenting out the FastCGI lines in lighttpd.conf yesterday. Cheers, Hasan Diwan <hasan.diwan@gmail.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060119/643b52e3/PGP.bin
Rails copied it in by itself, I didn''t create/touch it. Pat On 1/19/06, Ben Reubenstien <benr@x-cr.com> wrote:> I think the problem lies in your lighttpd.conf. Did rails copy in a script > the first time you ran it? or did you create it on your own? > > ~ Ben > > > On 1/19/06, Pat Maddox <pergesu@gmail.com> wrote: > > > > I finally got around to installing lighttpd on my mac for dev work, > > followed the instructions at > > > http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger > > > > When I go into my rails app and type "./script/server" I get the > > following errors: > > baggio:~/work/teore pergesu$ ./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 (requires absolute paths in > config/lighttpd.conf) > > => Ctrl-C to shutdown server (see config/lighttpd.conf for options) > > 2006-01-19 06:52:05: (mod_fastcgi.c.989) execve failed for: > > public/dispatch.fcgi No such file or directory > > 2006-01-19 06:52:05: (mod_fastcgi.c.1015) the fastcgi-backend > > public/dispatch.fcgi failed to start: > > 2006-01-19 06:52:05: (mod_fastcgi.c.1019) child exited with status 2 > > public/dispatch.fcgi > > 2006-01-19 06:52:05: (mod_fastcgi.c.1022) 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#preparing-php-as-a-fastcgi-program > > 2006-01-19 06:52:05: (mod_fastcgi.c.1027) If this is PHP on Gentoo add > > fastcgi to the USE flags > > 2006-01-19 06:52:05: (mod_fastcgi.c.1314) [ERROR]: spawning fcgi failed. > > 2006-01-19 06:52:05: (server.c.702) Configuration of plugins failed. Going > down. > > > > > > webrick still runs fine...public/dispatch.fcgi definitely exists, as > > does the interpretter specified in the shebang (/usr/local/bin/ruby). > > Any clue why this is complaining? > > > > Pat > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > Ben Reubenstein > benr@x-cr.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >