FastCGI with Perl on IIS6

Posted by WimVM on 2007-05-09 00:33

Hello,

I want to use FastCGI on IIS6 (see www.iis.net for info). IIS team provided a guide for PHP 5.1.2, but I also want to use Perl. Can somebody provide a step-by-step procedure please?

Thanks

ericp
ActiveState Staff
Wed, 2010-05-26 11:01

We haven't tested FastCGI/Perl debugging here.

However, here's a suggestion at http://osdir.com/ml/web.fastcgi.devel/2005-06/msg00005.html:

"You'll need to start your FastCGI application with the -d:ebug flag, which may
be placed on the #! line."

You might also need to set the environment variables at the start of this
application. This is similar to doing on-the-fly debugging:

#!/usr/bin/env perl -w
# note no '-d' above

my $hostname = "localhost"; # or override
my $port = 9000; # or whatever Komodo is listening on
my $logfile = "/tmp/perldb.txt"; # or override
$ENV{PERLDB_OPTS} = "RemotePort=$hostname:$port LogFile=$logfile";

my $komodo_lib = $ENV{HOME} . "/opt/Komodo-IDE-5.2.4-37659/lib/support/dbgp/perllib/"; # replace with where you installed Komodo
push @INC, $komodo_lib;
require "$komodo_lib/perl5db.pl";

# Debugging starts at the next line

Hope this helps,
Eric