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.cgireports). - Download this new Bootstrap.pm file, and install it at
lib/MT/Bootstrap.pm(overwriting the original file). - Update CGIPath in
mt-config.cgito use the URL for the new virtual directory. - The Current working directory and MT home directory reported by
mt-check.cgishould now match, pointing to the actual physical location of the files.
At this point, Movable Type should run properly.

