<?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>LinuxSoftware &#187; blog</title>
	<atom:link href="http://linuxsoftware.co.nz/blog/tag/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxsoftware.co.nz/blog</link>
	<description>Coding and tramping in Aotearoa / New Zealand</description>
	<lastBuildDate>Tue, 08 May 2012 09:41:50 +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>Fixed blog</title>
		<link>http://linuxsoftware.co.nz/blog/2008/10/fixed-blog</link>
		<comments>http://linuxsoftware.co.nz/blog/2008/10/fixed-blog#comments</comments>
		<pubDate>Mon, 20 Oct 2008 05:08:01 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[LinuxSoftware]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://linuxsoftware.co.nz/blog/?p=156</guid>
		<description><![CDATA[Sorted out the problem I had before after upgrading to WordPress 2.6.2.Â  It was to do with my unorthodox wp-config.php file.Â  When WordPress is installed all the files, code, content and templates, go into /usr/share/wordpress.Â  A while back I wanted to run multiple blogs on the one system, with different contents and templates, but I [...]]]></description>
			<content:encoded><![CDATA[<p>Sorted out the problem I had before after upgrading to WordPress 2.6.2.Â  It was to do with my unorthodox wp-config.php file.Â  When WordPress is installed all the files, code, content and templates, go into /usr/share/wordpress.Â  A while back I wanted to run multiple blogs on the one system, with different contents and templates, but I wanted them to share the same code.</p>
<p>The solution (which I can&#8217;t remember where I found) is all the code files and directories for the blog are symlinks back to /usr/share/wordpress, but the wp-content directory is local for each blog, then an Apache environment variable is set for each blog to point to its config file.Â Â  I won&#8217;t go into the details because it doesn&#8217;t work anymore.Â  The problem now is the ABSPATH constant is being set in a new file wp-load.php before wp-config.php is loaded where it used to be set.Â </p>
<p>ABSPATH points to the base directory for the WordPress files.Â  I need it to point to the local (per-blog) location, but wp-load.php is forcing it to /usr/share/wordpress.Â  My new solution is to have the ABSPATH I want stored in a Apache environment file and hack wp-load.php to set ABSPATH to that.Â  It&#8217;s much more ugly because I am now hacking code files instead of just config files, but it works.</p>
<p>In my Apache conf file I have: <code>SetEnv BLOG_ABSPATH "/home/david/www/blog"</code></p>
<p>My wp-load.php is hacked so that it has: <code>define('ABSPATH', $_SERVER['BLOG_ABSPATH']);</code></p>
<p>Then the files in /home/david/www/blog are either symlinks to /usr/share/wordpress or real files depending on whether I want them shared for all blogs or just for this one.</p>
<p>Funny thing is I&#8217;m no longer running multiple blogs, but I still prefer to have it as an option.  And this way means my local stuff lives under /home, while the code still stays in /usr/share/wordpress.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsoftware.co.nz/blog/2008/10/fixed-blog/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Broken blog</title>
		<link>http://linuxsoftware.co.nz/blog/2008/10/broken-blog</link>
		<comments>http://linuxsoftware.co.nz/blog/2008/10/broken-blog#comments</comments>
		<pubDate>Thu, 16 Oct 2008 20:57:28 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[LinuxSoftware]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://linuxsoftware.co.nz/blog/?p=135</guid>
		<description><![CDATA[It&#8217;s Friday morning and before leaving for Te Aroha I decided to update WordPress to 2.6.2.Â  This has broken my theme .Â  There is WiFi at the motel, maybe I&#8217;ll get it fixed down there.Â  Not going to do anything more on it right now, so you&#8217;re stuck with the default theme.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s Friday morning and before leaving for Te Aroha I decided to update WordPress to 2.6.2.Â  This has broken my theme <img src='http://linuxsoftware.co.nz/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> .Â  There is WiFi at the motel, maybe I&#8217;ll get it fixed down there.Â  Not going to do anything more on it right now, so you&#8217;re stuck with the default theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsoftware.co.nz/blog/2008/10/broken-blog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yet Another Blog</title>
		<link>http://linuxsoftware.co.nz/blog/2007/12/yet-another-blog</link>
		<comments>http://linuxsoftware.co.nz/blog/2007/12/yet-another-blog#comments</comments>
		<pubDate>Sat, 29 Dec 2007 19:17:11 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[LinuxSoftware]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://linuxsoftware.co.nz/blog/2007/12/30/yet-another-blog</guid>
		<description><![CDATA[Yes, this is yet another boring blog with posts about my cat and what I had for dinner. There&#8217;s still a heap of improvements I want to make, but it looks like I&#8217;m finally ready to start putting some content up here. This is the latest incarnation of a long line of homepages, going all [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, this is yet another boring blog with posts about my <a href="/wiki/Oliver">cat</a> and what I had for dinner.  There&#8217;s still a heap of improvements I want to make, but it looks like I&#8217;m finally ready to start putting some content up here.</p>
<p>This is the latest incarnation of a long line of homepages, going all the way back to one I had to learn Vi to create at Auckland University in 1997.  (I&#8217;m writing the draft for this post in <a href="/wiki/Vim">Vim</a>).</p>
<p>For posterity my old HTML <a href="/blog.html">blog from 2003-2004</a> is still here.  I moved my website to being 100% wiki after that, but now it&#8217;s back to a blog/gallery/wiki mix.</p>
<p>Time for some acknowledgments.  The blog is powered by <a href="http://wordpress.org" target="_blank">WordPress</a>, the gallery is running <a href="http://gallery.menalto.com" target="_blank">Gallery2</a>, and the wiki is running the <a href="http://moinmo.in" target="_blank">MoinMoin</a> wiki engine.  This stylish theme is the Stardust WordPress theme by <a href="http://www.tomstardust.com" target="_blank">Tom Baldovino</a> hacked mercilessly to make it work for the whole site.  And I&#8217;m running inside a Xen virtual machine which is running Linux (Fedora) with Apache, MySQL, PHP, Python, with a touch of Javascript thrown in, all hosted by <a href="http://slicehost.com" target="_blank">SliceHost</a>.</p>
<p>So welcome to my blog.Â  It&#8217;ll be boring, but no one is forcing you to read it. <img src='http://linuxsoftware.co.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsoftware.co.nz/blog/2007/12/yet-another-blog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

