I am trying to start lighttpd 1.4.11 with ROR 1.1.6 but I get this error
message every time, I use lighttpd.conf that was provided by ROR in
config/ directory:
[root@localhost ~]# 2006-09-06 03:07:46: (mod_fastcgi.c.1048) the
fastcgi-backend
/home/administrator/py/PythonTestingFramework/lib/pyton_website/public/dispatch.fcgi
failed to start:
2006-09-06 03:07:46: (mod_fastcgi.c.1052) child exited with status 0
/home/administrator/py/PythonTestingFramework/lib/pyton_website/public/dispatch.fcgi
2006-09-06 03:07:46: (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#preparing-php-as-a-fastcgi-program
2006-09-06 03:07:46: (mod_fastcgi.c.1060) If this is PHP on Gentoo add
fastcgi to the USE flags
2006-09-06 03:07:46: (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed.
2006-09-06 03:07:46: (server.c.834) Configuration of plugins failed.
Going down.
Running ruby public/dispatch.fcgi results in this:
Status: 500 Internal Server Error
Content-Type: text/html
Application error (Apache)
Change this error message for exceptions thrown outside of an
action (like in Dispatcher setups or broken Ruby code) in
public/500.html
When I use webrick everything works fine.
I can’t figure out what’s worng with my setup.
Thanks in advance,
Mike M.
On 5 Sep 2006, at 22:13, Mike M. wrote:
I am trying to start lighttpd 1.4.11 with ROR 1.1.6 but I get this
error
message every time, I use lighttpd.conf that was provided by ROR in
config/ directory:
I can’t remember the precise error message that you’d get, but you do
need to make sure that dispatch.fcgi is executable, and that the
first line points to wherever you’ve actually installed ruby. Can you
run ./public/dispatch.fcgi from the command line?
Ben
–
Ben B. - Director
Airsource Ltd
Tel: 01223 708370 / 07786 916043
Ben B. wrote in post #135180:
On 5 Sep 2006, at 22:13, Mike M. wrote:
I am trying to start lighttpd 1.4.11 with ROR 1.1.6 but I get this
error
message every time, I use lighttpd.conf that was provided by ROR in
config/ directory:
I can’t remember the precise error message that you’d get, but you do
need to make sure that dispatch.fcgi is executable, and that the
first line points to wherever you’ve actually installed ruby. Can you
run ./public/dispatch.fcgi from the command line?
Ben
–
Ben B. - Director
Airsource Ltd
Tel: 01223 708370 / 07786 916043
Hello.when I go to “myapp/public/” and “./dispatch”, I got the errors as
follow:
home/qyx/.rvm/gems/ruby-1.9.2-p290/gems/require_all-1.2.1/lib/require_all.rb:80:in
rescue in require_all': no such file to load -- lib/usr/data_process/*.rb (LoadError) from /home/qyx/.rvm/gems/ruby-1.9.2-p290/gems/require_all-1.2.1/lib/require_all.rb:57:in
require_all’
from /home/qyx/www/cl/config/application.rb:8:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:in
require’
from internal:lib/rubygems/custom_require:29:in require' from /home/qyx/www/cl/config/environment.rb:3:in
<top (required)>’
from ./rails3_fcgi.fcgi:3:in require_relative' from ./rails3_fcgi.fcgi:3:in
’
How to fix it ?
Make sure public/dispatch.fcgi has code like the following
#!/usr/local/rvm/rubies/ruby-1.8.7-p374/bin/ruby
require File.dirname(FILE) + “/…/config/environment”
require ‘fcgi_handler’
RailsFCGIHandler.process!
At some point accidentally the file content was cleared and spend some time to fix it.