Chapter 11: Advanced Topics
Configuring A Windows Server To Run CGI Scripts
Problem
You need to configure Windows to recognize .cgi files as Perl scripts.
Solution
Add perl.exe to the Home Directory configuration of your IIS server and set it to handle files with a .cgi extension.
Discussion
While Movable Type can be configured to run with .pl extensions that the Windows IIS server will recognize as Perl scripts, it is recommended that MT scripts are run with .cgi like they are on Unix systems.
Setting up IIS to handle files with .cgi extension as Perl scripts requires adding a few configuration settings to the server's home directory. Follow these steps:
- 1 Go into the Information Internet Services Administration console.
From the Start menu navigate to the "Control Panel," then "Administrative Tools," and finally "Internet Information Services."
- 2 Open the "Default Web Site" Properties.
Using the navigation on the left-side, navigate through "Local Computer" to "Web Sites" and right-click over "Default Web Site." Choose "Properties."
- 3 Add the Configuration Record to the Home Directory.
Select the Home Directory tab, click Configuration and the Add button. Enter the following values in the form:
- Executable:
#c:\Perl\bin\perl.exe "%s" %s - Extension:
#.cgi - Verbs > Limit to:
#GET,HEAD,POST - Uncheck the box labeled "Check that file exists."
Press the OK button when you have completed entering the configuration parameters.
- Executable:



