The Movable Type Knowledge Base

Configure Windows To Use .cgi For Perl Scripts

Question

How do I configure Windows to recognize .cgi files as Perl scripts?

Answer

  • From the Start Menu, navigate to: Start > Control Panel > Administrative Tools > Internet Information Services
  • In the IIS Administration console, use the left-side navigation to go to: Local Computer > Web Sites > Default Web Site.
  • Right-click on "Default Web Site" and choose "Properties".
  • Select the "Home Directory" tab, and then click "Configuration".
  • Click the "Add" button.
  • In the form, fill in these values for the fields displayed:
    • Executable: #C:\Perl\bin\perl.exe "%s" %s
    • Extension: #.cgi
    • Verbs > Limit to: #GET,HEAD,POST
    • [ ] Check that file exists (uncheck this box)
  • Hit "OK"

Excerpted from the Six Apart article on Installing Movable Type on Windows.

Please note that these instructions are provided as general information only. Support staff is unable to provide detailed assistance with server configuration issues.

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 questions. 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.

Yahoo! Small Business web hosting services

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