<?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>The New Big &#187; spam</title>
	<atom:link href="http://thenewbig.com/tag/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://thenewbig.com</link>
	<description>Small pieces of the new big world</description>
	<lastBuildDate>Wed, 18 Jan 2012 05:15:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<cloud domain='thenewbig.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Imperfect Storm:  Bad Behavior, Dreamhost, PHP5, and MediaWiki</title>
		<link>http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/</link>
		<comments>http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 23:56:11 +0000</pubDate>
		<dc:creator>stumax</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[bad-behavior]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[resolved]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/</guid>
		<description><![CDATA[	(Updated below.) #
	I run several wikis under my Dreamhost account.  About a year ago, I was getting absolutely crushed under the weight of spambots.  After one particularly bad attack that took about 3 hours to clean up, I discovered Bad Behavior.  Bad Behavior is a spam-fighting extension for MediaWiki, WordPress, Drupal, Geeklog, [...]]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>	(Updated below.) <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
	I run several wikis under my Dreamhost account.  About a year ago, I was getting absolutely crushed under the weight of spambots.  After one particularly bad attack that took about 3 hours to clean up, I discovered <a href="http://www.bad-behavior.ioerror.us/" title="Bad Behavior">Bad Behavior</a>.  Bad Behavior is a spam-fighting extension for MediaWiki, WordPress, Drupal, Geeklog, and DotClear.  I haven&#8217;t tried it on the other platforms, but for my MediaWiki sites, it&#8217;s been a real godsend.  I just unzipped the file into my extensions directory, added a short line of code to the end of LocalSettings.php, and sat back and did nothing!  My spam problem was gone. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
	A couple of nights ago, I upgraded one of my wiki sites to the latest version of MediaWiki, and immediately encountered a &#8220;Call to undefined function&#8221; error with Bad Behavior.  I updated BB to the latest version, but to no avail.  The site would work with the extension disabled, but that&#8217;s no way to run a wiki.  The problem, apparently, lies in a sort of perfect storm of the particular versions of MediaWiki (1.9.2), Bad Behavior (2.0.10), and PHP (5.1.2).  Dreamhost hasn&#8217;t yet updated to PHP 5.2.  If they had (or if I wanted to tackle that job myself), this likely wouldn&#8217;t be an issue. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
	Fortunately, however, there is a pretty easy solution.  Thanks to commenter <a href="http://www.bad-behavior.ioerror.us/2007/01/27/bad-behavior-2010/#comment-1083" title="Brian Hartvigsen">Brian Hartvigsen</a> on the Bad Behavior blog, I found that the answer was to add the following line to LocalSettings.php: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
<code>require_once( "includes/DatabaseFunctions.php" );</code>
	This goes at the top your LocalSettings file, just below <code>require_once( "includes/DefaultSettings.php" );<br />
</code>.  Here&#8217;s a picture, so you can see what I mean: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p4">#</a><p class="winerlinks-enabled"><a name="p5"></a>
	<img src="http://thenewbig.com/wp-content/uploads/local-settings-showing-bad-behavior-fix.png" alt="Local Settings showing Bad Behavior fix" height="213" width="566"> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p5">#</a><p class="winerlinks-enabled"><a name="p6"></a>
	Note that this does apparently cause some formatting problems with the edit page of the wiki, but I decided that I could live with the minor glitches; I couldn&#8217;t live with the spam. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p6">#</a><p class="winerlinks-enabled"><a name="p7"></a>
	Hope that helps anyone else who&#8217;s having this issue. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p7">#</a><p class="winerlinks-enabled"><a name="p8"></a>
	UPDATE 2-21-07:  Dreamhost is now <a href="http://www.dreamhoststatus.com/2007/02/21/php-521-upgrades-under-way/" title="upgrading to PHP 5.2.1">upgrading to PHP 5.2.1</a>, so this will likely cease to be an issue.  So, something else will probably break.  Guess I know what I&#8217;m doing this evening&#8230; <img src='http://thenewbig.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p8">#</a><p class="winerlinks-enabled"><a name="p9"></a><h3  class="related_post_title">More Big Things</h3><ul class="related_post"><li><a href="http://thenewbig.com/2007/04/08/wikithe-louverture-project/" title="<span>Wiki:</span>The Louverture Project"><span>Wiki:</span>The Louverture Project</a></li></ul> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/#p9">#</a></p>]]></content:encoded>
			<wfw:commentRss>http://thenewbig.com/2007/02/19/imperfect-storm-bad-behavior-dreamhost-php5-and-mediawiki/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

