<?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>benwatts.ca &#187; server</title>
	<atom:link href="http://benwatts.ca/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://benwatts.ca</link>
	<description>Designer and Frontend Developer in Ottawa, Canada</description>
	<lastBuildDate>Fri, 22 Jul 2011 19:00:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Huge Mistake</title>
		<link>http://benwatts.ca/2009/huge-mistake/</link>
		<comments>http://benwatts.ca/2009/huge-mistake/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 01:18:13 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[mistake]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.benwatts.ca/?p=500</guid>
		<description><![CDATA[Ah. I had a little downtime recently &#8230; or &#8230; three days of downtime, actually. It seems as though I did &#8216;something to something&#8217; a long time ago that I didn&#8217;t test, so when I rebooted the server it decided to curl into a ball and rock back and forth. Oops! Worse, the last (and [...]]]></description>
			<content:encoded><![CDATA[<p>Ah. I had a little downtime recently &#8230; or &#8230; three days of downtime, actually. It seems as though I did &#8216;something to something&#8217; a long time ago that I didn&#8217;t test, so when I rebooted the server it decided to curl into a ball and rock back and forth.</p>
<p><em>Oops! </em></p>
<p>Worse, the last (and only) daily and weekly backups did nothing. I was screwed.</p>
<p>I thought it would be straightforward to get nginx, php, mysql running again, considering this is the third time I&#8217;ve set it up. How wrong I was. My first attempt was met with bad gateway errors, it didn&#8217;t seem like fcgi processes were spawning. Even the generally quiet mysql was complaining about about sockets.</p>
<p>My next rebuild I tried to get PHP-FPM working, but I quickly realized that I had no idea what I was doing and that patching and building php would probably be the death of me later on.</p>
<p>Three tries later and I was back up and running:</p>
<ol>
<li><strong>Initial Setup</strong><br />
Slicehost articles: Intrepid setup articles (<a href="http://articles.slicehost.com/2008/11/28/ubuntu-intrepid-setup-page-1">one</a>, <a href="http://articles.slicehost.com/2008/11/28/ubuntu-intrepid-setup-page-2">two</a>)<br />
I&#8217;m running 9.04 (Jaunty Jackalope) but it all worked splendidly.</li>
<li><strong>Installing nginx</strong><br />
Slicehost articles: nginx setup from source (<a href="http://articles.slicehost.com/2009/3/4/ubuntu-intrepid-installing-nginx-from-source">one</a>, <a href="http://articles.slicehost.com/2009/3/4/ubuntu-intrepid-adding-an-nginx-init-script">two</a>, <a href="http://articles.slicehost.com/2009/3/4/ubuntu-intrepid-nginx-from-source-layout">three</a>)<br />
I grabbed the latest stable release of nginx, not the one used in the article.</li>
<li><strong>PHP + nginx</strong><br />
Then came the dilemma of how to spawn FCGI PHP processes. Having completely forgot how I did it previously, I decided to go a route I know I didn&#8217;t take &#8212; using the lighttp fcgi launch script thing. (<a href="http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-ubuntu-9.04">this article</a> helped immensely with that).</li>
</ol>
<p>Overall, things appear to be running smoothly now. Fantastic.<br />
I&#8217;ve had it with server admin for the time being.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwatts.ca/2009/huge-mistake/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

