<?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>Sniptools &#187; movable type</title>
	<atom:link href="http://sniptools.com/tag/movable-type/feed" rel="self" type="application/rss+xml" />
	<link>http://sniptools.com</link>
	<description>Design &#38; Technology Observations</description>
	<lastBuildDate>Fri, 11 Dec 2009 18:00:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Movable Type Workaround for Cpanel update woes</title>
		<link>http://sniptools.com/vault/mt-cpanel-issue-dbd-downgrade</link>
		<comments>http://sniptools.com/vault/mt-cpanel-issue-dbd-downgrade#comments</comments>
		<pubDate>Sat, 02 Jul 2005 22:55:37 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[movable type]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Tips/Tricks]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=112</guid>
		<description><![CDATA[mt cpanel issue dbd downgrade
 <a href="http://sniptools.com/vault/mt-cpanel-issue-dbd-downgrade">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Latest Cpanel updates are breaking Movable type installations, wreaking havoc with 500 Server Error messages and causing core dumps all over the place. Here&#8217;s the kludgish workaround, that, well, works.</p>
<h3>Latest <a href="http://forums.cpanel.net/showthread.php?t=40896">Cpanel</a> updates are <a href="http://www.movabletype.org/support/index.php?act=ST&amp;f=9&amp;t=52920&amp;st=0">breaking Movable type</a> installations, wreaking havoc with 500 Server Error messages and causing core dumps all over the place. Here&#8217;s the kludgish workaround, that, well, works.</h3>
<p>A user on MT forums <a href="http://www.movabletype.org/support/index.php?s=7aea697cfc90b5359fcb0f9716479639&amp;act=ST&amp;f=9&amp;t=52920&amp;st=16">suggested</a> that downgrading to DBD::Mysql 2.9007 should do the trick. It does. Six Apart seems to be <a href="http://www.sixapart.com/pronet/weblog/2005/07/cpanel_updates_.html">aware of it</a>.</p>
<p>Here&#8217;s a little script for Cpanel/WHM users to execute on their SSH shells. Save it as, say, &#8220;dbidowngrade.sh&#8221; in your root folder, CHMOD it to 755, and execute it with &#8220;./dbidowngrade.sh&#8221; at the command prompt.</p>
<h3>Important Note:</h3>
<p>Yes, some people will have problems with Cpanel updating their DBD::Mysql with the /upcp script, in which case you should probably set up a cron job to execute the above script on a regular basis. I have it up as hourly and it takes just a few seconds. I have commented out the lines in green because you don&#8217;t need to download the file from CPAN more than once.</p>
<p>Please remember, this is merely a temporary solution. Movable Type should of course have an update soon, and Cpanel should shortly start providing the 3.0001 version in the near future.</p>
<h3>Update: July 8, 2005</h3>
<p>The latest update of <a href="http://search.cpan.org/dist/DBD-mysql/">DBD::Mysql, 3.0001_3</a>, works for me. So here&#8217;s the new code:</p>
<pre lang="bash" line="1">
#!/bin/sh
cd /usr/src

wget -O dbd.tar.gz "http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-3.0001_3.tar.gz"
gzip -cd dbd.tar.gz | tar xf -
rm -rf dbd.tar.gz

cd DBD-mysql-3.0001_3
perl Makefile.PL
make
make install</pre>
<h3>Update: July 6, 2005</h3>
<p>Looks like the DBD::Mysql author has <a href="http://search.cpan.org/dist/DBD-mysql/">released a 3.0001_2 developer update</a>. I haven&#8217;t been able to install it, it gives me a bunch of errors but that&#8217;s par for the course from &#8216;developer&#8217; versions of software. YMMV. I&#8217;ll stick with the 2.9007 for now.</p>
<h3>Original method: Downgrading surely works</h3>
<pre lang="bash" line="1">
#!/bin/sh
#---------------------------------------------
# Script to downgrade to DBD::mysql 2.9007
#---------------------------------------------
cd /usr/src
wget -O dbd.tar.gz "http://www.cpan.org/modules/by-module/DBD/DBD-mysql-2.9007.tar.gz"
gzip -cd dbd.tar.gz | tar xf -
rm -rf dbd.tar.gz
cd DBD-mysql-2.9007
perl Makefile.PL
make
make install

# Clean up
cd /usr/src
rm -rf DBD-mysql-2.9007</pre>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/vault/mt-cpanel-issue-dbd-downgrade/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
