Endless Computer

Install and Setup ActiveState's ActivePerl and ActivePython in IIS6
Download the latest ActivePerl and ActivePyton Package from ActiveState (use the MSI package)
 
Double click on the Installer to begin, just follow the wizard.

 
Note: ActivePerl will setup the Web Service Extension for you in IIS6. Do not uncheck any of these setting

 
After installation, open IIS6 manager, go to Web Service Extensions and enable the perl cgi extension, isapi extension and PerlEx isapi extension

 
 
You need to add a new Web Service Extension for ActivePython.

 
Type in .py for ActivePython extension and click add

 
Enter the path for ActivePython, ( C:\Python24\python.exe -u "%s" "%s" )

 
Set the .py Web Service Extension status to allowed

 
You need to allow IIS Internet Guest User account to have Execute access to Perl and Python folder in order for ActiveState Perl and Python script to execute otherwise when you run the script, your browser will prompt you to enter the username and password to access. Locate the folder, it usually located at C:\Perl and C:\Python24

Google
Click on the Security tab and click add

 
Grant the Internet Guest Account IUSR_Machine with Read&Execute, List Folder Contents and Read permission

 
Let's map Perl and Python script in the website/domain that you want to allow to run; Click on the website then Right click and go to properties

 
Click on Home Directory tab then click on Configuration button

 
 
As you can see that .pl is already added in the Mappings, you can remove it by simply click on the remove button if you don't your domain to run Perl script. Click Add button to add .py, enter the C:\Python24\python.exe -u "%s" "%s" in the Executable box and enter the .py extension. Click ok and exit.

 
We need to go to Documents and add content page, click Add button and enter index.pl and index.py

 
Now, let's have a test run. You can download the scripts here and see the result ( Perl and Python )
 
That's it!


 

Google