Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 41063 invoked from network); 15 Mar 2007 22:48:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 22:48:11 -0000 Received: (qmail 57450 invoked by uid 500); 15 Mar 2007 22:48:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 57430 invoked by uid 500); 15 Mar 2007 22:48:09 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 57415 invoked by uid 99); 15 Mar 2007 22:48:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 15:48:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.48.171.29] (HELO netops-testserver-4.corp.sgi.com) (192.48.171.29) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 15:47:57 -0700 Received: from mtv-amer001e--3.americas.sgi.com (unknown [192.26.64.111]) by netops-testserver-4.corp.sgi.com (Postfix) with ESMTP id CA20E61C03 for ; Thu, 15 Mar 2007 14:47:36 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 15 Mar 2007 15:47:36 -0700 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] FastCGI problem Thread-Index: AcdnTx1vRHic8CXnRlq3qs+QEKOoYgAA4hsAAAA+kAA= References: <200703152212.l2FMBuaV027030@unreal.eroded.org> From: "Mark Lavi" To: X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] FastCGI problem I see I probably replied without reading everything you've done, my assertions may not be correct if you've not gotten anything to work through Apache. You can try increasing the amount/level of error logging in Apache. --Mark=20 Mark Lavi, Enterprise Web Management Team @ SGI mailto:mlavi@sgi.com || phone:+1-650-933-7707 -----Original Message----- From: Mark Lavi [mailto:mlavi@sgi.com]=20 Sent: Thursday, March 15, 2007 3:44 PM To: users@httpd.apache.org Subject: RE: [users@httpd] FastCGI problem Caveat: I have no direct experience with Ruby, Plesk, or FastCGI. I do think that by verifying that your example RoR app works via Apache and then observing that the other database RoR app does not, you've isolated the problem to the latter application! "Premature end of script headers" is what I've seen whenever a PERL CGI crashes or generates an error condition that doesn't let it output anything (such as a syntax error). At that point, I try running the CGI directly from the command line to partially simulate what Apache tries to execute, e.g.: perl whateverproblem.cgi -- but this is not always identical to what Apache encounters, it's just another step for troubleshooting. I have no idea if you could do the same for Ruby and your app. Hope this helps, --Mark=20 Mark Lavi, Enterprise Web Management Team @ SGI mailto:mlavi@sgi.com || phone:+1-650-933-7707 -----Original Message----- From: Dragon [mailto:dragon@crimson-dragon.com]=20 Sent: Thursday, March 15, 2007 3:12 PM To: users@httpd.apache.org Subject: [users@httpd] FastCGI problem Hello all, I am attempting to help a non-profit organization setup a new server=20 and migrate over their old stuff. One of the things they want to use=20 is a database application using Ruby on Rails. This system is an up to date FC4 distribution running Plesk 8.1=20 control panel, instead of the "standard" FastCGI module, they use one=20 called mod_fcgid that is supposed to play better with Plesk. Plesk=20 also says that enabling RoR is a simple matter of enabling FastCGI=20 support, all I can say to that is it isn't as simple as they say.=20 Just do a Google on "Plesk Ruby Rails" and you will see how much=20 trouble people have gone through trying to get this to work in that=20 environment (but I digress...) I have been having a hell of a time attempting to get this to work=20 and have come down to the point where I believe I have diagnosed the=20 problem to be that both mod_fcgid and mod_cgi choke and exit giving=20 an error that says "Premature end of script headers" I have verified that Ruby and Rails are working using the test=20 browser they provide, the application functions fine when I do that.=20 When attempting to use Apache to serve the application via either=20 FastCGI or regular CGI, it simply will not work. This is not only=20 true of this Ruby-based application but also for any script or=20 program I attempt to execute via FastCGI or regular CGI (Perl,=20 binary, shell script, etc.). I do get errors in my httpd error log when using FastCGI but I have=20 no idea what they are really telling me. The underlying cause of the=20 error is not given in the errors. Here is what I typically get when I=20 try to access the script: [Thu Mar 15 14:43:20 2007] [notice] mod_fcgid: server=20 /var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959) started [Thu Mar 15 14:43:21 2007] [notice] mod_fcgid: server=20 /var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960) started [Thu Mar 15 14:43:22 2007] [notice] mod_fcgid: server=20 /var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963) started [Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process=20 /var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963) exit(communication error), terminated by calling exit(), return code: 120 [Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process=20 /var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960) exit(server exited), terminated by calling exit(), return code: 120 [Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process=20 /var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959) exit(server exited), terminated by calling exit(), return code: 120 If I use regular CGI, all I get is the premature end of script=20 headers error without any further information. I am at a loss on how to proceed from here. If anyone can help me figure out how to configure this system to get=20 CGI and FastCGI working, I would greatly appreciate it. I have been=20 working on this for nearly a week and it is making me crazy. Dragon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org