<?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>Uncorrupted Hosting&#187; High Performance Hosting &raquo; Uncorrupted.net</title>
	<atom:link href="http://uncorrupted.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://uncorrupted.net</link>
	<description>Your High Performance Web Host</description>
	<lastBuildDate>Tue, 18 May 2010 15:30:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Playing with snort and pfSense</title>
		<link>http://uncorrupted.net/technical-articles/remove-snort-ip-blocks-in-pfsense/</link>
		<comments>http://uncorrupted.net/technical-articles/remove-snort-ip-blocks-in-pfsense/#comments</comments>
		<pubDate>Tue, 18 May 2010 15:30:58 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[Technical Articles]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[pfsense]]></category>

		<guid isPermaLink="false">http://uncorrupted.net/?p=874</guid>
		<description><![CDATA[We&#8217;ve been having a blast with some new intel atom based pfSense firewalls here in the office.  The d510 boards perform amazingly well, even with a slew of snort rules loaded up.
We just replaced one of our Juniper SRX series firewalls with one of these little pfSense boxes and wouldn&#8217;t you know one of [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been having a blast with some new intel atom based pfSense firewalls here in the office.  The d510 boards perform amazingly well, even with a slew of snort rules loaded up.</p>
<p>We just replaced one of our Juniper SRX series firewalls with one of these little pfSense boxes and wouldn&#8217;t you know one of our own snort rules blocked us.  Here&#8217;s how we got back in:</p>
<p>Gain access to the pfSense shell.  We could have walked over to the box but that involved standing up, placing one foot infront of the other and repeating again and again.  Bah, who needs all that.</p>
<p>We SSHd to another machine, and from that machine we SSHd to a machine behind our firewall, and from that we SSHd to the LAN IP associated with our firewall. We logged in, chose option 8 (Local Shell), and did the following:</p>
<pre class="brush: bash;">
pfctl -t snort2c -T show</pre>
<p>This will show you all the IPs that have been blocked by triggering a snort rule</p>
<p>Then run this to remove you IP</p>
<pre class="brush: bash;">
pfctl -t snort2c -T delete xxx.xxx.xxx.xxx</pre>
<p>You should add your own IPs to the whitelist to prevent this from happening again.  <img src='http://uncorrupted.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/technical-articles/remove-snort-ip-blocks-in-pfsense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx Hotlink Protection</title>
		<link>http://uncorrupted.net/technical-articles/nginx-hotlink-protection/</link>
		<comments>http://uncorrupted.net/technical-articles/nginx-hotlink-protection/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:32:56 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[Technical Articles]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://uncorrupted.net/?p=745</guid>
		<description><![CDATA[A few clients have recently complained about other blogs linking to their images and leeching off their bandwidth.  Bandwidth is expensive and should be protected.  
Here&#8217;s a working solution:

location ~ \.(jpg&#124;jpeg&#124;bmp&#124;jif&#124;bmp&#124;gif&#124;png)$ {
                root   /path/to/public_html/;
   [...]]]></description>
			<content:encoded><![CDATA[<p>A few clients have recently complained about other blogs linking to their images and leeching off their bandwidth.  Bandwidth is expensive and should be protected.  </p>
<p>Here&#8217;s a working solution:</p>
<pre class="brush: bash;">
location ~ \.(jpg|jpeg|bmp|jif|bmp|gif|png)$ {
                root   /path/to/public_html/;
                valid_referers server_names none blocked;
                if ($invalid_referer) {
                return 403;
                }
            }
</pre>
<p>Some sites will need to allow some other sites to link to their images. If this is the case you can use the following rewrites &#8211; just modify and add domains as required</p>
<pre class="brush: bash;">
location ~ \.(jpg|jpeg|bmp|jif|bmp|gif|png)$ {
                root   /path/to/public_html/;
                valid_referers server_names none blocked www.theothersite.com *.theothersite.com;
                if ($invalid_referer) {
                return 403;
                }
            }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/technical-articles/nginx-hotlink-protection/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VPS Plans Upgraded &#8211; More RAM, &amp; Bandwidth</title>
		<link>http://uncorrupted.net/uncategorized/vps-plans-upgraded-more-ram-bandwidth/</link>
		<comments>http://uncorrupted.net/uncategorized/vps-plans-upgraded-more-ram-bandwidth/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 00:42:53 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://uncorrupted.net/?p=573</guid>
		<description><![CDATA[You&#8217;ve asked, and we&#8217;ve listened!  We&#8217;ve made the following changes to our VPS Packages:
The VPS-Spark Package has received an additional 25 Gigabytes of bandwidth as well as an additional 128 Megabytes of RAM.
The VPS-Blaze Package has received an additional 25 Gigabytes of bandwidth as well as an additional 256 Megabytes of RAM.
The VPS-Inferno Package has received an [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://uncorrupted.net/wp-content/uploads/2009/10/Tools.png" alt="Tools" title="Tools" width="128" height="128" class="alignleft size-full wp-image-578" />You&#8217;ve asked, and we&#8217;ve listened!  We&#8217;ve made the following changes to our VPS Packages:</p>
<p>The <span class="darkorangetext">VPS-Spark Package</span> has received an additional <strong>25 Gigabytes of bandwidth</strong> as well as an additional <strong>128 Megabytes of RAM</strong>.</p>
<p>The <span class="darkorangetext">VPS-Blaze Package</span> has received an additional <strong>25 Gigabytes of bandwidth</strong> as well as an additional <strong>256 Megabytes of RAM</strong>.</p>
<p>The <span class="darkorangetext">VPS-Inferno Package</span> has received an additional <strong>50 Gigabytes of bandwidth</strong> as well as an additional <strong>256 Megabyte of RAM</strong>.</p>
<p>We hope you all enjoy the benefits of these additional resources.</p>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/uncategorized/vps-plans-upgraded-more-ram-bandwidth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8.5 Released</title>
		<link>http://uncorrupted.net/news/wordpress-2-8-5-released-clients-please-upgrade/</link>
		<comments>http://uncorrupted.net/news/wordpress-2-8-5-released-clients-please-upgrade/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 12:51:12 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://uncorrupted.net/?p=565</guid>
		<description><![CDATA[WordPress 2.8.5 has hit the street.  This release is dubbed a &#8220;hardening release&#8221; and applying it fixes a few potential vulnerabilities.  We recommend that all clients upgrade to this new version of WordPress to ensure that you have the best available protection.
http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/
]]></description>
			<content:encoded><![CDATA[<p><img src="http://uncorrupted.net/wp-content/uploads/2009/02/wordpress-logo.png" alt="wordpress-logo" title="wordpress-logo" width="128" height="128" class="alignleft size-full wp-image-411" />WordPress 2.8.5 has hit the street.  This release is dubbed a &#8220;hardening release&#8221; and applying it fixes a few potential vulnerabilities.  We recommend that all clients upgrade to this new version of WordPress to ensure that you have the best available protection.</p>
<p><a href="http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/">http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/news/wordpress-2-8-5-released-clients-please-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHMCS Rewrite Rules for Nginx</title>
		<link>http://uncorrupted.net/technical-articles/whmcs-rewrite-rules-for-nginx/</link>
		<comments>http://uncorrupted.net/technical-articles/whmcs-rewrite-rules-for-nginx/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 18:20:57 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[Technical Articles]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Webserver]]></category>
		<category><![CDATA[whmcs]]></category>

		<guid isPermaLink="false">http://uncorrupted.net/?p=550</guid>
		<description><![CDATA[
WHMCS is a very popular client management package with a slew of billing, support, and product management options.  We use it here and have just recently moved our WHMCS site over to an nginx powered web server.  The rewrites have all been worked out and since there&#8217;s nothing to be found on the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://uncorrupted.net/wp-content/uploads/2009/10/nginx_logo.png" alt="nginx_logo" title="nginx_logo" width="320" height="119" class="size-full wp-image-553" /><br />
WHMCS is a very popular client management package with a slew of billing, support, and product management options.  We use it here and have just recently moved our WHMCS site over to an nginx powered web server.  The rewrites have all been worked out and since there&#8217;s nothing to be found on the subject via google we decided to share.  <img src='http://uncorrupted.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: bash;">
server {
            listen   80;
            server_name  my.uncorrupted.net;
            rewrite ^/(.*) https://my.uncorrupted.net/$1 permanent;
       }

server {
            listen   443;
            server_name my.uncorrupted.net;
            access_log /xxx/xxx/xxx/logs/access.log;
            error_log /xxx/xxx/xxx/logs/error.log;
	    	ssl on;
	    	ssl_certificate /xxx/xxx/xxx/.ssl/cert.pem;
	    	ssl_certificate_key /xxx/xxx/xxx/.ssl/key.pem;

            location /  {
                        root   /xxx/xxx/xxx/public_html/;
                        index  index.html index.php;
		    }

			location = /announcements {
        				rewrite ^  /announcements.php  last;
    		}

    		location /announcements/ {
        				rewrite  ^/announcements/([0-9]+)/[A-Za-z0-9_-]+\.html$ /announcements.php?id=$1 last;
    		}

    		location = /downloads {
        				rewrite ^  /downloads.php  last;
    		}

    		location /downloads/ {
        				rewrite ^/downloads/([0-9]+)/([^/]*)$ /downloads.php?action=displaycat&amp;catid=$1 last;
    		}
			location = /knowledgebase {
       					rewrite ^  /knowledgebase.php  last;
    		}
			location /knowledgebase/ {
        				rewrite  ^/knowledgebase/([0-9]+)/[A-Za-z0-9_-]+\.html$ /knowledgebase.php?action=displayarticle&amp;id=$1 last;
        				rewrite  ^/knowledgebase/([0-9]+)/([^/]*)$ /knowledgebase.php?action=displaycat&amp;catid=$1 last;
    		}

            # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
            location ~ \.php$ {
            			fastcgi_pass 127.0.0.1:9000;
            			fastcgi_index index.php;
            			include /usr/local/nginx/conf/fastcgi_params;
            			fastcgi_param SCRIPT_FILENAME /xxx/xxx/xxx/public_html/$fastcgi_script_name;
            }
}
</pre>
<p>Gest of luck &#8211; if you run into any issues write us a comment and we&#8217;ll see if we can help you work it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/technical-articles/whmcs-rewrite-rules-for-nginx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>$5.00 Off Coupon and a Free Month of Hosting!</title>
		<link>http://uncorrupted.net/promotions/5-00-off-coupon-and-a-free-month-of-hosting/</link>
		<comments>http://uncorrupted.net/promotions/5-00-off-coupon-and-a-free-month-of-hosting/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 01:06:33 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[Promotions]]></category>
		<category><![CDATA[Coupon]]></category>
		<category><![CDATA[Promotion]]></category>

		<guid isPermaLink="false">http://www.uncorrupted.net/?p=476</guid>
		<description><![CDATA[
Have you heard?!
Here at Uncorrupted Hosting, when you use the coupon code &#8211; 5DollarsOff &#8211; you will receive the following perks:
* $5.00 off coupon ($5.00 off each month, for a year!)
* 30 day money back guarantee
* We&#8217;ll migrate you for&#8230;FREE&#8230;with no down time!
More is always better, right? So, once you&#8217;re signed up &#8211; wait a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-479 alignleft" title="banknote" src="http://www.uncorrupted.net/wp-content/uploads/2009/08/banknote.png" alt="Uncorrupted Promotion" width="128" height="128" /></p>
<p>Have you heard?!</p>
<p>Here at Uncorrupted Hosting, when you use the coupon code &#8211; 5DollarsOff &#8211; you will receive the following perks:</p>
<p>* $5.00 off coupon ($5.00 off each month, for a year!)<br />
* 30 day money back guarantee<br />
* We&#8217;ll migrate you for&#8230;FREE&#8230;with no down time!</p>
<p>More is always better, right? So, once you&#8217;re signed up &#8211; wait a while. Then share your experience on your own blog, post a link back to Uncorrupted Hosting, and receive a FREE month of High Performance Hosting!</p>
<p>We look forward to serving you and hope to exceed your expectations!</p>
<blockquote><p>This promotion is for new customers only.  We&#8217;ll be doing a separate promotion for existing customers soon!</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/promotions/5-00-off-coupon-and-a-free-month-of-hosting/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New Website Design</title>
		<link>http://uncorrupted.net/news/new-website-design/</link>
		<comments>http://uncorrupted.net/news/new-website-design/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 00:53:22 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.uncorrupted.net/?p=464</guid>
		<description><![CDATA[As you&#8217;ve noticed we&#8217;ve changed our image a bit here at Uncorrupted Hosting.  The design itself was done by Kyee @ Designed By Kye &#8211; he&#8217;s an amazing artist and a pleasure to deal with.  If you&#8217;re looking to give your site a new look I suggest you check out Kyee&#8217;s portfolio.
We&#8217;ve always [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.uncorrupted.net/wp-content/uploads/2009/08/star.png" alt="star" title="star" width="128" height="128" class="alignleft size-full wp-image-465" />As you&#8217;ve noticed we&#8217;ve changed our image a bit here at Uncorrupted Hosting.  The design itself was done by Kyee @ <a href="http://kyee.co.uk/">Designed By Kye</a> &#8211; he&#8217;s an amazing artist and a pleasure to deal with.  If you&#8217;re looking to give your site a new look I suggest you check out <a href="http://kyee.co.uk/Portfolio/">Kyee&#8217;s portfolio</a>.</p>
<p>We&#8217;ve always been about <a href="https://my.uncorrupted.net/cart.php">High Performance Hosting</a> here at Uncorrupted, but we never pushed that as our niche&#8230; with the new design, we&#8217;re doing just that.  Over the last few months we&#8217;ve gone through a complete metamorphosis &#8211; we&#8217;ve changed everything from our vision to our hardware, from our design to our network.  We hope you&#8217;ll stay tuned for more information about or expanded (more economical) product line, our new hardware, and the crazy coupons/giveaways we&#8217;re about to release.</p>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/news/new-website-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Uncorrupted: Now taking advantage of virtualized infrastructure</title>
		<link>http://uncorrupted.net/news/uncorrupted-now-taking-advantage-of-virtualized-infrastructure/</link>
		<comments>http://uncorrupted.net/news/uncorrupted-now-taking-advantage-of-virtualized-infrastructure/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 14:39:07 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.uncorrupted.net/?p=417</guid>
		<description><![CDATA[Yup, I’ve done what I always wanted to do… I’ve virtualized Uncorrupted.  This was my goal from the begening, but I the servers I purchased did not support it… or so I thought.  The Dell Servers I have are dual processor machines, but are single core and do not have the virtualization technology [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.uncorrupted.net/wp-content/uploads/2009/04/xenserver5.png" alt="XenServer 5 - Now Powering Uncorrupted" title="xenserver5" width="128" height="128" class="alignleft wp-image-420" />Yup, I’ve done what I always wanted to do… I’ve virtualized Uncorrupted.  This was my goal from the begening, but I the servers I purchased did not support it… or so I thought.  The Dell Servers I have are dual processor machines, but are single core and do not have the virtualization technology built it.  One day, after pulling a server from the rack I decided to see what would happen if I tried installing XenServer on it.  To my surprise the installation went through without a hitch &#8211; it warned me that because I didn’t have the hardware based virtualization support on the processors that I couldn’t run Windows based virtual machines… but who needs windows?</p>
<p>I really like XenServer 5 from Citrix, but I think I’m going to look at some other options.  XenServer is now free, but it comes without the High Availability features and adding them would cost us about $2,300 &#8211; which is way over our budget.   I would also like a web based interface so I can access and manage things from anywhere, and I’d like to sell VPSs &#8211; and customers definately need an interface to reload the OS, force a reboot, and get to a console in case of emergencies.</p>
<p>So why is a virtualized Uncorrupted a better thing?  I can move the virtual servers over to a different physical machine if I need to replace hardware, add hardware, or patch XenServer… I can create backups and restore those backups quickly and easily (literally… 3 mouse clicks) in case of a hack or other emergency,  and it’s just plain cool  I can’t wait to see where this leads.  <img src='http://uncorrupted.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/news/uncorrupted-now-taking-advantage-of-virtualized-infrastructure/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What Happened at Uncorrupted?</title>
		<link>http://uncorrupted.net/news/what-happened-at-uncorrupted/</link>
		<comments>http://uncorrupted.net/news/what-happened-at-uncorrupted/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 14:05:38 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.uncorrupted.net/?p=414</guid>
		<description><![CDATA[Some of you may have seen my wife’s post about Uncorrupted a few weeks ago.  She expressed her view about what happened but I feel like I should provide some technical details.
I typically keep one backup server racked in the datacenter in case of a hardware failure, or configuration issue that would require significant [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you may have seen my wife’s post about Uncorrupted a few weeks ago.  She expressed her view about what happened but I feel like I should provide some technical details.</p>
<p><img class="alignleft size-full wp-image-423" title="red" src="http://www.uncorrupted.net/wp-content/uploads/2009/04/red.png" alt="red" width="128" height="128" />I typically keep one backup server racked in the datacenter in case of a hardware failure, or configuration issue that would require significant down time to resolve.  I was made aware of an issue that was preventing some people from visiting clients websites and was unable to identify the problem.  Firewalls were flushed, tests were performed, and I was able to get to the site from test servers in multiple different countries.  I threw up a test site on the backup server and one of the folks who couldn’t load the website was able to get in, so I decided to move all the accounts onto this other server.</p>
<p>The migration started at about 3:00am &#8211; I started by restoring accounts that had private IP addresses and had them all back online in a matter of 20 minutes.  I moved on to the shared IP clients and was unable to get a single one restored.  I’m still not entirely sure what the problem was &#8211; but atfter about 6 hours of workin on the issue I decided there wasn’t anything I could do without heading down to the datacenter.  I was tired, frusterated, and emotionally drained so rather than prolonging my agony, I called up a friend who also runs a hosting company and asked him if he would like some new clients.  I was not prepared to leave everyone’s website offline for an extended period and I needed some rest.  In the end, I believe I made the right decision… it was a difficult one to make because it basically meant the end of Uncorrupted (as I gave all the clients away), but it was very important for me to get everyone’s website back online.</p>
<p>So that’s what happened… stay tuned to hear where Uncorrupted is headed.  It’s exciting.  <img src='http://uncorrupted.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/news/what-happened-at-uncorrupted/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Move Wordpress With No Down Time</title>
		<link>http://uncorrupted.net/technical-articles/move-wordpress-with-no-down-time/</link>
		<comments>http://uncorrupted.net/technical-articles/move-wordpress-with-no-down-time/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 13:26:41 +0000</pubDate>
		<dc:creator>Uncorrupted-Michael</dc:creator>
				<category><![CDATA[Technical Articles]]></category>

		<guid isPermaLink="false">http://www.uncorrupted.net/?p=101</guid>
		<description><![CDATA[The goal here is to transfer your WordPress website off your current host's server and (hopefully) onto one of the Uncorrupted Servers.   There are other ways of performing the migration, but I've found this to be the easiest. This guide assumes you have a basic understanding of terminal commands and that you can find your public_html directory on your current host's server.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-384" title="pathing" src="http://www.uncorrupted.net/wp-content/uploads/2009/03/pathing.png" alt="pathing" width="128" height="128" />I&#8217;ve moved about 50 WordPress installations from various servers over the years and have found, what I consider, the &#8220;best practices&#8221;.   The goal here is to transfer your WordPress website off your current host&#8217;s server and (hopefully) onto one of the Uncorrupted Servers.   <span id="more-101"></span> There are other ways of performing the migration, but I&#8217;ve found this to be the easiest.  This guide assumes you have a basic understanding of terminal commands and that you can find your public_html directory on your current host&#8217;s server.</p>
<p>Requirements:</p>
<ul>
<li>Terminal (SSH) access to your new and old web servers</li>
<li>An SSH client (I recommend <a href="http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe" target="_blank">Putty</a>)</li>
<li>A text editor for modifying the dump.sql file we&#8217;re going to create (I recommend <a href="http://www.aptana.com/">Aptana Stuido</a> because it performs well when opening large (20+MB) text files)</li>
</ul>
<p>During the migration process you&#8217;ll be copying/pasting paths a lot, so open up a new text document in Aptana and paste the following into it:</p>
<pre lang="text">Old Server Info:
Path to public_html = /replace/with/real/path/
Wordpress DB Name = replace_Me
Wordpress DB User Name = replace_MeToo
Wordpress DB Password = NewSecretPassword

New Server Info:
Path to public_html = /home//domains/example.com/public_html/
Wordpress DB Name = replace_Me
Wordpress DB User Name = replace_MeToo
Wordpress DB Password = NewSecretPassword</pre>
<p>Now open Putty and make a connection to your old server. Once you&#8217;re logged in, cd (change directory) into the public_html directory.<br />
Type:</p>
<pre class="brush: bash;">pwd</pre>
<p>Paste the output into your text file.  This is the path to public_html on the <strong>old</strong> server.</p>
<p>Log into your control panel and create a new database, copy the DB Name, User Name, &amp; Password and paste it into your text document.</p>
<p>Back to Putty&#8230; you should still be inside your old hosts public_html directory.  Type these commands:</p>
<pre class="brush: bash;">cd ..
tar cvzf backup.tgz public_html
mv backup.tgz public_html</pre>
<p>So, we moved up one directory and created a gzipped tar archive of your entire public_html folder.  I choose to gzip the entire folder because if you&#8217;re in the directory and pass it the * operator it will skip hidden files (like .htaccess files), which we definitely want to leave in place. We also moved the backup file into your public_html folder so we can download it from the new server.</p>
<p>Open up another putty window and connect to your new server.  cd into your public_html directory (@ Uncorrupted it is ~/domains/example.com/public_html/)<br />
Let&#8217;s do some cleanup:</p>
<pre class="brush: bash;"> rm -f index.html logo.jpg</pre>
<p>Download and extract the backup file:</p>
<pre class="brush: bash;">wget http://example.com/backup.tgz
tar zxvf backup.tgz
cd public_html
mv * ..</pre>
<p>So, we downloaded the backup, extracted it, moved into the folder it created (public_html) and moved all the files out.  We still need to move any relevant hidden files, so:</p>
<pre class="brush: bash;">ls -la
mv .htaccess ..
mv
cd ..
rm -rf public_html</pre>
<p>So now you&#8217;re back inside the real public_html directory on the new host. Grab the path and add it to your text file:</p>
<pre class="brush: bash;">pwd</pre>
<p>Lets tell WordPress which database to use and the username/password combo needed to open it:</p>
<pre class="brush: bash;">nano wp-config.php</pre>
<p>Find:  define(&#8216;DB_NAME&#8217;, &#8216;&#8230;&#8217;); Replace &#8230; with the DB Name in your text document<br />
Find   define(&#8216;DB_USER&#8217;, &#8216;&#8230;&#8217;);  Replace &#8230; with the User Name in your text document<br />
Find   define(&#8216;DB_PASSWORD&#8217;, &#8216;&#8230;&#8217;); Replace &#8230; with the Password in your text document</p>
<p>Once you&#8217;re done editing the file, press  + o to save the changes and  + x to exit.</p>
<p>Let&#8217;s go back the the other Putty window (your old host)  and dump the MySQL database &#8211; replace the DB info with the DB info from your text document.</p>
<pre class="brush: bash;">cd public_html
mysqldump -u -p  &amp;gt; dump.txt</pre>
<p>Download the text file to your computer and open it up with Aptana.  We need to replace the path info throughout the database so click on Edit -&gt; Find/Replace<br />
In the find block, paste your old path to public_html and in the new block paste your new path to public_html.  Make sure the Wrap Search check box is checked and click Replace All.  Save the text document and upload it into your public_html directory on the new server.</p>
<p>Import the text file into your new MySQL DB:</p>
<pre class="brush: bash;">mysql -u -p  &amp;lt; dump.txt</pre>
<p>At this point, WordPress should be working.  All of your posts, comments, media, etc should be working just as they were on your old host.  You can test everything by editing the hosts file on your PC</p>
<p>Go to: C:\Windows\System32\drivers\etc and open up the hosts file with a text editor, go to the end of the file and type the IP address of your new server, press tab &amp; type your domain name, save the document, close your web browser, and clean your DNS cache (click start, click run type ipconfig /flushdns &amp; press enter). Next, open your browser and go to your site &#8211; everything should work. When you&#8217;re done testing, delete the lines you added to your hosts file and then save/close it.</p>
<p>At this point, all that&#8217;s left to do is change the DNS servers for your site and point them at the DNS servers provided by your new host.  Some folks will continue to hit your old site and some will start hitting your new site.  Within a couple days all your visitors will be hitting the new one.  Keep in mind that it may be a while before you hit the new server too &#8211; that&#8217;s just the way DNS works.  If you want to hit it instantly, check out my <a href="http://www.uncorrupted.net/useful-resources/opendns-a-great-tool-for-website-migration/">post about OpenDNS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://uncorrupted.net/technical-articles/move-wordpress-with-no-down-time/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
