<?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>coffee2code.com &#187; User</title>
	<atom:link href="http://coffee2code.com/category/resource-audience/user/feed/" rel="self" type="application/rss+xml" />
	<link>http://coffee2code.com</link>
	<description>pro-gram-mer: n. a person who converts coffee into code</description>
	<lastBuildDate>Tue, 07 Feb 2012 05:43:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Conversion from Movable Type to WordPress</title>
		<link>http://coffee2code.com/archives/2004/06/24/conversion-from-movable-type-to-wordpress/</link>
		<comments>http://coffee2code.com/archives/2004/06/24/conversion-from-movable-type-to-wordpress/#comments</comments>
		<pubDate>Fri, 25 Jun 2004 00:03:16 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Installation/configuration]]></category>
		<category><![CDATA[User]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.coffee2code.com/archives/2004/06/24/conversion-from-movable-type-to-wordpress/</guid>
		<description><![CDATA[I&#8217;ve converted Movable Type to WordPress four times now (two sites, initially converted for evaluation purposes, then converted for real). Here&#8217;s the essense of what I did, the customizations I made, and what I encountered: Exported data from MT, saving the data locally in a file named import.txt. Copied import.txt to WordPress&#8217;s /wp-admin/ dir Modified [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve converted Movable Type to WordPress four times now (two sites, initially converted for evaluation purposes, then converted for real).  Here&#8217;s the essense of what I did, the customizations I made, and what I encountered:</p>
<p><span id="more-5"></span></p>
<ol>
<li>Exported data from MT, saving the data locally in a file named import.txt.</li>
<li>Copied import.txt to WordPress&#8217;s /wp-admin/ dir</li>
<li>Modified /wp-admin/import-mt.php from
<p><code>define(&#039;MTEXPORT&#039;, &#039;&#039;);</code></p>
<p>-to-</p>
<p><h4>define(&#039;MTEXPORT&#039;, &#039;import.txt&#039;);</h4></p>
<p>such that import.txt is the name of the file created in step 1</li>
<li>[This step is probably optional for most people, but not for the two blogs I've converted:]<br />
For the two sites, I overloaded the &#8220;Extended Body&#8221; field in MT.  For one site, I used it as a news link, for the other it was used for moods.  In both cases the field is not always defined for every post, and in the page templates, I needed to be able to ask if the field had data in it, if so, then wrap the data in certain HTML formatting.  The &#8220;Extended Body&#8221; field fit those parameters, and wasn&#8217;t often used otherwise.  However, running the import against the MT-exported text file resulted in those fields being tacked onto post body field, merged by &#8220;&lt;!&#8211;more&#8211;&gt;&#8221;, in WP.</p>
<p>In WP, I wanted to take advantage of the very cool &#8220;Custom Fields&#8221; feature, defining a custom key (&#8220;link&#8221; and &#8220;mood&#8221;, respectively for the two sites) and use MT&#8217;s &#8220;Extended Body&#8221; text as the custom field value.  I did so by:</p>
<ol>
<li>Commenting out this line:
<p><code>if (&#039;&#039; != $extended) $extended = &quot;&amp;#92;n&amp;lt;!--more--&amp;gt;&amp;#92;n$extended&quot;;</code></li>
<li>Changing this line:
<p><code>$post_content = addslashes($body . $extended);</code></p>
<p>-to-</p>
<p><h4>$post_content = addslashes($body);</h4></li>
<li>After this line:
<p><code>echo &quot; Post imported successfully...&quot;;</code></p>
<p>Inserted this:</p>
<p><pre><h4>// Now for link meta-data
$wpdb-&gt;query(&quot;
        INSERT INTO $tablepostmeta
        (post_id,meta_key,meta_value)
        VALUES (&#039;$post_id&#039;,&#039;link&#039;,&#039;$extended&#039;)
&quot;);
</h4></pre></p>
<p><str>UPDATE:</str> I should&#8217;ve wrapped the previous command in an <code>if (&#039;&#039; != $extended) { }</code> so that the &#8216;link&#8217; meta key wasn&#8217;t created for every post, regardless of whether it had a link or not.</p>
<p>Where &#8216;link&#8217; is the name of the custom field you wanted to create.</li>
</ol>
</li>
<li>Ran <a href="http://www.sitename.com/wp-admin/import-mt.php" class="autohyperlink" title="http://www.sitename.com/wp-admin/import-mt.php" target="_blank">www.sitename.com/wp-admin/import-mt.php</a>
<ul>
<li>On an earlier install I received an error message similiar to that mentioned <a href="http://wordpress.org/support/6/5553">here</a> at the WP support forum.  As noted in the link, it seems to be a PHP memory limit problem only occurring on FreeBSD.  The fix was to modify /usr/local/etc/php.ini and change this line:
<p><h4>memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)</h4></p>
<p>-to-</p>
<p><h4>memory_limit = 128M      ; Maximum amount of memory a script may consume (8MB)</h4></p>
<p>After the change, Apache needed to be restarted.</li>
<li>On a second import (from scratch again) (which occurred after the MT blog being imported had accumulated more posts and comments since the previous import (only a few days or at most a couple weeks&#8217; worth.. ~16 posts), clicking &#8220;let&#8217;s go&#8221; on the install-mt.php page returned a page with nothing but the WordPress logo on it.
<p>However, the problem was solved by the same memory_limit adjustment mentioned above.</li>
<li>I also discovered that though WP will successfully reimport entries for a site, and is smart enough not to create duplicate entries as a result, it does not do a very deep comparison.  I haven&#8217;t looked at the code to determine how much of the entry it checks before deciding it has it already, but I know it won&#8217;t import newer comments for a post previously imported.</li>
</ul>
</li>
<li>Just before the actual import of the data into the database, WP prompts for how all posts for each MT author should be remapped to existing (or new) WP authors.  For all the cases I&#8217;ve handled, the blogs have only had one author.  I wanted WP to assign the admin user (a re-profiled &#8216;site admin&#8217; user whose name at that point matches with the MT blog&#8217;s author) to be assigned all of the posts.  I DID NOT want WP to create a new user.  However, regardless of how I left the entry field blank and chose the existing user from the dropdown, or how I other times defined a name in the entry field (which I understand to be tantemount to creating a new user with the name contained in the entry field), a new user was created to own all of the imported posts, usually with the same name as the already existing user.  I must say I was miffed each and every time.  I wound up having to execute the following SQL query directly into the MySQL server:
<p><h4>UPDATE wp_posts SET post_author = 1</h4></p>
<p>Obviously, you&#8217;d have to use whatever your posts table is named if you had customized from the default used above.  You might also be assigned the posts to an author other than the one with the id of 1.  If you&#8217;ve got multiple authors, you&#8217;ll obviously need to customize a different SQL query.  Then go back and verify that the newly created author(s) no longer has any posted associated with it, and delete him.</li>
<li>In php.ini, restored the memory_limit setting&#8217;s value to 8M</li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://coffee2code.com/archives/2004/06/24/conversion-from-movable-type-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installation of WordPress</title>
		<link>http://coffee2code.com/archives/2004/06/19/installation-of-wordpress/</link>
		<comments>http://coffee2code.com/archives/2004/06/19/installation-of-wordpress/#comments</comments>
		<pubDate>Sat, 19 Jun 2004 20:01:43 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Installation/configuration]]></category>
		<category><![CDATA[User]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.coffee2code.com/archives/2004/06/19/installation-of-wordpress/</guid>
		<description><![CDATA[Here&#8217;s the fully enumerated steps undertaken to install WordPress. Preparation MySQL Via webmin, added myself as a user Created the database &#8216;wordpress&#8217; PHP Had to create the /usr/local/etc/php.ini file (using php.ini-recommended as the basis) Apache (all are in reference to /usr/local/etc/apache/httpsd.conf) Added the &#8216;DirectoryIndex&#8217; directive, which for some reason wasn&#8217;t present DirectoryIndex index.php index.html index.htm [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the fully enumerated steps undertaken to install WordPress.</p>
<p><span id="more-4"></span><br />
<strong>Preparation</strong></p>
<ol>
<li>MySQL
<ol>
<li>Via webmin, added myself as a user</li>
<li>Created the database &#8216;wordpress&#8217;</li>
</ol>
</li>
<li>PHP
<ol>
<li>Had to create the /usr/local/etc/php.ini file (using php.ini-recommended as the basis)</li>
</ol>
</li>
<li>Apache (all are in reference to /usr/local/etc/apache/httpsd.conf)
<ol>
<li>Added the &#8216;DirectoryIndex&#8217; directive, which for some reason wasn&#8217;t present<br />
<code>DirectoryIndex index.php index.html index.htm</code></p>
<li>Ensured the following lines were present:<br />
<pre><code>AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps</code></pre></li>
<li>[<em>Though I had actually done this after the actual install, this could just as easily have been done at this point</em>] Turned mod_rewrite on for vhost:<br />
<code>RewriteEngine On</code></li>
</li>
</ol>
</li>
</ol>
<p><strong>Installation</strong></p>
<ol>
<li><a href="http://sourceforge.net/projects/cafelog/">Downloaded</a> latest release, 1.2.</li>
<li>scp&#8217;d file to server.  unzipped in root dir of the site.  mv&#8217;d all the files up a directory since they unpacked into the &#8220;wordpress&#8221; subdir.</li>
<li>Modified wp-config-sample.php by giving it my mySQL username, password, db name, and db table prefix and renamed it to wp-config.php.</li>
<li>Logged in to <a href="http://www.coffee2code.com/wp-admin/install.php" class="autohyperlink" title="http://www.coffee2code.com/wp-admin/install.php" target="_blank">www.coffee2code.com/wp-admin/install.php</a></li>
<li>step 1 -> ok<br />
step 2 -> entered site name<br />
step 3 -> noted temp pw</li>
<li>Logged in; changed user profile info</li>
<li>Configured the site via the Admin interface&#8217;s &#8216;Options&#8217;</li>
<li>Moved /wp-admin/install.php to /wp-admin/orig.install.php</li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://coffee2code.com/archives/2004/06/19/installation-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

