<?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>That PHP Girl &#187; Blog</title>
	<atom:link href="http://www.thatphpgirl.com/tag/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thatphpgirl.com</link>
	<description>PHP, WordPress, and Theme Development</description>
	<lastBuildDate>Wed, 19 Oct 2011 08:03:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Changing your WordPress URL (Fantastico Install)</title>
		<link>http://www.thatphpgirl.com/changing-your-wordpress-url-fantastico-install/</link>
		<comments>http://www.thatphpgirl.com/changing-your-wordpress-url-fantastico-install/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 02:04:17 +0000</pubDate>
		<dc:creator>Nikole Gipps</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[Fantastico]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://thatphpgirl.com/?p=123</guid>
		<description><![CDATA[If you used parts of my post on Moving and Upgrading your WordPress to change your blog&#8217;s URL (if say, for example, you were trying to take a development site live with the final URL), and something still isn&#8217;t working right, check your .htaccess and wp-config.php files&#8212;especially if you installed WordPress through Fantastico. I recently [...]]]></description>
			<content:encoded><![CDATA[<p>If you used parts of my post on <a href="http://thatphpgirl.com/moving-and-upgrading-your-wordpress/">Moving and Upgrading your WordPress</a> to change your blog&#8217;s URL (if say, for example, you were trying to take a development site live with the final URL), and something still isn&#8217;t working right, check your .htaccess and wp-config.php files&mdash;especially if you installed WordPress through Fantastico.</p>
<p>I recently ran into this problem on <a href="http://www.sheandheplanweddings.com/">She &amp; He Plan Weddings</a>. I had changed the blog&#8217;s URL in phpMyAdmin, but several items were still not working (including the admin) because it was directing me back to the development URL. I checked and rechecked the WordPress settings, the database, everything. The problem was with .htaccess and wp-config.php. I didn&#8217;t install WordPress on this site&mdash;I only came in to redo the theme and make some customizations&mdash;and I&#8217;ve always used a fresh WordPress.org install instead of using host-based installers.</p>
<p>The first problem was with .htaccess. Somehow the .htaccess file became unwritable (whether it was intentional by the blog installer or it is some Fantastico default), and the new blog URL was not being reflected. Changing the .htaccess file from this:</p>
<blockquote><p># BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /~ciaraine/<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /~ciaraine/index.php [L]<br />
&lt;/IfModule&gt;</p>
<p># END WordPress</p>
</blockquote>
<p>to this:</p>
<blockquote><p># BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;</p>
<p># END WordPress</p>
<p></code></p>
<p>solved that problem entirely. If you'll see, the first one was assuming the site's URL should be http://gator872.hostgator.com/~ciaraine/, as it was in development. The second one reflects the removal of the directory, as the final site appeared to be at a root level at <a href="http://www.sheandheplanweddings.com/">http://www.sheandheplanweddings.com/</a>.</p>
<p>For more information (and to prevent problems for yourself), <a href="http://codex.wordpress.org/Changing_File_Permissions">WordPress has this guide on how to make your files have the correct permissions</a>. If you want to leave the .htaccess file unwritable, you'll have to use the method I have outlined here.</p>
<p>The second problem was with the wp-config.php file, which is located in the root folder of your WordPress install. A Fantastico install includes this line:</p>
<blockquote><p>define('WP_SITEURL', 'http://your-url-here.com');</p>
</blockquote>
<p>that I have never seen on a self-installed WordPress installation. (Just to be sure, I <a href="http://wordpress.org/download/">downloaded the new WordPress 2.8.1</a> and checked the wp-config-sample.php file&mdash;and no, it's not in there.) This line, again, was forcing the URL to be the original http://gator872.hostgator.com/~ciaraine/ instead of the new <a href="http://www.sheandheplanweddings.com/">http://www.sheandheplanweddings.com/</a>. I set this element to read</p>
<blockquote><p>define('WP_SITEURL', 'http://www.sheandheplanweddings.com');</p>
</blockquote>
<p>but I probably could have just deleted out the line entirely as well.</p>
<p>I hope this post saves someone else from the hassle I just went through trying to push this site live. I think the whole experience also reinforced my habit of doing things &quot;the long way&quot; (by downloading WordPress and installing it myself) instead of relying on one-click installers like Fantastico. While these sort of things are good for those who are unfamiliar with installing software or for saving time, I think there is value into knowing every setting going into your install by doing it yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thatphpgirl.com/changing-your-wordpress-url-fantastico-install/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Moving and Upgrading your WordPress</title>
		<link>http://www.thatphpgirl.com/moving-and-upgrading-your-wordpress/</link>
		<comments>http://www.thatphpgirl.com/moving-and-upgrading-your-wordpress/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 05:34:13 +0000</pubDate>
		<dc:creator>Nikole Gipps</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://thatphpgirl.com/?p=103</guid>
		<description><![CDATA[Note: This post assumes you are using the self-installed WordPress on a Linux-based server running MySQL and phpMyAdmin. It also assumes that all your current plugins and your current theme is compatible with the latest version of WordPress. Please read through all of these instructions and make sure you know what they mean before you [...]]]></description>
			<content:encoded><![CDATA[<p><i>Note: This post assumes you are using the self-installed WordPress on a Linux-based server running MySQL and phpMyAdmin. It also assumes that all your current plugins and your current theme is compatible with the latest version of WordPress.</i></p>
<p>Please read through all of these instructions and make sure you know what they mean before you begin. Backing up your site and database before any transfer is always a wise move.</p>
<h2>Step 1: Download your Database</h2>
<p>Log into your database through phpMyAdmin and go to the Export tab. Use these values for your export:</p>
<ul>
<li>Export ALL TABLES in SQL format.</li>
<li>Check STRUCTURE, and then &quot;Add IF NOT EXISTS&quot;, &quot;Add AUTO_INCREMENT value&quot;, and &quot;Enclose table and field names with backquotes&quot;.</li>
<li>Check DATA and then &quot;Complete inserts&quot;, &quot;Extended inserts&quot;, &quot;Use hexadecimal for BLOB&quot;, and &quot;Export type INSERT&quot;.</li>
<li>Check SAVE AS FILE and save to your hard drive.</li>
</ul>
<h2>Step 2: Download your Current Site</h2>
<p>FTP to your current site and download the following items:</p>
<ul>
<li>The folder WP-CONTENT.</li>
<li>The file WP-CONFIG.PHP.</li>
<li>Any files or folders you may have added outside the WordPress structure, like a CSS or IMAGES directory.</li>
</ul>
<h2>Step 3: Upload your New WordPress</h2>
<p>For a general discussion of installing WordPress, see the <a href="http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install">5-minute Installation Guide at WordPress.org</a>. For this, you will be doing things a bit differently because you are transferring a blog, not just installing a new one.</p>
<ol>
<li><a href="http://wordpress.org/download/">Download the latest version of WordPress</a>. Unpack the files and upload everything but the WP-CONFIG-SAMPLE.PHP file to your new server.</li>
<li>Upload your old custom theme (in the WP-CONTENT folder you downloaded earlier) and any images/css/etc you may have had outside the WordPress folder structure at your old site.</li>
<li>Open the new WP-CONFIG-SAMPLE.PHP file and your old WP-CONFIG.PHP file. You will be modifying the WP-CONFIG-SAMPLE.PHP file. Follow the instructions in the file to get your <a href="https://api.wordpress.org/secret-key/1.1/">Secret API Key</a>. Then use the information in your old WP-CONFIG.PHP for the database and username, and get the hostname from your new host. Save this WP-CONFIG-SAMPLE.PHP file on your hard drive, rename it to WP-CONFIG.PHP and upload it to your new server at the root file level. (See below for additional notes on the WP-CONFIG.PHP file and changes you may have to make to it.)</li>
<li>Hold off on uploading your existing plugins until you are sure your upgrade installation is working.</li>
</ol>
<h2>Step 4: Set Up your New Database</h2>
<p>Log into the phMyAdmin on your new host, click on the Import tab, and Import the SQL file you downloaded in step 1. If for some reason you can&#8217;t use the original database and/or username, make sure you put the new database and/or username in your WP-CONFIG.PHP file on your new server. If you have changed your base URL, see the special instructions below before proceeding on to step 5.</p>
<h2>Step 5: Install and Upgrade your Database</h2>
<p>Go to the install URL on your new site, http://example.com/wp-admin/install.php for example, and follow the instructions to install WordPress and upgrade the database (if needed/prompted to do so).</p>
<h2>Step 6: Add Plugins</h2>
<p>If you had plugins originally installed, and your site is now working, you can upload the plugins in your original WP-CONTENT/PLUGINS folder back to the new site. Once they are uploaded, the WP-ADMIN will tell you if there are updates available for these plugins before you enable them.</p>
<h2>Special Step: If You Changed the URL</h2>
<p>If you have changed the site URL, or you&#8217;ve gone from a temporary URL (such as http://hostname.com/~your_account/) to your permanent URL (http://www.your_domain.com), you will need to follow this additional instruction between steps 4 and 5 above:</p>
<ol>
<li>Log in to phpMyAdmin and click on the SQL tab.</li>
<li>Enter the following code into the SQL window<br />
<blockquote><p>
UPDATE wp_options SET option_value = &#8216;http://new-url.com&#8217; WHERE option_name = &#8216;home&#8217;;<br />
UPDATE wp_options SET option_value = &#8216;http://new-url.com&#8217; WHERE option_name = &#8216;siteurl&#8217;;<br />
UPDATE wp_posts SET guid = replace(guid, &#8216;http://old-url.com&#8217;,'http://new-url.com&#8217;);<br />
UPDATE wp_posts SET post_content = replace(post_content, &#8216;http://old-url.com&#8217;, &#8216;http://new-url.com&#8217;);
</p></blockquote>
<p>replacing &quot;http://new-url.com&quot; with your new URL, &quot;http://old-url.com&quot; with your old URL, and wp_ (as in wp_posts, wp_options) with your table prefix. (The default on WordPress is wp_ but you may have changed it on your previous installation. If your default is not wp_ in your tables, you&#8217;ll also make sure this table prefix is reflected in your new WP-CONFIG.PHP file and re-upload before proceeding to step 5.)</li>
</ol>
<p>And there you have it! If you need additional assistance or your custom theme needs to be updated to work with the newest version of WordPress, consider <a href="http://thatphpgirl.com">hiring That PHP Girl</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thatphpgirl.com/moving-and-upgrading-your-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

