From dev-return-66880-apmail-httpd-dev-archive=httpd.apache.org@httpd.apache.org Thu Nov 12 22:33:12 2009 Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 20130 invoked from network); 12 Nov 2009 22:33:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 22:33:12 -0000 Received: (qmail 41614 invoked by uid 500); 12 Nov 2009 22:33:11 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 41510 invoked by uid 500); 12 Nov 2009 22:33:11 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 41499 invoked by uid 99); 12 Nov 2009 22:33:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 22:33:11 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.252.110.49] (HELO web55803.mail.re3.yahoo.com) (216.252.110.49) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 12 Nov 2009 22:33:06 +0000 Received: (qmail 65856 invoked by uid 60001); 12 Nov 2009 22:32:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1258065165; bh=kxkT1LRoESmuLEC6gohPXcVRooHoI5E0rmB1cEWHIk8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=gv/+oHIeDzEdsDEBY/EMn7AOL1g84V1s12ibwPM2geAMcY3zP7miZ/0dtHoNjX/PzK2nkyAE+v2qtLYyOT4TBvcvCu4BfnZXF1WyA/xO8bsv3E3hpPbi8YszsLmAmRAzBer6ZDGP1pVodgCkMbLOgf/LbcafP3UwBuatuipeR8E= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Mjw1Vuc4N1ouMcJ8rF4YT9saDsSXMqO3gZWGh46x79lguQRw+EBJsQhA8CZv5eEfkkCEIRodDQ05Nvk9Y3bK9eaLIa3DtJrJI8AsdL3kU+r09MGzFbgUHYm2G3iVrujNdES592VH3hrq2J0z1lqAjRwpj/iGx2ARNw90fniT3ls=; Message-ID: <643442.65304.qm@web55803.mail.re3.yahoo.com> X-YMail-OSG: hEhEWksVM1muwciT6m1q2JUvl3j5G7AOUTByUy3TeSfeDCIEXReFGg4G3bF_SxHEuA7cLpHicGuWQkB0OYARdpi3CCcbc4XR6wB5Sk8pPhxXer_i9htZrW4jYds4BCC7CaR7OHwkGImcm1W1KsJpqB.VjHqV2uaUQzLrZV7zCbFKqRMGmwWRl9GGoQRJI_AtfOES7I3IQ9UXsnYt77y2EDFU4yqGpItvYq2_RKNksro52JSe9LZ8MbLZaK6RfPRNApyzFbtPbOvUTpH7aqoi1x80w050QtEggw5sqGjWa9pNo4faDZ8UMulBx_Pj1C321UoxVSEZra5Iv42t04VIv9D75XqjdPjJRSspkErVfKSJvjF3a_t8rAofjovWAQ8RNlJMPLjO42yudxay8K8GOxP.abPSN72qHa2D..rjc97vx_UoVYrpSoIjvi4y3YZCrvSZaDK3KpTB4QVVEpAlUKBz2RHCpOhTRC9wk_qBb9PT5NScpWXjzebcCF7_IKfKvh0IVtTgE349L3SIXbxXAAhszQ5LsLbHttIj Received: from [65.243.23.162] by web55803.mail.re3.yahoo.com via HTTP; Thu, 12 Nov 2009 14:32:45 PST X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.8.100.260964 Date: Thu, 12 Nov 2009 14:32:45 -0800 (PST) From: Brian Kodl Subject: Re: pipe has been ended. : mod_fcgid: get overlap result error To: dev@httpd.apache.org In-Reply-To: <269010.65460.qm@web55804.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-102687579-1258065165=:65304" --0-102687579-1258065165=:65304 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Ps - Is there a=A0debug or trace httpd.conf directive to get more informati= on? --- On Thu, 11/12/09, Brian Kodl wrote: From: Brian Kodl Subject: Re: pipe has been ended. : mod_fcgid: get overlap result error To: dev@httpd.apache.org Date: Thursday, November 12, 2009, 1:00 PM Hi Jeff, =A0 Thanks for your response!=A0 Yes, the path to perl is correct. =A0 If I change the path to a bad location, then the error.log has this differe= nt error: [Thu Nov 12 12:55:48 2009] [error] (OS 3)The system cannot find the path sp= ecified.=A0 : mod_fcgid: can't create process [Thu Nov 12 12:55:48 2009] [warn] (OS 3)The system cannot find the path spe= cified.=A0 : mod_fcgid: spawn process c:/perl/bin2/perl.exe error Here is foo.pl =A0 #!c:/perl/bin/perl.exe use CGI::Fast; while (my $q =3D CGI::Fast->new) { =A0 print("Content-Type: text/plain\n\n"); =A0 foreach $var (sort(keys(%ENV))) { =A0=A0=A0 $val =3D $ENV{$var}; =A0=A0=A0 $val =3D~ s|\n|\\n|g; =A0=A0=A0 $val =3D~ s|"|\\"|g; =A0=A0=A0 print "${var}=3D\"${val}\"\n"; =A0 } } Thanks! Brian --- On Thu, 11/12/09, Jeff Trawick wrote: From: Jeff Trawick Subject: Re: pipe has been ended. : mod_fcgid: get overlap result error To: dev@httpd.apache.org Date: Thursday, November 12, 2009, 12:34 PM On Thu, Nov 12, 2009 at 9:50 AM, Brian Kodl wrote: Hello, =A0 Please help, what am I doing wrong? I can't get the example to work from ht= tp://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html =A0 Thanks!=20 Brian=20 =A0 Error.log contains:=20 [Wed Nov 11 15:57:27 2009] [warn] [client 192.168.21.21] (OS 109)The pipe h= as been ended. : mod_fcgid: get overlap result error=20 [Wed Nov 11 15:57:27 2009] [error] [client 192.168.21.21] Premature end of = script headers: foo.pl=20 =A0 I'd guess this is related to the shebang line processing, and that foo.pl i= sn't getting started. Is the path to perl correct in foo.pl (maybe it should be "#!/perl/bin/perl= ")?=A0 Do you need "ScriptInterpreterSource registry" to tie .pl files to t= he Perl interpreter, ignoring the shebang line? =0A=0A=0A --0-102687579-1258065165=:65304 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Ps - Is there a debug or trace httpd.con= f directive to get more information?

