Thursday, November 24, 2011

Perl CGI on IIS

This is just a note to myself, as I tend to forget how to do this...

Install the IIS CGI module: Control Panel, Programs and Features, Turn Windows Features On or Off...

Enable CGI in IIS:
  • Open IIS Manager
  • Select server
  • Double click ISAPI and CGI Restrictions
  • Click Edit Feature Settins...
  • Check Allow unspecified CGI modules (or enter the specific ones you want)
Set handler mappings:
  • Select site
  • Open Handler Mappings
  • request path: *.pl
  • executable: C:\strawberry\perl\bin\perl.exe "%s" %s
  • name: CGI script

No comments:

Labels