logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Problem with mod_fcgid & Perl scripts
Author
Lizzardd



Joined: 04 Aug 2014
Posts: 3
Location: South Africa, Johannesburg

PostPosted: Mon 04 Aug '14 10:40    Post subject: Problem with mod_fcgid & Perl scripts Reply with quote

Moderator's Note: Split topic from http://www.apachelounge.com/viewtopic.php?t=5864

I've been having similar issues with mod_fcgid under windows.
Initially I had issues getting a c++ app to spawn via apache, but that was solved by passing in the windir initialenv.

I am still having problems trying to get the example perl script to execute.

Script is:
#!d:/perl/bin/perl.exe
use CGI::Fast;

while (my $q = CGI::Fast->new) {
print("Content-Type: text/plain\n\n");
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
}

The error in the Apache log is:
[Mon Aug 04 10:09:29.434314 2014] [fcgid:info] [pid 328:tid 472] mod_fcgid: server test.lan:d:/perl/bin/perl.exe(4380) started
[Mon Aug 04 10:09:35.043674 2014] [fcgid:info] [pid 328:tid 472] mod_fcgid: process d:/perl/bin/perl.exe(4380) exit(communication error), return code 9

I am running the 64bit version of Apache2.4.9 and mod_fcgid 2.3.9 downloaded from ApacheLounge on a Windows 2012 R2 Server

apache conf is
Alias /simple/ d:/dev/fcgitest/simple_fastcgi.pl
<Location /simple/>
Options ExecCGI
Require all granted
SetHandler fcgid-script
</Location>

Any ideas or suggestions welcome
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 04 Aug '14 21:31    Post subject: Reply with quote

Known and as yet unsolved problem with Perl on Windows. It's better to use mod_fastcgi instead.
Back to top
Lizzardd



Joined: 04 Aug 2014
Posts: 3
Location: South Africa, Johannesburg

PostPosted: Tue 05 Aug '14 10:24    Post subject: Reply with quote

The reason I started testing with mod_fcgid us that mod_fastcgi is not available off their website any longer.
Is it possible for ApacheLounge to also prebuild those modules?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 05 Aug '14 11:34    Post subject: Reply with quote

https://www.apachehaus.net/modules/mod_fastcgi/
Back to top
Lizzardd



Joined: 04 Aug 2014
Posts: 3
Location: South Africa, Johannesburg

PostPosted: Tue 05 Aug '14 11:47    Post subject: Reply with quote

Thanks
Back to top


Reply to topic   Topic: Problem with mod_fcgid & Perl scripts View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules