Tuesday, October 19, 2010

Installing PERL on Windows 2003 and IIS

This is an how-to concerning the configuration of IIS 6.0 on a Windows 2003 Server to make it able to run PERL script.

First of all, you have to download ActivePerl 5.12, which is a free distribution of the language developed by ActiveState. You can find it here. Perl is not installed on Windows platforms, that's why you have to get yourself this distribution. The advantage of ActivePerl over other distributions is that it's a open source distribution and that it has regular releases that track the major Perl releases.

  • So, download and extract the zip file.
  • Copy just the perl folder to c:\perl (You don't need the rest to make the integration of Perl in Internet Information Services 6.0).
  • Verify that you have a file name perl.exe under c:\perl\bin.
  • Verify also that you have a file name perlis.dll under c:\perl\bin.
  • Click Start, click Programs, click Administrative Tools, and then click Internet Information Services.
  • Right-click the web-site you want to use with Perl, and then click Properties.
  • Select the Home Directory tab.
  • Click Configuration.
  • Click Add.
  • In the Executable box, type the following: c:\perl\bin\perlis.dll.
  • In the Extension box, type .pl.
  • Select the "All Verbs" option.
  • Select the Script Engine check box.
  • Click OK.
  • Click the Web Service Extensions folder.
  • Click Add a new Web service extension.
  • Type a name for the extension, such as "PERLScripts"
  • Click Add, type c:\perl\bin\perlis.dll file as you did before, and then click OK.
  • Make sure that the Set extension status to Allowed check box is selected.
  • Click OK.

Now just copy the following code (in blue) in a text file, rename it to testperl.pl and save it in the script folder (create it if it does not exist) of the web-site you have just configured.

print "Hello World!!!\n";

Now connect with your browser to your web server, browse to the script folder and click on the pl script. It should show you the typical Hello World!!! sentence. If it does then it means that Perl is correctly interpreted.

Interesting links:
I hope this helps.


  1. I've been banging my head against a wall for a couple of days. Finally, with this article, my problem is solved.


  2. Alan, I'm glad to know that you found this solution useful!


Related Posts Plugin for WordPress, Blogger...