Re: FastCGI with Ruby (and Perl) failing
Sam Vilain <sam-s9IUA/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Dennis Sutch wrote: > Looks like the ruby script is printing to the error socket... does the > Ruby "hello, world" fcgi work for you? > I've tried the minimal cgi "Hello, world" script under fcgi, as well as > using print statements. Both of these produce the same results, as well > as a stripped down version of the script that I originally posted. > I've even tried sending output to STDOUT, but it also ends up in the > error log. It is quite strange. Technically it would need to go to STDIN, the passed FastCGI socket. But you couldn't just write to it directly, anyway - it needs to be the FastCGI binary protocol. The FCGI gem should be setting that up for you, sadly as I'm not a ruby person I can't help you further. But the fact that the supplied hello world does the same thing, seems to be a strong hint it's not the program, doesn't it? As always, I recommend using the external FastCGI mode as my experience has been that it's a lot easier to debug and secure than dynamic operation, with the mild inconvenience of having to make sure an extra component is running. Sam. ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/