|
It's always possible to download & install Perl windows installer (MSI file or executble setup) or to find Perl bundle that will install all you need to the IIS server automaticly without any configuration modification but most recommended to manually install Perl if you care to understend what need to be done to enable new file extension to Microsoft IIS & to be able to trouble shoot errors in perl scripts. 1. First, Download latest version of ActivePerl (Windows AS package) from www.activestate.com 2. Unzip contents to c:\perl\ 3. Add c:\perl\bin to Windows Environment Variables Path |

4. Make sure that IUSR_MachineName user account have read & Execute
Permissions to that folder.
5. At IIS Manager add new web service extention named Perl and
point to C:\perl\bin\Perlis.dll

6. At IIS Manager open Web Sites Application Configuration Properties & add
new Application Extention
Mapping the Perl extention to Perlis.dll can be done on per web site base, just add the new Application Extention at the desired Web Site Application Configuration insted in the Application Configuration of the Web Sites Container.Set Executble to C:\perl\bin\Perlis.dll

7. Restart IIS services (iisreset.exe)
8. To check if Perl is correctly installed & check perl configuration, create on any web site
on the server file named test.pl contained the code:
$ip = "$ENV{REMOTE_ADDR}";
print <<ENDOFTEXT;
HTTP/1.0 200 OK
Content-Type: text/html
<HTML>
<BODY>
<P>Your IP Address is $ip</P>
</BODY>
</HTML>
ENDOFTEXT
exit(0);
Browse to the file
Don't forget to add .pl to AllowExtensions section on urlscan.ini file