Configure IIS with perl CGI

To configure ActivePerl to work with IIS 6 on Windows 2003:

1. Start the Internet Information Services (IIS) Manager from Window's Administrative Tools menu.
2. Select the desired web site, then select Web Service Extensions. Click Add New Web Service Extension.
3. Enter a descriptive Extension Name (such as "Perl CGI"), then enter the following string in the Required Files field:
C:\\Perl\\bin\\perl.exe "%s" %s
As necessary, modify the path to the Perl executable on the selected system. Check Set
Extension Status to Allowed, then click OK.
Somehow, my Windows 2003 has this extension already though it is disabled. All I need to do is to enable it by click on "Allow" button.
4. Expand the Web Sites directory in the IIS Manager and right-click Default Web Site. Select New | Virtual Directory.... Use the wizard to specify the location of your Perl CGI programs. On the Access Permissions page, ensure that Read, Run Scripts and Execute are enabled.
5. Right-click the new virtual directory and select Properties. On the Mappings tab of the Application Configuration page, ensure that the .pl or .cgi extension is mapped to the Perl interpreter specified above. (Enter the same string in the Executable Path field as shown in step 3.)
6. In order to run ASP scripts, ensure that Active Server Pages are "allowed". Under the Web Service Extensions directory, select Active Server Pages. Change the status from "Prohibited" to "Allowed".
7. Restart the IIS service.
8. Test your configuration as described in
Testing Your Web Server Configuration.

The above was 'copied' from
http://aspn.activestate.com

A Microsoft article
How To Add and Remove Web Service Extension Files in IIS 6.0 tells how to use iisext.vbs command line script, which is stored in the Sysvol\\system32\\ (default Windows\\System32) directory.

Comments:

Post a Comment:
Comments are closed for this entry.
About

gc

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today