News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

How to install Perl scripts on Internet Information Server

Started by charleychacko, October 13, 2006, 02:03:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

charleychacko

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

HKEY_LOCAL_MACHINE\
SYSTEM\CurrentControlSet\
Services\W3SVC\Parameters\
ScriptMap

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.