<?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>sides of march &#187; vBulletin</title>
	<atom:link href="http://www.sidesofmarch.com/index.php/archive/tag/vbulletin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sidesofmarch.com</link>
	<description>Thoughts on life, liberty, and information technology</description>
	<lastBuildDate>Mon, 16 Jan 2012 02:43:26 +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>Installing and configuring memcached and PHP on Windows</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2010/09/02/installing-and-configuring-memcached-and-php-on-windows/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2010/09/02/installing-and-configuring-memcached-and-php-on-windows/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 12:14:21 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[vBulletin]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=436</guid>
		<description><![CDATA[<p>After upgrading the <a href="http://forums.csfbl.com">CSFBL forums</a> to <a href="http://www.vbulletin.com">vBulletin 4.0</a>, I noticed that performance was slightly worse than in the previous version. A little searching revealed that <a href="http://www.vbulletin.com/forum/entry.php?2391-Supercharge-your-vBulletin-Forum-with-Memcached">vBulletin supports memcached</a> (an <a href="http://memcached.org/">in-memory distributed caching system</a>). Since I&#8217;ve got RAM to spare, I figured this is worth a shot.</p>
<p>Unfortunately, getting memcached running on the server (Windows Server 2008 R2 64-bit) took a few tricks, and getting memached running through IIS/PHP was another. To help other people through the same process (and to remind myself in the future), I&#8217;ll share the installation and configuration steps that worked for me below.</p>
Downloading and configuring memcached
<p>The official distributions of memcached are written for Linux systems, so the first task is finding Windows binaries. The <a href="http://code.google.com/p/memcached/wiki/NewStart?tm=6">memcached project site</a>, fortunately, has links to <a title="Windows Platform - memcached" href="http://code.google.com/p/memcached/wiki/PlatformWindows">Windows binaries</a>, which are <a title="memcached binary downloads - NorthScale Labs" href="http://labs.northscale.com/memcached-packages/">hosted by NorthScale</a>. Both 32-bit and 64-bit versions are available.</p>
<p>(Note that NorthScale also offers their own <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2010/09/02/installing-and-configuring-memcached-and-php-on-windows/">Installing and configuring memcached and PHP on Windows</a></span>]]></description>
			<content:encoded><![CDATA[<p>After upgrading the <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fforums.csfbl.com&sref=rss">CSFBL forums</a> to <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.vbulletin.com&sref=rss">vBulletin 4.0</a>, I noticed that performance was slightly worse than in the previous version. A little searching revealed that <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.vbulletin.com%2Fforum%2Fentry.php%3F2391-Supercharge-your-vBulletin-Forum-with-Memcached&sref=rss">vBulletin supports memcached</a> (an <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fmemcached.org%2F&sref=rss">in-memory distributed caching system</a>). Since I&#8217;ve got RAM to spare, I figured this is worth a shot.</p>
<p>Unfortunately, getting memcached running on the server (Windows Server 2008 R2 64-bit) took a few tricks, and getting memached running through IIS/PHP was another. To help other people through the same process (and to remind myself in the future), I&#8217;ll share the installation and configuration steps that worked for me below.</p>
<h4>Downloading and configuring memcached</h4>
<p>The official distributions of memcached are written for Linux systems, so the first task is finding Windows binaries. The <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fcode.google.com%2Fp%2Fmemcached%2Fwiki%2FNewStart%3Ftm%3D6&sref=rss">memcached project site</a>, fortunately, has links to <a title="Windows Platform - memcached" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fcode.google.com%2Fp%2Fmemcached%2Fwiki%2FPlatformWindows&sref=rss">Windows binaries</a>, which are <a title="memcached binary downloads - NorthScale Labs" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Flabs.northscale.com%2Fmemcached-packages%2F&sref=rss">hosted by NorthScale</a>. Both 32-bit and 64-bit versions are available.</p>
<p>(Note that NorthScale also offers their own <a title="NorthScale Memcached Server" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Finfo.northscale.com%2FMemcached.html&sref=rss">free distribution of memcached</a>, but I was unable to get this to run on my system.)</p>
<p>Versions of memcached prior to 1.4.5 supported a command-line option that would register memcached as a Windows service (as in <code>memcached -d install</code>), but this option was <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fcode.google.com%2Fp%2Fmemcached%2Fissues%2Fdetail%3Fid%3D149&sref=rss">removed in version 1.4.5</a>. The simple alternative is to schedule memcached.exe to run using the <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTask_Scheduler%23Task_Scheduler_2.0&sref=rss">Task Scheduler service (Windows 2008/Vista/7)</a>.</p>
<p>You can create a task to run memcached on system startup using the following command line:</p>
<p style="padding-left: 30px;"><code>schtasks /create /sc onstart /tn memcached /tr "'c:\dev\utils\memcached-amd64\memcached.exe' -m 128"</code></p>
<p>Note the <code>-m 128</code> argument; this tells memcached to use up to 128MB of RAM. There are other <a title="Memcached command line arguments" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fcode.google.com%2Fp%2Fmemcached%2Fwiki%2FNewConfiguringServer%23Commandline_Arguments&sref=rss">command line arguments </a>available; most useful aside from <code>-m</code> are <code>-l</code> (to specify what IP addresses to bind to) and <code>-vv</code> (to add verbose logging to the console, useful for testing).</p>
<h4>Integrating memcached with PHP</h4>
<p>In order for PHP to use memcached, you must download the PHP memcached library and add it as an extension to PHP.</p>
<p>PHP extensions can be downloaded from <a title="PHP extension library downloads" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fdownloads.php.net%2Fpierre%2F&sref=rss">http://downloads.php.net/pierre</a>. Many different extensions are in here; the one I used was <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fdownloads.php.net%2Fpierre%2Fphp_memcache-5.2-nts-Win32-vc6-x86-20090408.zip&sref=rss">php_memcache-5.2-nts-Win32-vc6-x86-20090408.zip</a>. This extension matches two key requirements:</p>
<ul>
<li>PHP version 5.2 (the version installed using the <a title="Microsoft Web Platform Installer download" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.microsoft.com%2Fweb%2Fdownloads%2Fplatform.aspx&sref=rss">Web Platform Installer</a>)</li>
<li>A non-thread-safe version of the extension (the version of PHP installed is not thread safe, which provides <a title="FastCGI, PHP, and IIS7" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Flearn.iis.net%2Fpage.aspx%2F246%2Fusing-fastcgi-to-host-php-applications-on-iis-7%2F&sref=rss">performance improvements using FastCGI</a>)</li>
</ul>
<p>Getting the right version of the extension is important; download the thread-safe version, or the PHP 5.3 version, and it simply won&#8217;t work.</p>
<p>Once downloaded, take the <code>php_memcache.dll</code> and put it in the <code>ext</code> folder in your PHP directory (for me, <code>c:\Program Files (x86)\PHP\ext</code>). Then, open the <code>php.ini</code> file (in your PHP directory) and add the following line to the end:</p>
<p style="padding-left: 30px;"><code>extension=php_memcache.dll</code></p>
<p>Restart IIS (from the command line, type <code>iisreset</code>), and if you did everything right, memcached should now be available to PHP. If you want to check, you can <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fphp.net%2Fmanual%2Fen%2Ffunction.phpinfo.php&sref=rss">create a phpinfo page</a>; if php_memcache is listed in the output, the extension is registered correctly.</p>
<h4>Other links</h4>
<p>To find out more about PHP, memcached, and Windows, check out the following links.</p>
<ul>
<li><a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.NorthScale.com%2FMemcached&sref=rss">NorthScale Memcached</a> &#8211; a free, commercial memcached distribution that I couldn&#8217;t get to work in my environment</li>
<li><a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fpureform.wordpress.com%2F2008%2F01%2F10%2Finstalling-memcache-on-windows-for-php%2F&sref=rss">Installing memcache on Windows for PHP</a> &#8211; a blog post explaining something similar to what I just did</li>
<li><a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fcode.jellycan.com%2Fmemcached%2F&sref=rss">memcached from Jellycan Code</a> &#8211; an alternate memcached build for Windows that runs as a service</li>
<li><a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Flongvnit.com%2Fblog%2F%3Fp%3D1155&sref=rss">Installing memcached on Windows</a> &#8211; instructions for installing the Jellycan Code version of memcached</li>
</ul>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=436&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2010/09/02/installing-and-configuring-memcached-and-php-on-windows/' addthis:title='Installing and configuring memcached and PHP on Windows ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2010/09/02/installing-and-configuring-memcached-and-php-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More success converting from CommunityServer to vBulletin</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2008/08/26/more-success-converting-from-communityserver-to-vbulletin/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2008/08/26/more-success-converting-from-communityserver-to-vbulletin/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 21:48:30 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CommunityServer]]></category>
		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=279</guid>
		<description><![CDATA[<p>Back in July, I wrote about <a href="http://www.sidesofmarch.com/index.php/archive/2008/07/30/converting-from-communityserver-to-vbulletin/">my initial experiences</a> converting from <a href="http://www.communityserver.org">CommunityServer</a> to <a href="http://www.vbulletin.com">vBulletin</a>. At the time of that post, I was importing users, forums, and threads, but had issues importing posts. Well, I&#8217;m happy to say I&#8217;ve had more success since then.</p>
<p>Together with the help of Jerry (a member of the vBulletin team), we&#8217;ve improved the import scripts a number of ways. Prior to this effort, you were only able to import users, forums, threads, and posts. Now&#8230;</p>

Performance has been improved by rewriting some SQL queries, and in some cases optimizing them for SQL 2005. (SQL 2000 compliant queries are available, but commented out in the code.)
Private messages are imported, however they are not threaded (by design; vBulletin doesn&#8217;t thread private messages).
Forum groups are imported as top-level forums, so your CommunityServer group/forum structure is preserved.
SQL scripts are available to clean up post formatting differences between CS and vB.
Not a fix, but an important note: If you have <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2008/08/26/more-success-converting-from-communityserver-to-vbulletin/">More success converting from CommunityServer to vBulletin</a></span>]]></description>
			<content:encoded><![CDATA[<p>Back in July, I wrote about <a href="http://www.sidesofmarch.com/index.php/archive/2008/07/30/converting-from-communityserver-to-vbulletin/">my initial experiences</a> converting from <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.communityserver.org&sref=rss">CommunityServer</a> to <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.vbulletin.com&sref=rss">vBulletin</a>. At the time of that post, I was importing users, forums, and threads, but had issues importing posts. Well, I&#8217;m happy to say I&#8217;ve had more success since then.</p>
<p>Together with the help of Jerry (a member of the vBulletin team), we&#8217;ve improved the import scripts a number of ways. Prior to this effort, you were only able to import users, forums, threads, and posts. Now&#8230;</p>
<ul>
<li>Performance has been improved by rewriting some SQL queries, and in some cases optimizing them for SQL 2005. (SQL 2000 compliant queries are available, but commented out in the code.)</li>
<li>Private messages are imported, however they are not threaded (by design; vBulletin doesn&#8217;t thread private messages).</li>
<li>Forum groups are imported as top-level forums, so your CommunityServer group/forum structure is preserved.</li>
<li>SQL scripts are available to clean up post formatting differences between CS and vB.</li>
<li>Not a fix, but an important note: If you have lots of posts, you definitely need to increase your timeout periods in your php.ini. I set mine to 600 seconds before things started working reliably importing posts.</li>
</ul>
<p><span id="more-279"></span>There&#8217;s still a little more I want to do before I consider this &#8220;good enough&#8221; &#8212; notably, add support for migrating attachments, polls, and avatars &#8212; but the process now is certainly working, since I&#8217;ve used it to migrate the 700,000 post CSFBL forums from CommunityServer to vBulletin in a non-production environment.</p>
<p>Since vBulletin is a commercial product, to get access to the latest conversion files, you&#8217;ll need to contact vBulletin &#8212; don&#8217;t ask me for them, as I can&#8217;t give them out.</p>
<p>If you&#8217;re looking for an alternative to CommunityServer, now may be the time to seriously consider vBulletin.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=279&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2008/08/26/more-success-converting-from-communityserver-to-vbulletin/' addthis:title='More success converting from CommunityServer to vBulletin ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2008/08/26/more-success-converting-from-communityserver-to-vbulletin/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Converting from CommunityServer to vBulletin</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2008/07/30/converting-from-communityserver-to-vbulletin/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2008/07/30/converting-from-communityserver-to-vbulletin/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 22:15:27 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CommunityServer]]></category>
		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=266</guid>
		<description><![CDATA[<p>I&#8217;ve been using <a href="http://www.communityserver.org">CommunityServer</a> to power the <a href="http://forums.csfbl.com">forums at CSFBL</a> for a few years now, with mixed results. The version I am running (2.1) is a bit buggy and a poor performer in some respects, but it is serviceable. Still, with hundreds of thousands of posts, I really need something more reliable.</p>
<p>The obvious choice was to upgrade to CommunityServer 2008, but <a href="http://dev.communityserver.com/forums/t/498451.aspx">problems with</a> <a href="http://dev.communityserver.com/forums/t/498570.aspx">the upgrade script</a> and <a href="http://dev.communityserver.com/forums/p/497689/617251.aspx#617251">stickershock at the new price tag</a> pretty much put this right out of contention. I went out and bought a license for <a href="http://www.vbulletin.com/">vBulletin</a> &#8212; one of the most widely-used bulletin board products available &#8212; for $160, about 1/50th the price I&#8217;d pay to upgrade CommunityServer.</p>
<p>vBulletin offers <em>some</em> support for converting from CommuntyServer via their <a href="http://www.vbulletin.com/forum/forumdisplay.php?f=92">Impex</a> utility. Unfortunately, the current implementation they had was quirky and unreliable&#8230; but vBulletin gives you the source code (<em>everything</em>, including the import/export scripts for dozens of other forums), so I began to <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2008/07/30/converting-from-communityserver-to-vbulletin/">Converting from CommunityServer to vBulletin</a></span>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.communityserver.org&sref=rss">CommunityServer</a> to power the <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fforums.csfbl.com&sref=rss">forums at CSFBL</a> for a few years now, with mixed results. The version I am running (2.1) is a bit buggy and a poor performer in some respects, but it is serviceable. Still, with hundreds of thousands of posts, I really need something more reliable.</p>
<p>The obvious choice was to upgrade to CommunityServer 2008, but <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fdev.communityserver.com%2Fforums%2Ft%2F498451.aspx&sref=rss">problems with</a> <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fdev.communityserver.com%2Fforums%2Ft%2F498570.aspx&sref=rss">the upgrade script</a> and <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fdev.communityserver.com%2Fforums%2Fp%2F497689%2F617251.aspx%23617251&sref=rss">stickershock at the new price tag</a> pretty much put this right out of contention. I went out and bought a license for <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.vbulletin.com%2F&sref=rss">vBulletin</a> &#8212; one of the most widely-used bulletin board products available &#8212; for $160, about 1/50th the price I&#8217;d pay to upgrade CommunityServer.</p>
<p>vBulletin offers <em>some</em> support for converting from CommuntyServer via their <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.vbulletin.com%2Fforum%2Fforumdisplay.php%3Ff%3D92&sref=rss">Impex</a> utility. Unfortunately, the current implementation they had was quirky and unreliable&#8230; but vBulletin gives you the source code (<em>everything</em>, including the import/export scripts for dozens of other forums), so I began to tinker.</p>
<p><span id="more-266"></span></p>
<p>Looking at how the import/export worked, I was able to fix and patch to the point where it was working. There was quite a bit of trial and error (I&#8217;m no PHP expert) but in general the code was easy to follow and easy to modify.</p>
<p>I recently <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.vbulletin.com%2Fforum%2Fshowthread.php%3Ft%3D279700&sref=rss">posted on the vBulletin forums</a> and offered up some of my insight, and the guys at vBulletin seem to have identified the sales potential for having a solid CommunityServer to vBulletin converter. Hopefully, I&#8217;ll hear from <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.vbulletin.com%2Fforum%2Fmember.php%3Fu%3D24628&sref=rss">Jerry </a>soon and will be able to help get this conversion process working perfectly.</p>
<p>Until then, I&#8217;ve so far been able to import users, forums, and threads without issue. There&#8217;s some lingering issues related to importing posts (dates are getting lost in the import, and the overall process seems to die after a while, which could be a PHP memory issue), and I have to further tweak my private message import scripts. Hopefully with the help of the vBulletin team we can offer a viable solution to spending thousands of dollars to upgrade to the latest version of CommunityServer &#8212; not just to me, but to others, too.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=266&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2008/07/30/converting-from-communityserver-to-vbulletin/' addthis:title='Converting from CommunityServer to vBulletin ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2008/07/30/converting-from-communityserver-to-vbulletin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

