(page requirements)

How to install Perl scripts on Internet Information Server

Trying to get that cool Perl script to run on your Internet Information Server? Although it does not ship with built-in support for executing Perl scripts, it's easy enough to add Perl support to Internet Information Server.
Once the Perl interpreter is installed, you should be able to place Perl CGI scripts in any scripts directory, such as the default /scripts scripts directory.
You can also create a new scripts directory, named cgi-bin for example, by
  • physically creating an empty directory on the hard drive,
  • adding it to the Internet Information Server manager and
  • enabling the Execute attribute (Script attribute in Microsoft IIS 4.x).
Adding Perl support to Internet Information Server
  • Make sure Internet Information Server is properly installed and functioning.
  • Download and install Perl for Windows:
    ActiveState Perl for Win32
  • Configure Perl script maps:

         If using Internet Information Server 1.x, 2.x or 3.x:
    Update the registry as follows:
    • Start regedt32.exe and open

    • Select "Add Value" from the "Edit" menu.
      Set "Value Name" to .pl
      Set "Data type" to REG_SZ
      Set "String value" to:
      <perl.exe path>\perl.exe %s %s

      For example, if you installed Perl in C:\PERL, type

      c:\perl\bin\perl.exe %s %s
         If using Internet Information Server 4.x:
    • Open "Internet Service Manager" for Microsoft IIS 4.x
    • Right click on the web server entry under the "Internet Information Server" folder and select "Properties"
          NOTE: This will map the .pl file extension to the Perl interpreter on all directories under the selected web server. To enable Perl scripts on just a single virtual directory, select that directory instead and go to its "Properties".
    • Select "WWW Service" under "Master Properties" and click on "Edit..."
    • Change to the "Home Directory" tab
    • Click on "Configuration..."
    • Select ".pl" entry (or add one) and click on "Edit"
    • Set "Executable" parameter to:

      <perl.exe path>\perl.exe %s %s

      For example, if you installed Perl in C:\PERL, type

      c:\perl\bin\perl.exe %s %s
    • Apply changes and close "Internet Service Manager"
  • Restart all Internet Information Server services and/or restart the server machine.
Applicable Keywords : Internet Information Server, Microsoft IIS 1.x, Microsoft IIS 2.x, Microsoft IIS 3.x, Microsoft IIS 4.x, Windows NT, Windows NT 3.51, Windows NT 3.x, Windows NT 4.x, Perl, Windows
Copyright © 2009 Chami.com. All Rights Reserved. | Advertise | Created in HTML Kit editor