roey has asked for the wisdom of the Perl Monks concerning the following question:
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:[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
#!/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); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Win32 Apache & mod_fcgid not working
by Corion (Patriarch) on Jan 30, 2011 at 11:29 UTC | |
by roey (Initiate) on Jan 30, 2011 at 14:47 UTC | |
|
Re: Perl Win32 Apache & mod_fcgid not working
by Anonymous Monk on Jan 30, 2011 at 20:06 UTC | |
by Anonymous Monk on Jan 30, 2011 at 22:24 UTC | |
by Anonymous Monk on Jan 31, 2011 at 10:44 UTC | |
by Anonymous Monk on Jan 31, 2011 at 18:38 UTC |