I have installed apache 2.2.15 with mod_fcgid on Windows XP SP3 and Activestate Perl (tried both 5.12 & 5.8.9) tried the perl example script in the mod_fcgid reference page but it is not working, however it does run as simple cgi I get this in error log
[Tue Dec 07 23:10:35 2010] [info] mod_fcgid: server 127.0.0.1:/usr/bin +/perl.exe(5476) started [Tue Dec 07 23:10:35 2010] [warn] [client 127.0.0.1] (OS 109)The pipe +has been ended. : mod_fcgid : get overlap result error [Tue Dec 07 23:10:35 2010] [error] [client 127.0.0.1] Premature end of + script headers: f.pl [Tue Dec 07 23:10:35 2010] [error] [client 127.0.0.1] File does not ex +ist: C:/Apache2/htdocs/favicon.ico [Tue Dec 07 23:10:39 2010] [info] mod_fcgid - infoneto: process /usr/b +in/perl.exe(5476) exit(communication error), return code 9
I double check everything including: The #!/usr/bin/perl.exe line The mod_fcgid is loaded (Yes it is on c:\usr\bin\perl.exe in may case...) When running the script as plain cgi it works When I turned to the older mod_fastcgi it works just fine as a fastcgi (i.e. loads once runs many times). Using process monitor I can see that apache starts Perl but it Perl exits almost instantly without even loading the Perl script I tried it also on Apache 2.0.52 & 2.0.63 with older mod_fcgid and with Apache 2.2.15 with the newest mod_fcgid (2.3.6) but no luck What can be done ? I googled around but no one seems to have solution or managed using mod_fcgid with perl on Win32 I opened a bug on both FCGI at cpan and on apache tracker but no one seems to care... Is there a solution for this ? Does someone else need this ? (mod_fcgid with Perl on Apache/Win32) This is the code I am trying:
#!/usr/bin/perl.exe use FCGI; my $count = 0; my $request = FCGI::Request(); while($request->Accept() >= 0) { print("Content-type: text/html\r\n\r\n", ++$count); }

In reply to Perl Win32 Apache & mod_fcgid not working by roey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.