<?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>IKnowFooBar &#187; server</title>
	<atom:link href="http://www.iknowfoobar.co.uk/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iknowfoobar.co.uk</link>
	<description>A developer's [mis] take?</description>
	<lastBuildDate>Wed, 23 Jun 2010 11:52:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<cloud domain='www.iknowfoobar.co.uk' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>How to get Ubuntu 8.04 Server running Lighttpd ready for the mighty WordPress</title>
		<link>http://www.iknowfoobar.co.uk/2009/02/05/how-to-get-ubuntu-804-server-running-lighttpd-ready-for-the-mighty-wordpress/</link>
		<comments>http://www.iknowfoobar.co.uk/2009/02/05/how-to-get-ubuntu-804-server-running-lighttpd-ready-for-the-mighty-wordpress/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 16:19:03 +0000</pubDate>
		<dc:creator>Giles Smith</dc:creator>
				<category><![CDATA[IT, Tech & Internet]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual server]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.panicroon.co.uk/?p=633</guid>
		<description><![CDATA[This site has always been hosted on shared hosting, along with a few other blogs I maintain for friends (On The Wrong Planet and Darth McCarth to name a couple&#8230;). Even while I was freelancing I have always used shared hosting as it has always been perfect for my needs However the popularity of this [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_635" class="wp-caption alignright" style="width: 180px"><a href="http://www.lighttpd.net/"><img class="size-full wp-image-635" title="Lighttpd Logo" src="http://www.pureroon.co.uk/wp-content/uploads/2008/10/light_logo_170px.png" alt="Lighttpd - Fly Light" width="170" height="168" /></a><p class="wp-caption-text">Lighttpd - Fly Light</p></div>
<p>This site has always been hosted on shared hosting, along with a few other blogs I maintain for friends (<a title="On The Wrong Planet" href="http://www.onthewrongplanet.co.uk" target="_blank">On The Wrong Planet</a> and <a title="Darth McCarth: Conspiracies Uncovered" href="http://darthmccarth.co.uk" target="_blank">Darth McCarth</a> to name a couple&#8230;). Even while I was freelancing I have always used shared hosting as it has always been perfect for my needs However the popularity of this blog has grown a lot in the last 7 months so I felt it was time to invest in some meatier hosting to something that would give me more control over the resources available to me and my site.</p>
<p>I don&#8217;t think that I require a dedicated server quite yet, especially not considering how much they cost for a reasonable one, so I decided to take the <a title="Virtual Private Server" href="http://en.wikipedia.org/wiki/Virtual_private_server" target="_blank">Virtual Server</a> route. There are many very decent offers around, I chose to go with <a title="CheapVPS - Virtual Private Servers" href="http://www.cheapvps.co.uk/" target="_blank">CheapVPS</a> (A brand of <a title="VAServe Ltd" href="http://www.vaserv.com/" target="_blank">VAServe Ltd</a>) on the reccomendation of a colleague and Linux Engineer. Right lets get started then!</p>
<h3>Install Lighttpd (Lighty)</h3>
<p>I am assuming that you already have Ubuntu 8.04 installed on your VPS here as most VPSs come with the operating system pre-installed or provide a system like HyperVM to manage your server setup. I am also assuming that you have root access to your server, which is also provided by most VPS. If you don&#8217;t have root access then you will need to prepend these commands with sudo.</p>
<p>Log in as root and type:</p>
<pre name="code">apt-get install lighttpd</pre>
<p>Watch as Lighty is downloaded and installed on your system. Once Lighty is installed you may want to remove Apache as it will probably just get in your way! To remove type:</p>
<pre><code>apt-get remove apache2</code></pre>
<p>If you have installed with a default setup then you will find Lighty&#8217;s main configuration at <em>/etc/lighttpd/lighttpd.conf</em> and the service script will be located <em>/etc/init.d/lighttpd</em></p>
<p>to start, stop, restart or reload Lighty use these commands respectively:</p>
<pre><code>/etc/init.d/lighttpd start
/etc/init.d/lighttpd stop
/etc/init.d/lighttpd restart
/etc/init.d/lighttpd force-reload</code></pre>
<h3>Configuring Lighty for Virtual Hosting</h3>
<p>In a similar fashion to Apache, Lighttpd keeps its configuration files in one location and expects you the create a symlink to them from another location to active certain features. These two folders can be found at <em>/etc/lighttpd/conf-available</em> and <em>/etc/lighttpd/conf-enabled</em>.</p>
<p>To enable virtual hosts and create the symlink type:</p>
<pre><code>ln -s /etc/lighttpd/conf-available/10-simple-vhost.conf /etc/lighttpd/conf-enabled/10-simple-vhost.conf</code></pre>
<p>Before creating the Lighty configuration for the virtual hosts we need to create all of the folders and files that are going to be required. As I allow my friends access to the server to modify their own websites I need to make sure that they don&#8217;t have access to other users websites. To create a user type:</p>
<pre><code>adduser username</code></pre>
<p>Where <em>username</em> should be replace by whatever username you want. Once a user is created we need to create the folders where their website files and logs are going to be stored and give them the correct permissions and ownerships. Again replace <em>username</em> with whatever you like and <em>domain.com</em> with your domain:</p>
<pre><code>mkdir /home/username/domains
mkdir /home/username/domains/domain.com
mkdir /home/username/domains/domain.com/html
mkdir /home/username/domains/domain.com/logs
touch /home/username/domains/domain.com/logs/access.log
touch /home/username/domains/domain.com/logs/error.log
chown -R username:username /home/username/domains
chown www-data:www-data /home/username/domains/domain.com/logs/*</code></pre>
<p>You can repeat this process for however many users and domains that you require. Or if you know what you are doing you could create a script to automate this process.</p>
<p>Now lets edit the virtual hosts config file:</p>
<pre><code>vi /etc/lighttpd/conf-available/10-simple-vhost.conf</code></pre>
<p>Now here is an example config block for <a href="http://www.pureroon.co.uk" target="_self">pureroon.co.uk</a>:</p>
<pre><code>$HTTP["host"] =~ "(^|.)(panicroon|pureroon|roon)(.co|.me).uk$" {
    server.document-root = "/home/roon/domains/pureroon.co.uk/public_html"
    server.errorlog = "/home/roon/domains/pureroon.co.uk/logs/error.log"
    accesslog.filename = "/home/roon/domains/pureroon.co.uk/logs/access.log"
    url.rewrite = (
        "^/(wp-.+).*/?" =&gt; "$0",
        "^/(sitemap.xml)" =&gt; "$0",
        "^/(sitemap.xml.gz)" =&gt; "$0",
        "^/(robots.txt)" =&gt; "$0",
        "^/(xmlrpc.php)" =&gt; "$0",
        "^/(favicon.ico)" =&gt; "$0",
        "^/(cgi-.+).*/?" =&gt; "$0",
        "^/(icon.+).*/?" =&gt; "$0",
        "^/(.+)/?$" =&gt; "/index.php/$1"
    )
}</code></pre>
<p>The first line</p>
<pre><code>$HTTP["host"] =~ "(^|.)(panicroon|pureroon|roon)(.co|.me).uk$"</code></pre>
<p>is telling lighty which domain to look out for, you can use regular expressions here and you can see that I am capturing panicroon.co.uk, pureroon.co.uk and roon.me.co.uk. I then let wordpress redirect the user to the correct domain (pureroon.co.uk).</p>
<p>The next 3 lines are telling lighty where to find the document root (the location of your web files), and the locations of the error log and access log respectively.</p>
<p>To be able to use <strong>URL rewriting</strong> in your wordpress blog you need to set up the url.rewrite lighty module. The problem I have found with the url rewriting is that lighty doesn&#8217;t support the Apache &#8216;if file doesn&#8217;t exist function&#8217; so you have to give it a list of files that shouldn&#8217;t be rewritten:</p>
<pre><code>"^/(sitemap.xml)" =&gt; "$0"</code></pre>
<p>will redirect &#8216;/sitemap.xml&#8217; to itself. The final line:<br />
<code>"^/(.+)/?$" =&gt; "/index.php/$1"</code><br />
redirects all other requests to &#8216;/index.php&#8217; and the wordpress software will take care of everything from there.</p>
<p>That&#8217;s it, restart Lighty and you are ready to start installing <a title="MySQL Open Source Database Engine" href="http://www.mysql.com/" target="_blank">MySQL</a> and finally <a title="The Mighty WordPress Blogging Software" href="http://wordpress.org/" target="_blank">WordPress</a>, check back soon for the next two stages</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iknowfoobar.co.uk/2009/02/05/how-to-get-ubuntu-804-server-running-lighttpd-ready-for-the-mighty-wordpress/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Facebook and Dell are teaming up with a new Cloud</title>
		<link>http://www.iknowfoobar.co.uk/2008/08/26/facebook-and-dell-are-teaming-up-with-a-new-cloud/</link>
		<comments>http://www.iknowfoobar.co.uk/2008/08/26/facebook-and-dell-are-teaming-up-with-a-new-cloud/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 13:42:09 +0000</pubDate>
		<dc:creator>Giles Smith</dc:creator>
				<category><![CDATA[IT, Tech & Internet]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[data center]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.pureroon.co.uk/?p=299</guid>
		<description><![CDATA[Cnet have announced that Dell and Facebook are prepping a &#8216;significant&#8217; announcement. Quote So what, exactly, are they doing together? Well, we already know Dell provides servers for Palo Alto, Calif.-based Facebook, but what other plans the two have hatched together beyond that is unclear. The event is scheduled for next Tuesday, but other than [...]]]></description>
			<content:encoded><![CDATA[<p>Cnet have announced that Dell and Facebook are prepping a &#8216;significant&#8217; announcement.</p>
<p><a title="Quote" href="http://news.cnet.com/8301-1023_3-10020590-93.html?hhTest=1" target="_blank">Quote</a></p>
<blockquote><p>So what, exactly, are they doing together? Well, we already know Dell provides servers for Palo Alto, Calif.-based Facebook, but what other plans the two have hatched together beyond that is unclear. The event is scheduled for next Tuesday, but other than sending out a nicely worded invitation, the only thing the companies are saying about the partnership is that it involves &#8220;the next generation of cloud computing.&#8221;</p></blockquote>
<p><a title="Facebook borrowed $100 Million" href="http://www.datacenterknowledge.com/archives/2008/May/12/facebook_borrows_100_million_to_buy_servers.html" target="_blank">Facebook recently borrowed $100 Million</a> as reported by Data Center Knowledge, I would guess a fair proportion of that money will be dropped straight into Dell&#8217;s pockets as part of a new deal. The announcement is planned for next week, so lets see what happens!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iknowfoobar.co.uk/2008/08/26/facebook-and-dell-are-teaming-up-with-a-new-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
