<?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>pig-monkey.com &#187; wordpress</title>
	<atom:link href="http://pig-monkey.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://pig-monkey.com</link>
	<description>Here are recorded many goings and comings, doings and beings; stories, symbols and meanings. Gossamer threads that may be woven into a larger web: a story of this Age of the World.</description>
	<lastBuildDate>Sun, 25 Jul 2010 08:11:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>An Ubuntu VPS on Slicehost: WordPress</title>
		<link>http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-wordpress/</link>
		<comments>http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-wordpress/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 20:04:50 +0000</pubDate>
		<dc:creator>Pig Monkey</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.pig-monkey.com/?p=1412</guid>
		<description><![CDATA[As mentioned previously, I&#8217;ve recently moved this domain over to Slicehost. What follows is Part Four of a guide, compiled from my notes, to setting up an Ubuntu Hardy VPS. See also Part One, Part Two, and Part Three. I prefer to install WordPress via Subversion, which makes updating easier. We&#8217;ll have to install Subversion <a href="http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-wordpress/">[...]</a>]]></description>
			<content:encoded><![CDATA[<p><em>As <a href="http://pig-monkey.com/2008/06/09/a-move-to-slicehost/">mentioned previously</a>, I&#8217;ve recently moved this domain over to <a href="http://www.slicehost.com/">Slicehost</a>. What follows is Part Four of a guide, compiled from my notes, to setting up an Ubuntu Hardy VPS. See also <a href="http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-basic-setup">Part One</a>, <a href="http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-web-server">Part Two</a>, and <a href="http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-mail">Part Three</a>.</em></p>
<p>I prefer to install <a href="http://wordpress.org/">WordPress</a> via Subversion, which makes updating easier. We&#8217;ll have to install Subversion on the server first:<br />
<pre>
$ sudo aptitude install subversion
</pre></p>
<p><span id="more-1412"></span></p>
<p>After that, <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion#New_Install_2">the WordPress Codex has a guide to the rest of the install</a>.</p>
<p>Nothing further is needed, unless you want fancy rewrites. In that case, we&#8217;ll have to make a change to your Nginx vhost config at <code>/etc/nginx/sites-available/mydomain.com</code>. Add the following to your server block under <code>location / {</code>:<br />
<pre>
# wordpress fancy rewrites
&nbsp;&nbsp;if (-f $request_filename) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (-d $request_filename) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^(.+)$ /index.php?q=$1 last;
</pre></p>
<p>While we&#8217;re here, I usually tell Nginx to cache static files by adding the following right above the <code>location / {</code> block:<br />
<pre>
# serve static files directly
location ~* ^.+\.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|css)$ {
&nbsp;&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;/home/user/public_html/mydomain.com/public;
&nbsp;&nbsp;&nbsp;&nbsp;expires 7d;
&nbsp;&nbsp;&nbsp;&nbsp;break;
}
</pre></p>
<p>That&#8217;ll go in the https server section, too. Now, enable rewrites in your WordPress config. I use the following &#8220;custom&#8221; structure:<br />
<pre>
/%year%/%monthnum%/%day%/%postname%/
</pre></p>
<p>Then, restart Nginx:</p>
<p><pre>
$ sudo /etc/init.d/nginx restart
</pre></p>
<p>And there you have it! You know have a working, new web server and mail server.</p>
<p>(Previously, we did a <a href="http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-basic-setup">basic setup</a>, <a href="http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-web-server">installed a web server</a>, and <a href="http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-mail">installed a mail server</a>.)</p>
]]></content:encoded>
			<wfw:commentRss>http://pig-monkey.com/2008/06/10/an-ubuntu-vps-on-slicehost-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
