<?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>silentYak &#187; Apache</title>
	<atom:link href="http://www.silentyak.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silentyak.com</link>
	<description>...a universal platform for global junk...</description>
	<lastBuildDate>Sun, 09 Oct 2011 07:19:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Minimizing Downtime</title>
		<link>http://www.silentyak.com/2008/10/08/minimizing-downtime/</link>
		<comments>http://www.silentyak.com/2008/10/08/minimizing-downtime/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 16:26:34 +0000</pubDate>
		<dc:creator>RRI</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Downtime]]></category>

		<guid isPermaLink="false">http://www.silentyak.com/?p=559</guid>
		<description><![CDATA[Now that this site is hosted on my own server, I wanted ensure that the server is up and running most of the time. Although five 9’s is not my availability target, I needed some mechanism by which changes and updates that I made to the site were not reflected in the production website (can [...]]]></description>
			<content:encoded><![CDATA[<p>Now that this site is hosted on my own server, I wanted ensure that the server is up and running most of the time. Although five 9’s is not my availability target, I needed some mechanism by which changes and updates that I made to the site were not reflected in the production website (can I call it that?) until the right time.</p>
<p>The solution is a simple one: run a development website in parallel, so that all changes can be tested on that first. Updating the primary website would be like flipping a switch. Here’s how I managed this:</p>
<ol>
<li>Set up a new virtual host for the development site.</li>
<li>Set up a new database for the development site and populate it with existing records.</li>
<li>Update the WordPress configuration file to select a different database based on the current working directory.</li>
<li>Set up server authentication for the development website.</li>
<li>Write an <strong>init<em> </em></strong>script to copy (<em>rsync</em>) all the files from the development site to the primary one. Exclude the authentication files like <code>htpasswd</code>, of course.</li>
<li>Set up a dependency on the new script in Apache, so that restarting the service also restarts Apache (this is useful at times).</li>
</ol>
<p>It’s as simple as that!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentyak.com/2008/10/08/minimizing-downtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

