< IIS and FastCGI < Scripting languages

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

Strawberry Perl
perl -MCPAN -e'install FCGI::IIS'
ActiveState
ppm install FCGI
ppm install http://www.cosmicscripts.com/modules/perl/FCGI-IIS.ppd

Additions to fcgiext.ini

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

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

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.