Forum: Ruby on Rails FastCgiExternalServer vs. static/dynamic

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.
Jim N. (Guest)
on 2006-02-03 21:54
(Received via mailing list)
I'm trying to switch to the "external" fcgi method.

In httpd.conf, this works:
FastCgiServer "/tmp/rubystuff/testapp/public/dispatch.fcgi"
-idle-timeout 20 -processes 4
FastCgiConfig -maxClassProcesses 2 -maxProcesses 2 -minProcesses 1
-processSlack 1

This fails with an error (the public/500.html page is returned):
FastCgiExternalServer   "/tmp/rubystuff/testapp/public/dispatch.fcgi"
-idle-timeout 20 -host localhost:19999

For the external, I am also starting
$ cgi-fcgi -start -connect localhost:19999
/tmp/rubystuff/testapp/public/dispatch.fcgi 2

But there are no other changes to the configs.

Frthermore,
$ ps ax  | grep fcgi
  6749 pts/0    S      0:03 /usr/bin/ruby
/tmp/rubystuff/testapp/public/dispatch.fcgi
  6750 pts/0    S      0:03 /usr/bin/ruby
/tmp/rubystuff/testapp/public/dispatch.fcgi
  7097 pts/1    S+     0:00 /usr/bin/vim ./public/dispatch.fcgi
  7166 ?        S      0:00 /usr/sbin/fcgi- -k start

And,
$ netstat -an | grep 19999
tcp        0      0 127.0.0.1:19999             0.0.0.0:*
     LISTEN


Could anyone suggest a possible remedy?

Thanks very much,
Jim
This topic is locked and can not be replied to.