The Movable Type User Manual

NOTE: This documentation is for Movable Type 3.2. If you are using a newer version, please see the documentation for Movable type 3.3x or Movable Type Enterprise.

« Running Movable Type With mod_perl | Up | Setting Up Scheduled Post Services »

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.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.