<?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>alex robinson &#187; Wordpress</title>
	<atom:link href="http://alexr.norova.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexr.norova.com</link>
	<description></description>
	<lastBuildDate>Wed, 27 Jan 2010 08:25:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migrating mom&#8217;s wordpress</title>
		<link>http://alexr.norova.com/2008/migrating-moms-wordpress/</link>
		<comments>http://alexr.norova.com/2008/migrating-moms-wordpress/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 12:53:36 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[uploads]]></category>

		<guid isPermaLink="false">http://alexr.norova.com/?p=127</guid>
		<description><![CDATA[Getting multiple wordpress blogs into one place.
1. Change the upload location to a folder in the main directory of the sub-domain. The example here is kitsquilts.norova.com
I made a directory at kitsquilts.norova.com/wp-uploads
In the Settings &#62;&#62; miscellaneous section, I changed:
Store uploads in this folder to: /home/norova2/public_html/kitsquilts/wp-uploads
And the (says it&#8217;s optional, but necessary) full html path to: http://kitsquilts.norova.com/wp-uploads
Now [...]]]></description>
			<content:encoded><![CDATA[<p>Getting multiple wordpress blogs into one place.</p>
<p>1. Change the upload location to a folder in the main directory of the sub-domain. The example here is kitsquilts.norova.com</p>
<p>I made a directory at kitsquilts.norova.com/wp-uploads</p>
<p>In the Settings &gt;&gt; miscellaneous section, I changed:</p>
<p>Store uploads in this folder to: /home/norova2/public_html/kitsquilts/wp-uploads</p>
<p>And the (says it&#8217;s optional, but necessary) full html path to: http://kitsquilts.norova.com/wp-uploads</p>
<p>Now all future uploads should be directed to this folder. All old uploads are still pointed to the old upload folder, so I need to actually edit the MySql table itself to clear up the inconsistency.</p>
<p>Then in the MySqlPHP menu,  I performed the following two queries:</p>
<p>UPDATE wp_posts SET guid = replace(guid, &#8216;wp-content/uploads&#8217;,'wp-uploads&#8217;);<br />
UPDATE wp_posts SET post_content = replace(post_content, &#8216;wp-content/uploads&#8217;,'wp-uploads&#8217;);</p>
<p>&#8230;as per the instructions of <a href="http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/">this guy</a>.</p>
<p>Then it turned out, there were some leftover inconsistencies from when I had moved mom&#8217;s site from a sub-dir (wp_kitsquilts/) to the main site (/). Basically &#8220;wp_kitsquilts&#8221; appeared in many MySql tables. So I used the following commands, in this order to clean them up:</p>
<p>UPDATE wp_postmeta SET meta_value = replace(meta_value, &#8216;/wp_kitsquilts/wp-content/uploads/&#8217;,'/wp-uploads/&#8217;);<br />
UPDATE slimstat SET resource = replace(resource, &#8216;/wp_kitsquilts/wp-content/uploads/&#8217;,'/wp-uploads/&#8217;);<br />
UPDATE slimstat SET resource = replace(resource, &#8216;/wp_kitsquilts/&#8217;,'/&#8217;);<br />
UPDATE wp_posts SET guid = replace(guid, &#8216;/wp_kitsquilts/&#8217;,'/&#8217;);</p>
<p>I figured out which tables to edit by using the phpmyadmin search commands to search for the strings &#8220;/wp_kitsquilts/wp-content/uploads/&#8221; and &#8220;/wp_kitsquilts/&#8221;, so that I could then replace them in the tables with the appropriate values. Now all of mom&#8217;s old uploaded pics show up just fine, and appear in the gallery the way they should &#8211; finally!</p>
<p>2. Get all of the wordpress files back into their own handy directory.</p>
<p>I went to the main directory of kitsquilts.norova.com and collected all files and folders that pertained to wordpress, except for index.php. Then I moved them to a subfolder called &#8220;wordpress0/&#8221;. I updated the &#8220;home&#8221; and &#8220;site_url&#8221; fields in the MySql table to reflect the new locations. I also edited the line in index.php which loads the wp-header.php file, making sure it pointed inside the directory &#8220;wordpress0/&#8221;.</p>
<p>So far, the uploads for mom&#8217;s site will be in an independent directory outside of any wordpress heirarchy, and all of the wordpress heirarchy is contained in its own folder &#8220;wordpress0&#8243;.</p>
<p>3. Set up multiblog config files for calling up mom&#8217;s site. Basically just make a VUSER as per the multiblog instructions. Then make a mb-config-kitsquilts.php config file with mom&#8217;s database and login info.</p>
<p>4. Create a symlink to www.norova.com/wordpress/ on mom&#8217;s subdomain using add_symlink.php:</p>
<blockquote><p>&lt;?php<br />
symlink( &#8216;/home/norova2/public_html/wordpress/&#8217;, &#8216;kitsquilts/wordpress&#8217; );<br />
?&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://alexr.norova.com/2008/migrating-moms-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
