<?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>Jonathan&#039;s blog &#187; Web</title>
	<atom:link href="http://blog.jonathangazeley.com/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jonathangazeley.com</link>
	<description>A journal of Linux, gadgets, and their incompatibility. And other stuff.</description>
	<lastBuildDate>Sat, 28 Jan 2012 00:23:04 +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>My first Wikipedia article</title>
		<link>http://blog.jonathangazeley.com/2011/01/my-first-wikipedia-article/</link>
		<comments>http://blog.jonathangazeley.com/2011/01/my-first-wikipedia-article/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 00:51:04 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[church]]></category>
		<category><![CDATA[Paul's]]></category>
		<category><![CDATA[St]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=1156</guid>
		<description><![CDATA[For someone who nominally &#8220;doesn&#8217;t like writing&#8221;, I rather enjoy writing articles on my blog. I never particularly enjoyed English at school, but now that I have a technical job that requires me only to make brief notes, I relish the opportunity to write about something I&#8217;m interested in once in a while. I&#8217;ve been [...]]]></description>
			<content:encoded><![CDATA[<p>For someone who nominally &#8220;doesn&#8217;t like writing&#8221;, I rather enjoy writing articles on my blog. I never particularly enjoyed English at school, but now that I have a technical job that requires me only to make brief notes, I relish the opportunity to write about something I&#8217;m interested in once in a while.</p>
<p><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxMS8wMS82MDBweC1XaWtpcGVkaWEtbG9nby5wbmc="><img class="alignright size-thumbnail wp-image-1158" title="Wikipedia logo" src="http://blog.jonathangazeley.com/wp-content/uploads/2011/01/600px-Wikipedia-logo-150x150.png" alt="" width="150" height="150" /></a>I&#8217;ve been wanting to write something for Wikipedia for some time, but there&#8217;s almost nothing I know enough about to be authoritative, but that is specialised enough that I&#8217;m the first to write about it. A few months ago I started making some notes and collecting references about <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5zdHBhdWxzc3RvY2tpbmdmb3JkLm9yZy51ay8=">St Paul&#8217;s Church</a> in Nuneaton, where I grew up. As with most other well-intended projects, it fell by the wayside in my busy life.</p>
<p>However, this week I saw news of <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy53aXJlZC5jby51ay9uZXdzL2FyY2hpdmUvMjAxMS0wMS8xNS93aWtpcGVkaWEtYmlydGhkYXk=">Wikipedia&#8217;s 10<sup>th</sup> birthday</a>, and had a slightly more personal reminder that <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9KaW1teV9XYWxlcw==">Jimmy Wales</a>, its founder, <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL25ld3MuYmJjLmNvLnVrL2xvY2FsL2JyaXN0b2wvaGkvcGVvcGxlX2FuZF9wbGFjZXMvbmV3c2lkXzkzNjAwMDAvOTM2MDU0NS5zdG0=">spoke in Bristol</a>. This was enough of a stimulus to kick me back into action, and I spent some time transferring the article from my computer to a draft article on Wikipedia. I added some references, and after my &#8220;<a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9XaWtpcGVkaWE6VXNlcl9hY2Nlc3NfbGV2ZWxzI0F1dG9jb25maXJtZWRfdXNlcnM=">probationary period</a>&#8221; at Wikipedia (at least ten edits and at least four days of membership) I was able to move the page to the live site.</p>
<p>So here it is &#8211; I hope you enjoy reading about <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9TdF9QYXVsJTI3c19DaHVyY2hfU3RvY2tpbmdmb3Jk">St Paul&#8217;s church, Stockingford</a>. Hopefully by the time you read this, the page won&#8217;t have been deleted by editors.</p>
<p>As with all good wiki pages, there&#8217;s more I want to add, and I&#8217;m sure the page will be expanded in due course.</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1156" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2011/01/my-first-wikipedia-article/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>St Paul&#8217;s Church</title>
		<link>http://blog.jonathangazeley.com/2010/11/st-pauls-church/</link>
		<comments>http://blog.jonathangazeley.com/2010/11/st-pauls-church/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 11:12:39 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[church]]></category>
		<category><![CDATA[Paul's]]></category>
		<category><![CDATA[St]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=1072</guid>
		<description><![CDATA[Some time ago, back in 2001, I set up the first website for St Paul&#8217;s Church, Stockingford. There have been a few iterations since then, but today I&#8217;m pleased to announce the latest edition. It has been fully redesigned to include more dynamic elements, provide more useful information, and require less maintenance. It&#8217;s based on [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago, back in 2001, I set up the first website for St Paul&#8217;s Church, Stockingford.</p>
<p>There have been a few iterations since then, but today I&#8217;m pleased to announce <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5zdHBhdWxzc3RvY2tpbmdmb3JkLm9yZy51ay8=">the latest edition</a>.</p>
<p>It has been fully redesigned to include more dynamic elements, provide more useful information, and require less maintenance. It&#8217;s based on WordPress, so we (my Dad and I) no longer have to edit static HTML and mess about with FTP.</p>
<p>As before, the website is kindly hosted by <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5yaWRnZW9uLW5ldHdvcmsuY28udWsv">Ridgeon Network</a>.</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1072" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/11/st-pauls-church/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A strange suggestion</title>
		<link>http://blog.jonathangazeley.com/2010/10/a-strange-suggestion/</link>
		<comments>http://blog.jonathangazeley.com/2010/10/a-strange-suggestion/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 20:22:00 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[automated]]></category>
		<category><![CDATA[gambling]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=1058</guid>
		<description><![CDATA[I happened to be looking at the website of a company that offers virtual private servers earlier today. This particular company has a box on their front page with a few questions about what you need your server to do, and it recommends you a suitable server package. But I was slightly surprised at the [...]]]></description>
			<content:encoded><![CDATA[<p>I happened to be looking at the website of a company that offers <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9WaXJ0dWFsX3ByaXZhdGVfc2VydmVy">virtual private servers</a> earlier today. This particular company has a box on their front page with a few questions about what you need your server to do, and it recommends you a suitable server package. But I was slightly surprised at the second-to-last option:</p>
<div id="attachment_1060" class="wp-caption aligncenter" style="width: 320px"><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxMC8xMC90YWdhZGFiLmNvbV8xLnBuZw=="><img class="size-full wp-image-1060" title="Server sorter" src="http://blog.jonathangazeley.com/wp-content/uploads/2010/10/tagadab.com_1.png" alt="" width="310" height="318" /></a><p class="wp-caption-text">Server sorter</p></div>
<p>All the other options are sensible, but <strong>automated online gambling</strong>? I had no idea that there was a legitimate market for such a thing, let alone that a company would risk its reputation by offering a a controversial, although legal service.</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1058" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/10/a-strange-suggestion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jonathan&#8217;s Blog now on new &#8220;hardware&#8221;</title>
		<link>http://blog.jonathangazeley.com/2010/09/jonathans-blog-now-on-new-hardware/</link>
		<comments>http://blog.jonathangazeley.com/2010/09/jonathans-blog-now-on-new-hardware/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 22:14:22 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=983</guid>
		<description><![CDATA[This blog, and my other blogs, used to run on a rather old server: two 1GHz Pentium III processors, 1GB memory and 2 x 18GB SCSI hard drives. I host with Ridgeon Network, which is owned by my friend Chris. I help him out with some networking stuff from time to time so he loaned [...]]]></description>
			<content:encoded><![CDATA[<p>This blog, and my other blogs, used to run on a rather old server: two 1GHz Pentium III processors, 1GB memory and 2 x 18GB SCSI hard drives. I host with <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5yaWRnZW9uLW5ldHdvcmsuY28udWsv">Ridgeon Network</a>,  which is owned by my friend Chris. I help him out with some networking  stuff from time to time so he loaned me this spare server for personal  use.</p>
<p>A few weeks back one of the hard drives failed. Service continued as normal but it was an acute reminder that the server was getting old.</p>
<p>Recently Chris bought a powerful server for use as a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy52bXdhcmUuY29tL3Byb2R1Y3RzL3ZzcGhlcmUtaHlwZXJ2aXNvci9pbmRleC5odG1s">VMWare ESXi</a> hypervisor, along with a large iSCSI <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9TdG9yYWdlX2FyZWFfbmV0d29yaw==">SAN</a> to host all the disk images, and powerful shared <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5teXNxbC5jb20v">MySQL</a> database server. As he was moving lots of his servers from physical boxes to virtual machines, I decided to do likewise.</p>
<p>So this website, and my other sites, are now hosted on a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5jZW50b3Mub3JnLw==">CentOS</a> virtual machine, with their databases on a separate CentOS database server. Given that the load average on the old P3 wasn&#8217;t very high I wasn&#8217;t expecting a noticeable improvement in performance. But how wrong I was! The site is noticeably faster to load and navigate, and in particular the WordPress management interface is miles faster.</p>
<p>All in all, I&#8217;m happy with the new platform. To anyone else considering replacing old servers with a virtualised infrastructure, I say go for it. You&#8217;ll save tons of electricity, take up less rack space, pave the way for later expansion (by adding more hypervisors or more disks to the SAN) and have better manageability and backupabilitiy.</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=983" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/09/jonathans-blog-now-on-new-hardware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Audioboo</title>
		<link>http://blog.jonathangazeley.com/2010/07/audioboo/</link>
		<comments>http://blog.jonathangazeley.com/2010/07/audioboo/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 21:25:32 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Audio]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Audioboo]]></category>
		<category><![CDATA[clip]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[MP3]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=962</guid>
		<description><![CDATA[I heard about Audioboo &#8211; a sort of Youtube for audio clips &#8211; the other day on BBC Click. I decided to give it a go, since I fairly often embed audio clips in my blog, simply by hosting and linking to MP3s and letting the user&#8217;s browser handle the playback. This doesn&#8217;t always work [...]]]></description>
			<content:encoded><![CDATA[<p>I heard about Audioboo &#8211; a sort of Youtube for audio clips &#8211; the other day on BBC Click. I decided to give it a go, since I fairly often embed audio clips in my blog, simply by hosting and linking to MP3s and letting the user&#8217;s browser handle the playback. This doesn&#8217;t always work out for the best.</p>
<p>So here&#8217;s my first attempt at uploading content to Audioboo and embedding it in my blog.</p>
<p><object id="boo_player_1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="129" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://boos.audioboo.fm/swf/fullsize_player.swf" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><param name="bgColor" value="#FFFFFF" /><param name="allowScriptAccess" value="always" /><param name="wmode" value="window" /><param name="FlashVars" value="mp3=http%3A%2F%2Faudioboo.fm%2Fboos%2F158981-trisagion-vii.mp3&amp;mp3Author=dj_judas21&amp;mp3LinkURL=http%3A%2F%2Faudioboo.fm%2Fboos%2F158981-trisagion-vii&amp;mp3Title=Trisagion+VII&amp;mp3Time=09.00pm+28+Jul+2010&amp;rootID=boo_player_1" /><param name="src" value="http://boos.audioboo.fm/swf/fullsize_player.swf" /><param name="bgcolor" value="#FFFFFF" /><param name="flashvars" value="mp3=http%3A%2F%2Faudioboo.fm%2Fboos%2F158981-trisagion-vii.mp3&amp;mp3Author=dj_judas21&amp;mp3LinkURL=http%3A%2F%2Faudioboo.fm%2Fboos%2F158981-trisagion-vii&amp;mp3Title=Trisagion+VII&amp;mp3Time=09.00pm+28+Jul+2010&amp;rootID=boo_player_1" /><embed id="boo_player_1" type="application/x-shockwave-flash" width="400" height="129" src="http://boos.audioboo.fm/swf/fullsize_player.swf" flashvars="mp3=http%3A%2F%2Faudioboo.fm%2Fboos%2F158981-trisagion-vii.mp3&amp;mp3Author=dj_judas21&amp;mp3LinkURL=http%3A%2F%2Faudioboo.fm%2Fboos%2F158981-trisagion-vii&amp;mp3Title=Trisagion+VII&amp;mp3Time=09.00pm+28+Jul+2010&amp;rootID=boo_player_1" wmode="window" allowscriptaccess="always" bgcolor="#FFFFFF" salign="lt" scale="noscale" data="http://boos.audioboo.fm/swf/fullsize_player.swf"></embed></object></p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=962" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/07/audioboo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Newbie&#8217;s guide for Linux Apache web servers</title>
		<link>http://blog.jonathangazeley.com/2010/06/newbies-guide-for-linux-apache-web-servers/</link>
		<comments>http://blog.jonathangazeley.com/2010/06/newbies-guide-for-linux-apache-web-servers/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 20:59:14 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=871</guid>
		<description><![CDATA[Today a friend (from a Windows background &#8211; still a friend?! ) asked me how to go about setting up a LAMP (Linux, Apache, MySQL &#38; PHP) server. I wrote him a few notes, not only on how to configure the LAMP stack, but also on how to configure a Linux system properly from scratch, [...]]]></description>
			<content:encoded><![CDATA[<p>Today a friend (from a Windows background &#8211; still a friend?! <img src='http://blog.jonathangazeley.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ) asked me how to go about setting up a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9MQU1QXyUyOHNvZnR3YXJlX2J1bmRsZSUyOQ==">LAMP</a> (<strong>L</strong>inux, <strong>A</strong>pache, <strong>M</strong>ySQL &amp; <strong>P</strong>HP) server. I wrote him a few notes, not only on how to configure the LAMP stack, but also on how to configure a Linux system properly from scratch, and how to do so securely. There are <em>millions</em> of guides out there that explain how to serve web pages with Apache, but not many of them explain the basics of setting up a secure system too.</p>
<p>I&#8217;ve edited these notes slightly to make them suitable for a wider audience, but in essence it&#8217;s the same stuff. Hope it&#8217;s useful!</p>
<h2>OS installation</h2>
<p>I recommend using <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5jZW50b3Mub3JnLw==">CentOS</a>. It doesn&#8217;t really matter whether you choose 32-bit (<code>i386</code>) or 64-bit (<code>x86_64</code>) but use ideally use 64-bit unless there&#8217;s a reason not to.</p>
<p>Boot from the CD or DVD of your choice. It doesn&#8217;t matter whether you use the full DVD, or the network install CD.</p>
<p>Choose the text-based installer from the boot prompt by typing <code>linux text</code>. The text installer doesn&#8217;t install as much extra rubbish as the <acronym title="Graphical User Interface">GUI</acronym> installer.</p>
<p>In most cases the default options are good enough. One option you should change is to use an <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9OZXR3b3JrX1RpbWVfUHJvdG9jb2w=">NTP</a> time server. This is especially important with virtual machines, since they suffer badly from clock drift.</p>
<p>Choose a strong root password. You will only need it once again. After that, you won&#8217;t even even need it for logging on, so there is no need to pick anything memorable. In fact, you are best off choosing a long, random string of mixed-case letters and numbers.</p>
<p>When it comes to choosing packages, deselect as many of the groups as possible. We will add the packages we need individually later on.</p>
<p>Let the installer run its course, and reboot.</p>
<h2>Users and passwords</h2>
<p>Upon first boot, log in as root using the password you picked before. Now create new user accounts and set passwords:</p>
<pre>useradd yourusername
passwd yourusername</pre>
<p>Now for setting <code>sudo</code> access. This is like “run as admin” on Windows. Type <code>visudo</code>. In the text file that opens, read down to the line that says</p>
<pre>root    ALL=(ALL)       ALL</pre>
<p>Duplicate it twice by pressing <code>yyp</code>. Go into insert mode by pressing <code>i</code> and change the username <code>root</code> to your username. When you are done, hit Esc and type <code>:wq</code> to save and exit. Gotta love <code>vi</code> commands <img src='http://blog.jonathangazeley.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>To disable remote root login via ssh, edit the file <code>/etc/ssh/sshd_config</code> using your favourite editor. If you don&#8217;t already have a favourite editor, use <code>vi</code>.</p>
<p>Find the line:</p>
<pre>#PermitRootLogin yes</pre>
<p>and uncomment it and change the value to no:</p>
<pre>PermitRootLogin no</pre>
<p>Restart the ssh daemon by doing</p>
<pre>sudo /sbin/service sshd restart</pre>
<p>From now on you can gain root access by using the <code>sudo</code> command, and you won&#8217;t need to log in as root again. Log out now by typing <code>exit</code> and re-login as your own user. Forget the root password forever.</p>
<h2>Installing packages</h2>
<p>First we add a couple of third-party software repositories that have useful stuff.</p>
<blockquote><p><code>sudo rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm</code></p></blockquote>
<p>Let&#8217;s get rid of the stuff we don&#8217;t want or need. There are no doubt more than things that can be removed than I&#8217;ve listed here, but they can be removed later.</p>
<pre>sudo yum remove bluez* pcsc*</pre>
<p>Update the system so you&#8217;re sure that that latest versions of all software are installed.</p>
<pre>sudo yum update</pre>
<p>Now we can install the stuff we want for LAMP!</p>
<pre>sudo yum install httpd mysql-server php php-mysql</pre>
<p>If you are wanting to use any <acronym title="Hypertext Preprocessor">PHP</acronym> modules/libraries they can be installed here too, such as the commonly-used graphics library <code>gd</code>.</p>
<h2>Services</h2>
<p>Let&#8217;s start the two daemons for Apache and MySQL, and tell them to start on boot.</p>
<pre>sudo /sbin/service httpd start
sudo /sbin/service mysqld start
sudo /sbin/chkconfig httpd on
sudo /sbin/chkconfig mysqld on</pre>
<p>Apache in its default state will run out of the box. MySQL just needs a root password setting.</p>
<pre>mysqladmin -u root password NEWPASSWORD</pre>
<p>From now on it&#8217;s advisable to <code>GRANT</code> access to specific users on specific databases/tables. Go read about <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Rldi5teXNxbC5jb20vZG9jL3JlZm1hbi81LjEvZW4vYWRkaW5nLXVzZXJzLmh0bWw=">MySQL users</a>.</p>
<h2>Firewall</h2>
<p>Let&#8217;s assume you want <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> on port 80 open to the world. Open <code>/etc/sysconfig/iptables</code> for editing, and add this line.</p>
<pre>-A RH-INPUT -p tcp -m tcp --dport 80 -j ACCEPT</pre>
<p>Save and close, and run this to make the changes live.</p>
<pre>sudo /sbin/service iptables restart</pre>
<h2>Editing configs</h2>
<p>The main config file for Apache is at <code>/etc/httpd/conf/httpd.conf</code>. It doesn&#8217;t need any changes for basic operation, but if you edit it you need to restart the httpd service to pick up the changes.</p>
<p>If you get serious with web publishing from a LAMP platform, you will probably want to read about <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2h0dHBkLmFwYWNoZS5vcmcvZG9jcy8yLjIvdmhvc3RzLw==">name-based virtual hosts</a>.</p>
<h2>Adding content</h2>
<p>In its basic configuration, you should add PHP scripts, HTML pages and other content like images and stylesheets to <code>/var/www/html/</code>. You do not need to restart the daemon for it to pick up new content.</p>
<p>When debugging pages, you will probably find it handy to refer to the error log, at <code>/var/log/httpd/error_log</code>.</p>
<p><strong>Tip:</strong> Open two SSH windows to the server &#8211; one for editing stuff, and the other for watching the log scroll by as events occur. Use Ctrl-C to break out of it. Do this:</p>
<pre>sudo tail -f /var/log/httpd/error_log</pre>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=871" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/06/newbies-guide-for-linux-apache-web-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A little bit of downtime</title>
		<link>http://blog.jonathangazeley.com/2010/05/a-little-bit-of-downtime/</link>
		<comments>http://blog.jonathangazeley.com/2010/05/a-little-bit-of-downtime/#comments</comments>
		<pubDate>Fri, 14 May 2010 20:40:00 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[downtime]]></category>
		<category><![CDATA[outage]]></category>
		<category><![CDATA[Ridgeon]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=855</guid>
		<description><![CDATA[On Saturday 15th May (tomorrow) this blog (as well as my photo blog and the Photo Challenge) will be going down for a while in the afternoon and evening. I host with Ridgeon Network, owned by my mate Chris. Tomorrow some of the servers are being relocated to a new rack and so will be [...]]]></description>
			<content:encoded><![CDATA[<p>On Saturday 15<sup>th</sup> May (tomorrow) this blog (as well as <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3Bob3Rvcy5qb25hdGhhbmdhemVsZXkuY29tLw==">my photo blog</a> and the <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5waG90by1jaGFsbGVuZ2UuY28udWsv">Photo Challenge</a>) will be going down for a while in the afternoon and evening.</p>
<p>I host with <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5yaWRnZW9uLW5ldHdvcmsuY28udWsv">Ridgeon Network</a>, owned by my mate Chris. Tomorrow some of the servers are being relocated to a new rack and so will be temporarily offline.</p>
<p>I&#8217;ll post again when we&#8217;re back online <img src='http://blog.jonathangazeley.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=855" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/05/a-little-bit-of-downtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>servepics.com</title>
		<link>http://blog.jonathangazeley.com/2010/03/servepics-com/</link>
		<comments>http://blog.jonathangazeley.com/2010/03/servepics-com/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 19:43:56 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Edmund]]></category>
		<category><![CDATA[MSN]]></category>
		<category><![CDATA[No-IP]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=751</guid>
		<description><![CDATA[A while back, my younger brother Edmund wanted a photo blog, just like his big brother&#8217;s I set him up with a free subdomain from No-IP. The address used to be edmund.servepics.com. I couldn&#8217;t fault the service from No-IP, but unfortunately free domains don&#8217;t only attract impoverished teenage photographers. They attract spammers and phishers, too. [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, my younger brother <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3Bob3Rvcy5qb25hdGhhbmdhemVsZXkuY29tLz9wPTcyMg==">Edmund</a> wanted a photo blog, <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3Bob3Rvcy5qb25hdGhhbmdhemVsZXkuY29t">just like his big brother&#8217;s</a> <img src='http://blog.jonathangazeley.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I set him up with a free subdomain from <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5uby1pcC5jb20v">No-IP</a>. The address used to be <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VkbXVuZC5zZXJ2ZXBpY3MuY29t">edmund.servepics.com</a>. I couldn&#8217;t fault the service from No-IP, but unfortunately free domains don&#8217;t only attract impoverished teenage photographers. They attract spammers and phishers, too.</p>
<p>As a result, the entire servepics.com subdomain is blacklisted by:</p>
<ul>
<li>MSN Messenger. Sending a message including a link to his blog is blocked for an &#8220;unknown reason&#8221;.</li>
<li>Bristol University&#8217;s malicious content filtering.</li>
<li>My blogs. Any comments or links from his blog are automatically sent to spam, no matter how many times I mark it as <em>not spam</em>.</li>
<li>Everyone&#8217;s email servers. Any email from this domain is binned by most email providers.</li>
<li>Countless other people and services who don&#8217;t like online criminals.</li>
</ul>
<p>So I decided it was time he became a man, and I signed him up for his own domain. You can now see his photos at <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=d3d3LmVkbXVuZGdhemVsZXkuY28udWs=">www.edmundgazeley.co.uk</a>. Enjoy!</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=751" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/03/servepics-com/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I didn&#8217;t buy that!</title>
		<link>http://blog.jonathangazeley.com/2010/03/i-didnt-buy-that/</link>
		<comments>http://blog.jonathangazeley.com/2010/03/i-didnt-buy-that/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 22:48:47 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Fail]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=729</guid>
		<description><![CDATA[And hot off the press, another fail entry. I placed an order with Amazon, and received this confirmation email. I sure don&#8217;t remember ordering an ARRAY(0x6b390274), but hey, if it&#8217;s free&#8230;]]></description>
			<content:encoded><![CDATA[<p>And hot off the press, another <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS9jYXRlZ29yeS9mYWlsLw==">fail</a> entry.</p>
<p>I placed an order with Amazon, and received this confirmation email.</p>
<div id="attachment_739" class="wp-caption aligncenter" style="width: 562px"><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxMC8wMy9TY3JlZW5zaG90LUFtYXpvbi1UaHVuZGVyYmlyZC5wbmc="><img class="size-full wp-image-739" title="Screenshot - Amazon email" src="http://blog.jonathangazeley.com/wp-content/uploads/2010/03/Screenshot-Amazon-Thunderbird.png" alt="" width="552" height="127" /></a><p class="wp-caption-text">Screenshot - Amazon email</p></div>
<p>I sure don&#8217;t remember ordering an <code>ARRAY(0x6b390274)</code>, but hey, if it&#8217;s free&#8230;</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=729" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/03/i-didnt-buy-that/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web 2.0</title>
		<link>http://blog.jonathangazeley.com/2009/12/web-2-0/</link>
		<comments>http://blog.jonathangazeley.com/2009/12/web-2-0/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 20:25:49 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[MSN]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=634</guid>
		<description><![CDATA[Today I signed up for Twitter &#8211; not for personal reasons but because I needed it for work. Of course I&#8217;ve heard about it in the past as the leading micro-blogging service, but it hadn&#8217;t interested me in the slightest. I have used Facebook since its early days (when you could only get in if [...]]]></description>
			<content:encoded><![CDATA[<p>Today I signed up for <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3R3aXR0ZXIuY29tLw==">Twitter</a> &#8211; not for personal reasons but because I needed it for work. Of course I&#8217;ve heard about it in the past as the leading <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9NaWNyb2Jsb2dnaW5n">micro-blogging</a> service, but it hadn&#8217;t interested me in the slightest.</p>
<p>I have used <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5mYWNlYm9vay5jb20v">Facebook</a> since its early days (when you could only get in if you had an academic email address!), primarily to keep in touch with friends. When they brought out the status updates feature, I couldn&#8217;t see the point. Even less so having something like Twitter that&#8217;s purely status updates.</p>
<p>There are so many ways these days to get content out there and onto the web. But I can&#8217;t see the <strong>point</strong> in many of the newer sites.</p>
<h2>Facebook</h2>
<p>Like I said, I use Facebook as a way to keep up with friends whom I don&#8217;t see very often. While I was at school, <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dpbmRvd3NsaXZlLmNvbS9EZXNrdG9wL21lc3Nlbmdlcg==">MSN Messenger</a> was all the rage, but now we&#8217;re a bit more grown up we don&#8217;t all have time to sit on MSN all night. So Facebook is a convenient way to keep in touch from time to time &#8211; given that email is only really used for work these days.</p>
<p>But my only friends on Facebook are friends in real life. I don&#8217;t meet people through Facebook. For me, it&#8217;s just a direct replacement for emailing friends or chatting on MSN. I don&#8217;t broadcast my life to the world. I can&#8217;t see why they&#8217;d care.</p>
<h2>Twitter</h2>
<p>Which brings me onto Twitter. I can&#8217;t imagine that anyone would be interested in snippets of my daily life. If they&#8217;re that interested, they can <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9TTVM=">text</a> me and ask. As I mentioned, I now have a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3R3aXR0ZXIuY29tL2RqX2p1ZGFzMjE=">Twitter feed</a> and you can follow me if you want &#8211; but I don&#8217;t recommend it. I&#8217;m not intending to write anything interesting &#8211; only to use it for following boring feeds like <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5icmlzLmFjLnVrL25ld3MvdHdpdHRlci11b2IuaHRtbA==">these</a> from the University of Bristol.</p>
<h2>Blogs and websites</h2>
<p>I&#8217;m more interested in <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9QZXJzb25hbF93ZWJfcGFnZQ==">personal websites</a>, often in <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9CbG9n">blog</a> format. Maybe it&#8217;s because I used the web for years before these social, collaborative sites popped up, and the only resources available were traditional websites.</p>
<p>I&#8217;ve had <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS8yMDA5LzA2L2EtYmxhc3QtZnJvbS10aGUtcGFzdC8=">my own website</a> for over a decade now, in one form or another. When I was a kid, I didn&#8217;t have much of interest to say and there was nothing on the site. Nowadays I have two blogs: this one, mainly for technical articles, guides, reviews and so on; and <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3Bob3Rvcy5qb25hdGhhbmdhemVsZXkuY29tLw==">my photo blog</a> where I publish photos that I have taken.</p>
<h2>Flickr</h2>
<p>I&#8217;m a geek, and so I have my own server and I run these blogs from scratch using <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dvcmRwcmVzcy5vcmcv">WordPress</a>. Obviously such an approach isn&#8217;t going to work for everyone, which is why I like sites like <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5mbGlja3IuY29tLw==">Flickr</a>. It&#8217;s a really easy way to get your work online. I set up <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5mbGlja3IuY29tL3Bob3Rvcy8yNzM5MTYyN0BOMDIv">my own Flickr page</a> some time ago, before I decided where I was primarily going to host my photos.</p>
<p>As you can see, there&#8217;s hardly anything on it and only two comments. I&#8217;ve worked a bit harder to promote my official photo blog, which also gives me the freedom to customise it <strong>exactly</strong> as I want, and here I have had thousands of views of my photos.</p>
<h2>In summary</h2>
<p>I&#8217;m not saying that &#8220;<a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9XZWJfMi4w">Web 2.0</a>&#8221; is a bad thing &#8211; I&#8217;m just saying it only works for me in limited ways.</p>
<p>I want to publish my articles and photos in a more traditional format, and I only use Facebook because most of my mates don&#8217;t use MSN any more.</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=634" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2009/12/web-2-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

