The Movable Type Knowledge Base

CGI Error on IIS 6.0 (Windows 2003)

Question

When running the script, I get an error message that says CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers..

Answer

Windows 2003 Server doesn't set the current working directory to the same path as the CGI script. You can confirm this discrepancy by looking at the top of your mt-check.cgi results:

# Current working directory: (path)
# MT home directory: (different path)

To correct this behavior, you (or your host) should do the following:

  • Create a new "virtual directory" under IIS which points to the physical directory where the Movable Type CGI files are located (i.e., the "MT home directory" mt-check.cgi reports).

  • Download this new Bootstrap.pm file, and install it at lib/MT/Bootstrap.pm (overwriting the original file).

  • Update CGIPath in mt-config.cgi to use the URL for the new virtual directory.

  • The Current working directory and MT home directory reported by mt-check.cgi should now match, pointing to the actual physical location of the files.

At this point, Movable Type should run properly.

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.

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