--- On Thu, 11/12/09, Brian = Kodl <bkodl@yahoo.com> wrote:

From: Brian Kodl <bkodl@yahoo.com>
Subje= ct: Re: pipe has been ended. : mod_fcgid: get overlap result error
To: d= ev@httpd.apache.org
Date: Thursday, November 12, 2009, 1:00 PM

Hi Jeff,
 
Thanks for your response!  Yes, the path to perl is correct.
 
If I change the path to a bad location, then the error.log has this di= fferent error:
[Thu Nov 12 12:55:48 2009] [error] (OS 3)The system cannot find the pa= th specified.  : mod_fcgid: can't create process
[Thu Nov 12 12:55:= 48 2009] [warn] (OS 3)The system cannot find the path specified.  : mo= d_fcgid: spawn process c:/perl/bin2/perl.exe error
Here is foo.pl
 
#!c:/perl/bin/perl.exe
use CGI::Fast;
while (my $q =3D CGI::Fast->new) {
  print("Content-Type: t= ext/plain\n\n");
  foreach $var (sort(keys(%ENV))) {
  = ;  $val =3D $ENV{$var};
    $val =3D~ s|\n|\\n|g;    $val =3D~ s|"|\\"|g;
    print "${var= }=3D\"${val}\"\n";
  }
}
Thanks!
Brian

--- On Thu, 11/12/09, Jeff Trawick <trawick@gmail.com>= wrote:

From: Jeff Trawick <trawick@gmail.com>
S= ubject: Re: pipe has been ended. : mod_fcgid: get overlap result error
T= o: dev@httpd.apache.org
Date: Thursday, November 12, 2009, 12:34 PM
<= BR>
On Thu, Nov 12, 2009 at 9:50 AM, Brian Kodl <bkodl@yahoo.com>= wrote:
Hello,
 
Please help, what am I doing wrong? I can't get the example to work fr= om http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.ht= ml
 
Thanks!
Brian
 
Error.log contains:
[Wed Nov 11 15:57:27 2009] [warn] [client 192.= 168.21.21] (OS 109)The pipe has been ended. : mod_fcgid: get overlap result= error
[Wed Nov 11 15:57:27 2009] [error] [client 192.168.21.21] Premat= ure end of script headers: foo.pl
 

I'd guess this is related to the shebang line processing, and that= foo.pl isn't= getting started.

Is the path to perl correct in foo.pl (maybe it should be "#!/perl/bin/perl")?  Do you need "Sc= riptInterpreterSource registry" to tie .pl files to the Perl interpreter, i= gnoring the shebang line?



=0A=0A= =0A=0A --0-102687579-1258065165=:65304--