Jump to content

IIS and FastCGI/Scripting languages/Perl

From Wikibooks, open books for an open world

This tutorial will teach you how to get IIS working with FastCGI, and Perl. We will be using FCGI::IIS. These steps should be followed in order. Further documentation on FCGI::IIS, can be found directly on CPAN.

Install FCGI::IIS

[edit | edit source]
Strawberry Perl
perl -MCPAN -e'install FCGI::IIS'
ActiveState
ppm install FCGI
ppm install http://www.cosmicscripts.com/modules/perl/FCGI-IIS.ppd [1]

Additions to fcgiext.ini

[edit | edit source]

Add the following to the [Perl] stanza:

Arguments="-MFCGI::IIS=test"
QueueLength=999
MaxInstances=20
InstanceMaxRequests=500

Which should make the .ini file read something like:

[Types]
pl=Perl

[Perl]
ExePath=C:\strawberry\perl\bin\perl.exe
Arguments="-MFCGI::IIS=test"
QueueLength=999
MaxInstances=20
InstanceMaxRequests=500

Notice FCGI::IIS=test: this gets a test up and running. To develop or run production with FCGI::IIS, or after your test succeeds remove the FCGI::IIS. Further information can be found in FCGI::IIS docs.

Arguments="-MFCGI::IIS"

Restart website

[edit | edit source]

To restart a website: Start → Administrative Tools → IIS → Expand left panel to Websites → Right click website Stop → Right click website Start.


From this point it should be easily to install Catalyst or whatever other perl framework you'd like.

Footnotes

[edit | edit source]
  • Much of the information was sourced from ""FastCGI with Perl on IIS 5.1, 6". FastCGI and Perl. CosmicScripts.com."
  • ^ http://cosmicscripts.com is a non-official ppm hosting site, hope it is still active.