<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Better Way &#187; iis</title>
	<atom:link href="http://www.thejacklawson.com/index.php/tag/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thejacklawson.com</link>
	<description>Finding a better way to get things done, a technical journey</description>
	<lastBuildDate>Tue, 24 Aug 2010 21:10:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Perl and Movable Type</title>
		<link>http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/</link>
		<comments>http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 00:45:51 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IIS and Windows Technologies]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[movabletype]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.thejacklawson.com/?p=14</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>I finally made the switch for my blog to our own server, after Don got our new server up and running. We hammered through some <a href="http://www.fatalerroronline.com/2008/06/installing-and-configuring-dns.html">DNS fun</a> and then some <a href="http://www.fatalerroronline.com/2008/06/php-horror.html">PHP Horror</a>, and then, after everything was set up, it was Perl time.</p>
<p>What went through my head was a little chant: &#8216;not a PHP install all over again.. not a PHP install all over again.. not a PHP install all over again.. &#8216;</p>
<p>And, it wasn&#8217;t <i>quite </i>that bad. Close, but not quite. The difference was that in the Perl install, most of my guesses were correct. Because, as always, installing any non-Microsoft language on a 2k3 box with IIS is never going to be fun. I unzipped the MovableType (version 4.12) file into my web directory, and set off to configure everything. (I already had IIS and MySQL installed at this point).</p>
<p>That said, the first thing I did was install <a href="http://activestate.com/Products/activeperl/index.mhtml">ActivePerl</a> from ActiveState, version 5.10.0.1003. At the time of writing, this was the latest <strike>and greatest</strike>. I did the install (something that, if following this as instructions, I urge <i>not </i>to do, at least of that version&#8230; follow further down), and everything worked&#8230; except that there was no MySQL module to be found. Bummer.</p>
<p>So, after hours of troubleshooting that I won&#8217;t bore you with, I finally googled around and found out that the 5.8 version (5.8.8.822, to be exact) still had the MySQL module. I uninstalled the old version and installed this older version, set up the extensions (IIS manager -&gt; web site -&gt; right-click, properties -&gt; home directory -&gt; configuration, add .cgi with the extension set to the perl.exe file where you installed perl, with the headers locked down to GET, HEAD, and POST). Basically, I followed this: <a href="http://www.movabletype.org/documentation/installation/windows.html">MT Windows Installation</a>. However, after all that was said and done, I still had the problem of it <i>not working.</i></p>
<p>The first problem I had was that when I went to check the install by going to mt-check.cgi, it errored out halfway down the page. So, I opened up the ActivePerl Manager and set DBI and DBD-MySQL to reinstall. I also took the -original off of the &#8220;mt-config.cgi-original&#8221; file name.</p>
<p>The next thing to do is to open up that config file, and comment out<br />
all of the data sources you&#8217;re not using.&nbsp; Mine looked something like:</p>
<p>##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Movable Type configuration file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ##<br />##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ##<br />## This file defines system-wide settings for Movable Type&nbsp;&nbsp;&nbsp; ##<br />## In total, there are over a hundred options, but only those ##<br />## critical for everyone are listed below.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ##<br />##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ##<br />## Information on all others can be found at:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ##<br />## config</p>
<p>################################################################<br />##################### REQUIRED SETTINGS ########################<br />################################################################</p>
<p># The CGIPath is the URL to your Movable Type directory<br />CGIPath&nbsp;&nbsp;&nbsp; http://www.crimsondeviations.com/blog/</p>
<p># The StaticWebPath is the URL to your mt-static directory<br /># Note: Check the installation documentation to find out <br /># whether this is required for your environment.&nbsp; If it is not,<br /># simply remove it or comment out the line by prepending a &#8220;#&#8221;.<br />StaticWebPath&nbsp;&nbsp;&nbsp; http://www.crimsondeviations.com/blog/mt-static</p>
<p>#================ DATABASE SETTINGS ==================<br />#&nbsp;&nbsp; REMOVE all sections below that refer to databases <br />#&nbsp;&nbsp; other than the one you will be using.</p>
<p>##### MYSQL #####<br />ObjectDriver DBI::mysql<br />Database movabletype<br />DBUser ********<br />DBPassword *************<br />DBHost localhost</p>
<p>##### POSTGRESQL #####<br />#ObjectDriver DBI::postgres<br />#Database DATABASE_NAME<br />#DBUser DATABASE_USERNAME<br />#DBPassword DATABASE_PASSWORD<br />#DBHost localhost</p>
<p>##### SQLITE #####<br />#ObjectDriver DBI::sqlite<br />#Database /path/to/sqlite/database/file</p>
<p>Then again, the mt-wizard page continued to error with &#8220;CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers&#8221;.&nbsp; After more Googling around, I found out that you have to replace a line in every page in the main directory (luckily, not many: I opened them all in <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a> and did a &#8220;replace all in opened files&#8221;). You have to change:<br />use lib $ENV{MT_HOME}&nbsp;? &#8220;$ENV{MT_HOME}/lib&#8221;&nbsp;: &#8216;lib&#8217;;<br />to<br />use lib $ENV{MT_HOME}&nbsp;? &#8220;$ENV{MT_HOME}/lib&#8221;&nbsp;: &#8216;Y:\www\blog\cgi-bin\mt4\lib&#8217;;<br />(replacing, of course, with whatever your path is).</p>
<p>Which then fixed my errors of it not finding the right data source, having wrong headers, and it magically worked, and I was on my way to blogdom!</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em> </em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;title=Perl+and+Movable+Type" title="Add 'Perl and Movable Type' to Del.icio.us"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Perl and Movable Type' to Del.icio.us" alt="Add 'Perl and Movable Type' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;title=Perl+and+Movable+Type" title="Add 'Perl and Movable Type' to digg"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Perl and Movable Type' to digg" alt="Add 'Perl and Movable Type' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;title=Perl+and+Movable+Type" title="Add 'Perl and Movable Type' to reddit"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Perl and Movable Type' to reddit" alt="Add 'Perl and Movable Type' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/" title="Add 'Perl and Movable Type' to Technorati"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Perl and Movable Type' to Technorati" alt="Add 'Perl and Movable Type' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.newsvine.com/_wine/save?u=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;h=Perl+and+Movable+Type" title="Add 'Perl and Movable Type' to Newsvine"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/newsvine.png" title="Add 'Perl and Movable Type' to Newsvine" alt="Add 'Perl and Movable Type' to Newsvine" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;title=Perl+and+Movable+Type" title="Add 'Perl and Movable Type' to Stumble Upon"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Perl and Movable Type' to Stumble Upon" alt="Add 'Perl and Movable Type' to Stumble Upon" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;title=Perl+and+Movable+Type" title="Add 'Perl and Movable Type' to Google Bookmarks"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'Perl and Movable Type' to Google Bookmarks" alt="Add 'Perl and Movable Type' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="https://favorites.live.com/quickadd.aspx?url=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;title=Perl+and+Movable+Type" title="Add 'Perl and Movable Type' to Live-MSN"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Add 'Perl and Movable Type' to Live-MSN" alt="Add 'Perl and Movable Type' to Live-MSN" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?title=Perl+and+Movable+Type&amp;url=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/" title="Add 'Perl and Movable Type' to SlashDot"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Perl and Movable Type' to SlashDot" alt="Add 'Perl and Movable Type' to SlashDot" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;t=Perl+and+Movable+Type" title="Add 'Perl and Movable Type' to FaceBook"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Perl and Movable Type' to FaceBook" alt="Add 'Perl and Movable Type' to FaceBook" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/" title="Add 'Perl and Movable Type' to Twitter"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'Perl and Movable Type' to Twitter" alt="Add 'Perl and Movable Type' to Twitter" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/reader/link?url=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/&amp;title=Perl+and+Movable+Type&amp;srcURL=http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/" title="Add 'Perl and Movable Type' to Google Buzz"><img src="http://www.thejacklawson.com/wp-content/plugins/social-bookmarking-reloaded/googlebuzz.png" title="Add 'Perl and Movable Type' to Google Buzz" alt="Add 'Perl and Movable Type' to Google Buzz" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.thejacklawson.com/index.php/2008/06/perl-and-movable-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
