I am trying to get Rails running through Lighttpd, on a Suse 10 box running Rails 1.0.0 and Lighttpd 1.4.10 I followed the instructions in the wiki (http://wiki.rubyonrails.com/rails/pages/Lighttpd) but keep getting the same error: linux:/etc/lighttpd # lighttpd -f lighttpd.conf 2006-02-27 12:32:17: (mod_fastcgi.c.997) execve failed for: /home/nathan/rails/notifications/public/dispatch.fcgi No such file or directory linux:/etc/lighttpd # 2006-02-27 12:32:17: (mod_fastcgi.c.1023) the fastcgi-backend /home/nathan/rails/notifications/public/dispatch.fcgi failed to start: 2006-02-27 12:32:17: (mod_fastcgi.c.1027) child exited with status 2 /home/nathan/rails/notifications/public/dispatch.fcgi 2006-02-27 12:32:17: (mod_fastcgi.c.1030) 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-fa stcgi-program 2006-02-27 12:32:17: (mod_fastcgi.c.1035) If this is PHP on Gentoo add fastcgi to the USE flags 2006-02-27 12:32:17: (mod_fastcgi.c.1325) [ERROR]: spawning fcgi failed. 2006-02-27 12:32:17: (server.c.834) Configuration of plugins failed. Going down. This is my lighttpd.conf file: #-------------------------- server.port = 80 server.modules = ( "mod_rewrite", "mod_fastcgi", "mod_redirect" ) server.document-root = "/home/nathan/rails/notifications/public" fastcgi.server = (".fcgi" => ( "railsapp" => ( "min-procs" => 1, "max-procs" => 5, "socket" => "/tmp/ruby-railsapp.fcgi", "bin-path" => "/home/nathan/rails/notifications/public/dispatch.fcgi" ) )) server.indexfiles = ( "index.html" ) server.error-handler-404 = "/dispatch.fcgi" #------------------------------ Dispatch.fcgi is *definitely* in the /public directory. Can anyone help out and point me in the right direction? Thanks! Nathan Mealey Operations Director Northeast Region Pilgrim IT, LLC NORTHEAST OFFICE 1 Short Street Northampton, MA 01060 TEL 866.434.4976 FAX 413.587.0572 NOTICE: This email and any attachments are intended only for the addressee and may contain information that is confidential and/or legally privileged. If you are not the intended recipient or have received this email in error, please notify the sender by return email or by calling 866-434-4976. You should then delete the message and any attachments or copies. If you are not the intended recipient, you are prohibited from retaining, distributing, disclosing or using any information contained herein. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060227/1e19c128/attachment.html
On Mon, Feb 27, 2006 at 12:32:29PM -0500, Nathan Mealey wrote:> I am trying to get Rails running through Lighttpd, on a Suse 10 box > running Rails 1.0.0 and Lighttpd 1.4.10 > > I followed the instructions in the wiki > (http://wiki.rubyonrails.com/rails/pages/Lighttpd) but keep getting the > same error: > > linux:/etc/lighttpd # lighttpd -f lighttpd.conf > > 2006-02-27 12:32:17: (mod_fastcgi.c.997) execve failed for: > /home/nathan/rails/notifications/public/dispatch.fcgi No such file or > directoryTry running this path manually on the command line. Ten bucks to a rusty penny dispatch.fcgi either isn''t there or the shebang points to a Ruby interpreter that doesn''t exist. - Matt -- A byte walks into a bar and orders a pint. Bartender asks him "What''s wrong?" The byte says "Parity error." Bartender nods and says "Yeah, I thought you looked a bit off."
Thanks for the info, the shebang fix did the trick. Lighttpd starts, but Rails pages do not load. When I go to the URL http://localhost/notification/ nothing happens. Lighttpd spins its wheels for a few moments, and then silently fails. No error messages in server.log or fastcgi.crash.log, no output to the screen, nothing. All of the shebang lines throughout the app have been fixed. Could this be a permissions problem? And where could it be localized to? What else could cause Lighttpd to silently die like this? Thanks! Nathan Mealey Operations Director Northeast Region Pilgrim IT, LLC NORTHEAST OFFICE 1 Short Street Northampton, MA 01060 TEL 866.434.4976 FAX 413.587.0572 NOTICE: This email and any attachments are intended only for the addressee and may contain information that is confidential and/or legally privileged. If you are not the intended recipient or have received this email in error, please notify the sender by return email or by calling 866-434-4976. You should then delete the message and any attachments or copies. If you are not the intended recipient, you are prohibited from retaining, distributing, disclosing or using any information contained herein. -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Matthew Palmer Sent: Monday, February 27, 2006 2:24 PM To: rails@lists.rubyonrails.org Subject: [Rails] Re: Rails via Lighttpd On Mon, Feb 27, 2006 at 12:32:29PM -0500, Nathan Mealey wrote:> I am trying to get Rails running through Lighttpd, on a Suse 10 box > running Rails 1.0.0 and Lighttpd 1.4.10 > > I followed the instructions in the wiki > (http://wiki.rubyonrails.com/rails/pages/Lighttpd) but keep gettingthe> same error: > > linux:/etc/lighttpd # lighttpd -f lighttpd.conf > > 2006-02-27 12:32:17: (mod_fastcgi.c.997) execve failed for: > /home/nathan/rails/notifications/public/dispatch.fcgi No such file or > directoryTry running this path manually on the command line. Ten bucks to a rusty penny dispatch.fcgi either isn''t there or the shebang points to a Ruby interpreter that doesn''t exist. - Matt -- A byte walks into a bar and orders a pint. Bartender asks him "What''s wrong?" The byte says "Parity error." Bartender nods and says "Yeah, I thought you looked a bit off." _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
Clear out your /tmp/ruby-sess* files when you get the blank screen like that. -Ezra On Feb 27, 2006, at 12:15 PM, Nathan Mealey wrote:> Thanks for the info, the shebang fix did the trick. > > Lighttpd starts, but Rails pages do not load. When I go to the URL > http://localhost/notification/ nothing happens. > > Lighttpd spins its wheels for a few moments, and then silently > fails. No > error messages in server.log or fastcgi.crash.log, no output to the > screen, nothing. > > All of the shebang lines throughout the app have been fixed. > > Could this be a permissions problem? And where could it be > localized to? > What else could cause Lighttpd to silently die like this? > > Thanks! > > > Nathan Mealey > > Operations Director > > Northeast Region > > Pilgrim IT, LLC > > > > NORTHEAST OFFICE > > 1 Short Street > > Northampton, MA 01060 > > TEL 866.434.4976 > > FAX 413.587.0572 > > > > NOTICE: This email and any attachments are intended only for the > addressee and may contain information that is confidential and/or > legally privileged. If you are not the intended recipient or have > received this email in error, please notify the sender by return email > or by calling 866-434-4976. You should then delete the message and any > attachments or copies. If you are not the intended recipient, you are > prohibited from retaining, distributing, disclosing or using any > information contained herein. > > > -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Matthew > Palmer > Sent: Monday, February 27, 2006 2:24 PM > To: rails@lists.rubyonrails.org > Subject: [Rails] Re: Rails via Lighttpd > > On Mon, Feb 27, 2006 at 12:32:29PM -0500, Nathan Mealey wrote: >> I am trying to get Rails running through Lighttpd, on a Suse 10 box >> running Rails 1.0.0 and Lighttpd 1.4.10 >> >> I followed the instructions in the wiki >> (http://wiki.rubyonrails.com/rails/pages/Lighttpd) but keep getting > the >> same error: >> >> linux:/etc/lighttpd # lighttpd -f lighttpd.conf >> >> 2006-02-27 12:32:17: (mod_fastcgi.c.997) execve failed for: >> /home/nathan/rails/notifications/public/dispatch.fcgi No such file or >> directory > > Try running this path manually on the command line. Ten bucks to a > rusty > penny dispatch.fcgi either isn''t there or the shebang points to a Ruby > interpreter that doesn''t exist. > > - Matt > > > -- > A byte walks into a bar and orders a pint. Bartender asks him "What''s > wrong?" The byte says "Parity error." Bartender nods and says "Yeah, I > thought you looked a bit off." > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra@yakima-herald.com