<?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>Pixelbath &#187; iis</title>
	<atom:link href="http://www.pixelbath.com/blog/tag/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelbath.com/blog</link>
	<description>Webcomics, video, Photoshop and other design-related stuff</description>
	<lastBuildDate>Fri, 10 Jun 2011 16:59:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Movable Type Installation on Windows Server 2003</title>
		<link>http://www.pixelbath.com/blog/2008/11/movable-type-installation-on-windows-server-2003/</link>
		<comments>http://www.pixelbath.com/blog/2008/11/movable-type-installation-on-windows-server-2003/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 20:45:09 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[activeperl]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[movabletype]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.pixelbath.com/blog/?p=172</guid>
		<description><![CDATA[Wow, what a pain in the ass. I'm glad I didn't personally pay for this software. I thought this was yet another PHP content management system. Nope, it's Perl. To hopefully save someone from searching all over the web and back, here are the problems I encountered while installing. This guide assumes a semi-proficient knowledge [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, what a pain in the ass.  I'm glad I didn't personally pay for this software.  I thought this was yet another PHP content management system.</p>
<p>Nope, it's Perl.</p>
<p>To hopefully save someone from searching all over the web and back, here are the problems I encountered while installing.  This guide assumes a semi-proficient knowledge of IIS configuration.</p>
<h3>Install ActivePerl</h3>
<p>First off, make sure you install <a href="http://www.activestate.com/Products/activeperl/index.mhtml">ActiveState's ActivePerl</a> on your server.  Manually configuring Perl is not something I'd care to dive into.  If that's your bag, go to <a href="http://www.cpan.org/">CPAN</a> (and why the hell are you reading this guide?).</p>
<p>Using the IIS Manager, navigate to your website and choose "Properties".  Under the "Home Directory" tab, click the "Configuration" button.</p>
<p>In the Application Configuration window, click the "Add" button.</p>
<p>Use the following values in the Extension Mapping dialog:</p>
<p>Executable: <code>C:\Perl\bin\perl.exe "%s" %s</code><br />
Extension: <code>.cgi</code><br />
Verbs: Check "Limit to:" and enter <code>GET,HEAD,POST</code><br />
Uncheck the box labeled "Verify that file exists" (this will speed execution on scripts)</p>
<p>Next, select the "Web Service Extensions" item on the left of the IIS Manager (at the same level as "Web Sites").  Select "Perl CGI Extension" and click the "Allow" button.</p>
<p>I already had PHP installed on this server, so I'm skipping that step for this guide.  PHP is far less tricky to install, anyway, and there are extensive guides for this already.</p>
<h3>Fix Shoddy Installation Procedures</h3>
<p>When navigating to my Movable Type directory, I immediately encountered the error "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers."</p>
<p>Bad CGI application, bad!  Smack it on the nose with a rolled up magazine!</p>
<p>First off, you should run the <code>mt-check.cgi</code> script to make sure everything's on the up-and-up.  If the script runs successfully, you've successfully installed and configured ActivePerl.  Yay, you're halfway (yes, halfway) there!</p>
<p>Near the top of this page, you should see the following:</p>
<p>Current working directory: <code>[path]</code><br />
MT home directory: <code>[different path]</code></p>
<p>The <a href="http://www.sixapart.com/movabletype/kb/installation/cgi_error_on_ii.html">MT Knowledge Base</a> says to download <a href="http://www.sixapart.com/movabletype/kb/downloads/Bootstrap.pm">this modified Bootstrap.pm file</a>, and replace it with the version on your server.  I honestly don't know what's different about it, or why they couldn't include it with the installation, or even if it does anything different.  Mindlessly obey.</p>
<p>The same page also advises to "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)"  That explanation is freaking stupid.  What it should tell you is "Do not install MovableType directly into the folder you wish to present to the world."  As in, I moved the entire thing to <code>/cgi-bin/</code> and created a virtual folder named "blog" under the root folder pointing to <code>/cgi-bin/</code>.  Your <code>CGIPath</code> variable in <code>mt-config.cgi</code> should match your virtual folder name (like <code>http://www.example.com/blog/</code>).</p>
<h3>Install MySQL Driver</h3>
<p>Oops, now navigating to the blog URL results in an error saying that the MySQL driver is missing (sharp readers will notice this was missing in <code>mt-check.cgi</code> as well, I did not).  On your server, run the ActiveState Perl Package Manager, which should be in your Start menu.  If you scan through all packages, you'll notice a DBD-mysqlPP module.  This will not work, as far as I know.  You need to add another repository source to get the actual module you need.</p>
<p>In PPM, go to Edit > Preferences, then go to the "Repositories" tab in the preferences window.  Add the CPAN repositories to its sources by either selecting "uwinnipeg" from the "Suggested" list, or do what I did manually.  Enter "CPAN" for name, and <code>http://cpan.uwinnipeg.ca/PPMPackages/10xx/</code> to the location box, then click the "Add" button.  You should now have <code>DBD-mysql</code> available for installation.  Install it.</p>
<p>That should be it!  As far as configuring MovableType goes, that's where I get off, because this installation was for a client who already knew how to use it, and already had his login information in the database (this was a server move).</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbath.com/blog/2008/11/movable-type-installation-on-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

