<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://www.majordojo.com/projects/FeedManager/atom.xsl" type="text/xsl" media="screen"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html" />
  <link rel="self" type="application/atom+xml" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html" />
  <id>tag:www.thinkjam.org,2009:/zoptuno//2/tag:www.thinkjam.org,2006:/zoptuno//2.360-</id>
  <updated>2009-09-21T03:11:29Z</updated>
  <title>Comments for IIS 6.0 (Windows 2003)下安装Movable Type出错</title>
  <subtitle>My think. My dream.</subtitle>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.31-zh-cn</generator>
  <entry>
    <id>tag:www.thinkjam.org,2006:/zoptuno//2.360</id>
    <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.thinkjam.org/loveblog/batom.cgi/weblog/blog_id=2/entry_id=360" title="IIS 6.0 (Windows 2003)下安装Movable Type出错" />
    <published>2006-08-29T14:55:57Z</published>
    <updated>2008-01-27T06:57:35Z</updated>
    <title>IIS 6.0 (Windows 2003)下安装Movable Type出错</title>
    <summary>之前曾经探讨过这个问题。当在Windows 2003的IIS+PHP+MySQL...</summary>
    <author>
      <name>平生一笑</name>
      <uri>http://www.thinkjam.org/zoptuno</uri>
    </author>
    
    <category term="MovableType" />
    
    <content type="html" xml:lang="en" xml:base="http://www.thinkjam.org/zoptuno/">
      <![CDATA[<p id="fp">之前曾经探讨过<a href="http://www.thinkjam.org/zoptuno/archives/2005/09/win_2003movable.html" target="_blank">这个问题</a>。当在Windows 2003的IIS+PHP+MySQL+Perl组合上安装Movable Type 3.2以上版本时，屏幕会出现：</p>

<blockquote>CGI Error<br />
The specified CGI application misbehaved by not returning a complete set of HTTP headers.</blockquote>

<p>的错误提示。此前的解决办法是让<a href="http://www.thinkjam.org/zoptuno/archives/2005/09/win_2003movable.html" target="_blank">ActivePerl以ISAPI方式解析CGI程序</a>，实际上，<a href="http://www.sixapart.com/movabletype/" target="_blank">Movable Type</a>官方也注意到这一点儿，他们给出了下面的<a href="http://www.sixapart.com/movabletype/kb/installation/cgi_error_on_ii.html" target="_blank">解决方案</a>：</p>]]>
      <![CDATA[<p><strong>解答</strong></p>

<p>导致Movable Type在IIS 6.0(Windows 2003)上安装出现CGI Error的原因是，在Windows 2003 Server下，Movable Type的当前工作路径与CGI脚本路径并不相同，运行mt-check.cgi，你会发现，mt-check.cgi：</p>

<blockquote># Current working directory: (path)<br />
# MT home directory: (different path)</blockquote>

<p>这里的Current working directory和MT home directory指向了不同的路径。要解决此问题，请按照以下步骤操作：<ul><li>在IIS下创建一个虚拟目录，指向Movable Type CGI脚本所在的物理路径，即mt-check.cgi报告的MT home directory；</li><li>下载这个<a href="http://www.sixapart.com/movabletype/kb/downloads/Bootstrap.pm" target="_blank">新的Bootstrap.pm</a>文件，将其拷贝到lib/MT/Bootstrap.pm，覆盖原文件；</li><li>编辑mt-config.cgi文件，设置CGIPath为刚才建立的虚拟目录的URL；</li><li>再次运行mt-check.cgi，你会发现 <strong>Current working directory</strong> 和 <strong>MT home directory</strong> 的路径相同，都指向了文件真实的物理路径。</li></ul>到这里，Movable Type就可以正常运行了。</p>]]>
    </content>
  </entry>

  <entry>
    <id>tag:www.thinkjam.org,2006:/zoptuno//2.360-comment:2244</id>
    <thr:in-reply-to ref="tag:www.thinkjam.org,2006:/zoptuno//2.360" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html"/>
    <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html#c2244" />
    <title>Comment from sleetdrop on 2006-08-30</title>
    <author>
        <name>sleetdrop</name>
<!--        <uri>http://blog.vetcafe.net</uri> -->
    </author>
    <content type="html" xml:lang="en" xml:base="http://blog.vetcafe.net">
	<![CDATA[<p>mark<br />
cgi程序安装的时候都有稍稍的用一下心的哈。</p>]]>
    </content>
    <published>2006-08-30T00:58:46Z</published>
    <updated>2006-08-30T00:58:46Z</updated>
  </entry>

  <entry>
    <id>tag:www.thinkjam.org,2006:/zoptuno//2.360-comment:2245</id>
    <thr:in-reply-to ref="tag:www.thinkjam.org,2006:/zoptuno//2.360" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html"/>
    <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html#c2245" />
    <title>Comment from dimlau on 2006-09-22</title>
    <author>
        <name>dimlau</name>
<!--        <uri>http://www.dimlau.com/blog</uri> -->
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.dimlau.com/blog">
	<![CDATA[<p>十分感谢！<br />
但是我live writer设置总是不成功</p>

<p>你用live writer么？设置成功了么？</p>]]>
    </content>
    <published>2006-09-22T02:09:39Z</published>
    <updated>2006-09-22T02:09:39Z</updated>
  </entry>

  <entry>
    <id>tag:www.thinkjam.org,2006:/zoptuno//2.360-comment:2246</id>
    <thr:in-reply-to ref="tag:www.thinkjam.org,2006:/zoptuno//2.360" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html"/>
    <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2006/08/movable-type-cgi-error-on-iis.html#c2246" />
    <title>Comment from udar on 2007-09-01</title>
    <author>
        <name>udar</name>
<!--         -->
    </author>
    <content type="html" xml:lang="en" xml:base="">
	<![CDATA[<p>请问一下 平生一笑 兄弟:<br />
把一台机器win2003上安装好了的MT转移到另一台win2003上(IIS环境相同),需要重新安装一次吗?</p>]]>
    </content>
    <published>2007-09-01T14:52:50Z</published>
    <updated>2007-09-01T14:52:50Z</updated>
  </entry>

</feed>
