FastCGI with Perl on IIS6

Posted by WimVM on 2007-05-08 23:33


I want to use FastCGI on IIS6 (see 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?


ActiveState Staff
Wed, 2010-05-26 10:01

We haven't tested FastCGI/Perl debugging here.

However, here's a suggestion at

"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/";

# Debugging starts at the next line

Hope this helps,