<?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>Interconnect IT - WordPress Consultants, Web Development and Web Design &#187; Hosting</title>
	<atom:link href="http://interconnectit.com/category/news/hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://interconnectit.com</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 17:36:30 +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>Make WordPress Scale, on a Budget</title>
		<link>http://interconnectit.com/1254/make-wordpress-scale-on-a-budget/</link>
		<comments>http://interconnectit.com/1254/make-wordpress-scale-on-a-budget/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 17:28:45 +0000</pubDate>
		<dc:creator>Peter Lavelle</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[Content Delivery Network]]></category>
		<category><![CDATA[Linode]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[W3-Total-Cache]]></category>

		<guid isPermaLink="false">http://interconnectit.com/?p=1254</guid>
		<description><![CDATA[If you create great content, your WordPress site is going to get a lot of traffic. That&#8217;s a good thing! One of our clients has done just that, but we had a couple of problems &#8211; he&#8217;s become popular in general, bringing in, on busy days, over 10,000 visitors, many of whom look around the site. And worse, he&#8217;s also&#8230; <a class="more" href="http://interconnectit.com/1254/make-wordpress-scale-on-a-budget/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you create great content, your WordPress site is going to get a lot of traffic.  That&#8217;s a good thing!  One of our clients has done just that, but we had a couple of problems &#8211; he&#8217;s become popular in general, bringing in, on busy days, over 10,000 visitors, many of whom look around the site.  And worse, he&#8217;s also become popular on Twitter.</p>
<p>This means that when he tweets about an update he and his many followers create huge spikes in traffic.  But there&#8217;s a an issue of cost &#8211; the site, <a href="http://sniffpetrol.com">Sniff Petrol</a>, carries no advertising and is essentially a spare time project for the owner.  And that means there isn&#8217;t thousands to be spent on its hosting.  We needed to manage these spikes well, but keep the costs down.  A bigger server, as offered by the hosting company, was not the answer.  It was time to geek out.</p>
<h3>Experiments</h3>
<p>Running experiments is the only way to test what will improve your sites performance.  Below are the admittedly rather technical findings.  We hope you find them useful.</p>
<p>sniffpetrol.com is a WordPress based motoring and motorsport satire site. It is currently hosted on a <a href="http://www.linode.com/?r=a28c0f084383195a2618b4024a641bb8f34e6d6b">Linode VPS (Virtual Private Server)</a> [affiliate link] with 4 CPU cores running at 2.27GHz and 1GB of RAM. A LAMP (Linux Apache, MySQL and PHP) installation is used to serve the site.</p>
<p>This article outlines the problems we encountered when this site experienced a sudden spike in traffic as well as methods we have employed to make the site more responsive under heavy load, without having to resort to using a more expensive server. A brief guide to how we implemented our solution will also be given and Changes made to the server configuration settings for Apache, PHP and MySQL will also be outlined.</p>
<h3>The Problem</h3>
<p>When using the default configurations for Apache, PHP and MySQL and no server-side caching, we found that when load testing the site,  load times increased sharply as the number of concurrent users passed the 250 mark. Also, system load reached such high levels that the server became completely unresponsive (sometimes to the point of needing a manual reboot) due to excessive disk <a title="Wikipedia Entry for &quot;thrashing&quot;" href="http://en.wikipedia.org/wiki/Thrashing_%28computer_science%29" target="_blank">“thrashing”</a> caused by Apache rapidly swapping from RAM to disk in an attempt to free-up more RAM to serve additional clients.<a title="Wikipedia Entry for &quot;thrashing&quot;" href="http://en.wikipedia.org/wiki/Thrashing_%28computer_science%29" target="_blank"></a></p>
<h3>The Solution</h3>
<p>The PHP, Apache and MySQL configurations on the server were changed from the defaults and the <a title="PHP: APC Manual" href="http://uk2.php.net/apc" target="_blank">APC</a> (Alternative PHP Cache) caching module was installed. In order to make best use of the APC caching module, the <a href="[http://www.w3-edge.com/wordpress-plugins/w3-total-cache/">W3 Total Cache</a> WordPress plug-in (version 0.9.1.3) was installed on the site. A brief guide to installing APC and W3-Total-Cache and  getting them to work together can be found in the next section.</p>
<p>So, why did we decide to use the APC caching PHP module, or any other method of server-side caching for that matter? The short answer is: Efficiency.</p>
<p>APC allows us to cache dynamically generated content. This cached content can then be sent to the client when a request for it is received, instead of wasting more server resources to regenerate it when nothing has changed. This considerably reduces the load on the server.</p>
<p>We also made use of <a href="http://aws.amazon.com/cloudfront/" target="_blank">Amazon’s Cloudfront CDN</a> (Content Delivery Network) and <a href="http://aws.amazon.com/s3/" target="_blank">S3</a> services to store and serve static content (theme files and images, for example) to further lighten the load on the server. Our main reasons for choosing Amazon’s CDN solution were the pay-as-you-go pricing structure and the low storage/data transfer costs. A table detailing the costs can be found <a href="http://aws.amazon.com/s3/" target="_blank">here</a>.</p>
<p>The W3 Total Cache plug-in allows you to configure the site to make use of Amazon’s S3 and Cloudfront services as a CDN from the WordPress dashboard. It takes care of uploading the theme files &#8211; and other static content and also takes care of URL rewriting for uploaded files automatically. Overall, we were very impressed by how intuitive the whole setup process was. One online guide we found useful when setting up the CDN can be found <a href="http://www.freedomtarget.com/w3-total-cache-with-amazon-s3-and-cloudfront" target="_blank">on the Freedom Target</a> site.</p>
<h3>Getting APC and W3-Total-Cache Up and Running</h3>
<p>If you are using Ubuntu Server, installing the APC Caching module on your server is as simple as running the command below:</p>
<p><code>sudo apt-get install php-apc</code></p>
<p>You will then need to restart Apache when the installation process has finished. Ubuntu/Debian users can do this by issuing the following command:</p>
<p><code>sudo /etc/init.d/apache2 restart</code></p>
<p>The installation and configuration of the W3-Total-Cache plug-in is a little more involved.</p>
<p>Before you install the plug-in, you will need to make sure that you have the following Apache server modules installed and enabled:</p>
<ul>
<li><strong>expires</strong></li>
<li><strong>mime</strong></li>
<li><strong>deflate</strong></li>
<li><strong>headers</strong></li>
<li><strong>env</strong></li>
<li><strong>setenvif</strong></li>
<li><strong>rewrite</strong></li>
</ul>
<p>It&#8217;s best to obtain the latest stable version from the<a href="http://plugins.svn.wordpress.org" target="_blank"> WordPress plug-in SVN repository</a> and upload the files to your server manually, rather than using the installer integrated into WordPress.</p>
<p>The plug-in comes with quite comprehensive documentation in the form of a readme file. Other setup guides can also be found quite easily on the Web. One installation guide we found useful can be found <a href="http://zemalf.com/1443/w3-total-cache/" target="_blank">here</a>.</p>
<p>When you have everything installed and the W3-Total-Cache plug-in has been activated, you will have to configure it to use the APC Caching module on the server. To do this, select the <strong>General Settings </strong>option from the <strong>Performance </strong>menu in the WordPress Dashboard and, from the dropdown list next to each option (<strong>Page Cache</strong>, <strong>Minify</strong>, <strong>Database Cache</strong> and <strong>Object Cache</strong>) select the <strong>‘Opcode: Alternative PHP Cache (APC)’ </strong>option. Make sure that the <strong>Enable </strong>checkbox is checked for each option, and then click the Save Changes button next to each option.</p>
<h3>Server Configuration Changes</h3>
<p>The changes made to the configurations for each component of the LAMP stack are outlined below:</p>
<p style="padding-left: 30px;"><strong>Apache</strong></p>
<p style="padding-left: 30px;">The following changes were made to the ‘<strong>Prefork MPM’, ‘Worker MPM’</strong> and ‘<strong>Event MPM’</strong> sections of the <strong>apache.conf</strong> configuration file:</p>
<ul style="padding-left: 60px;">
<li>The<strong> <a href="http://httpd.apache.org/docs/2.2/mod/core.html#timeout " target="_blank">Timeout</a></strong> option was set to <strong>150 </strong>seconds.</li>
<li>The<a href="http://httpd.apache.org/docs/2.2/mod/core.html#keepalivetimeout" target="_blank"> <strong>KeepAliveTimeout</strong></a> option was set to <strong>3</strong> seconds to minimise the amount of time each apache process sits idle waiting for the client to send a KeepAlive request.</li>
<li>The <strong><a href="http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients" target="_blank">MaxClients</a></strong> option was set to <strong>250 </strong>to allow for more concurrent users.</li>
<li>The<strong> <a href="http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild">MaxRequestsPerChild</a></strong> option was set to <strong>400</strong> to both minimise the consumption of system resources by an individual server process and to allow resources (especially RAM) to be freed up quicker.</li>
</ul>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;"><strong>MySQL</strong></p>
<p style="padding-left: 30px;">The relevant lines for the MySQL configuration file can be found below:<br />
<code><br />
[mysqld]</code></p>
<p style="padding-left: 30px;">key_buffer              = 16M</p>
<p style="padding-left: 30px;">max_allowed_packet      = 16M</p>
<p style="padding-left: 30px;">thread_stack            = 192K</p>
<p style="padding-left: 30px;">thread_cache_size       = 8</p>
<p style="padding-left: 30px;">myisam-recover         = BACKUP</p>
<p style="padding-left: 30px;">query_cache_limit       = 1M</p>
<p style="padding-left: 30px;">query_cache_size        = 16M</p>
<p style="padding-left: 30px;">[isamchk]</p>
<p style="padding-left: 30px;">key_buffer              = 16M</p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">
<p style="padding-left: 30px;"><strong>PHP</strong></p>
<p style="padding-left: 30px;">To lessen the consumption of RAM by PHP scripts when under heavy load, the <a href="http://php.net/memory-limit" target="_blank"><strong>memory_limit</strong></a> option  in <strong>php.ini</strong> was changed to <strong>64MB</strong>.</p>
<p style="padding-left: 30px;">
<h3>Testing Method</h3>
<p>The load testing service <a href="http://loadimpact.com" target="_blank">Load Impact</a> was used to perform the load testing on the server.</p>
<p>For each test, we used a simulated load of 250-1000 simultaneous clients with each ‘client’ spending an average of 20 seconds viewing a page. We started the test with an initial load of 250 clients and then ramped up the number of clients by 250 each time, up-to the limit of 1000 simultaneous clients.</p>
<h3>Test Results</h3>
<p>The User Load time results using the amended Apache, MySQL and PHP configurations without using APC caching or a CDN are shown below.</p>
<p style="text-align: center;">
<div id="attachment_1257" class="wp-caption aligncenter" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2010/11/g1-loadtime-noapc-no-w3c.png"><img class="size-medium wp-image-1257 " title="User Load Time (No APC caching or CDN enabled)" src="http://www.interconnectit.com/wp-content/uploads/2010/11/g1-loadtime-noapc-no-w3c-320x198.png" alt="User Load Time (No APC caching or CDN enabled)" width="320" height="198" /></a><p class="wp-caption-text">User Load Time (No APC caching or CDN enabled)</p></div>
<p>Although the server did not become completely unresponsive, the load time increases considerably after 250 clients, with load times exceeding 10 seconds after approximately 350 clients. The bandwidth usage results for this test can be found in the graph below:</p>
<div id="attachment_1258" class="wp-caption aligncenter" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2010/11/g2-bandwidth-noapc-no-w3c.png"><img class="size-medium wp-image-1258 " title="Bandwidth Usage (No APC caching or CDN enabled)" src="http://www.interconnectit.com/wp-content/uploads/2010/11/g2-bandwidth-noapc-no-w3c-320x200.png" alt="Bandwidth Usage (No APC caching or CDN enabled)" width="320" height="200" /></a><p class="wp-caption-text">Bandwidth Usage (No APC caching or CDN enabled)</p></div>
<p>The maximum amount of bandwidth used in this test (approximately 33 Mbps) was considerably less than the 100Mbps the server was capable of transferring. Taking both the user load time and bandwidth usage results into account, it was apparent that the server was not yet performing as efficiently as it should be.</p>
<p>With the APC caching module used in conjunction with the W3-Total-Cache plug-in on the site, the reduction in load times was considerable, with user load times at 1000 clients being approximately 25 times faster as the graph below shows:</p>
<div id="attachment_1259" class="wp-caption aligncenter" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2010/11/g3-loadtime-w3c-enabled-noapc.png"><img class="size-medium wp-image-1259 " title="User Load Time (Using W3-Total-Cache plug-in with APC caching)" src="http://www.interconnectit.com/wp-content/uploads/2010/11/g3-loadtime-w3c-enabled-noapc-320x201.png" alt="User Load Time (Using W3-Total-Cache plug-in with APC caching)" width="320" height="201" /></a><p class="wp-caption-text">User Load Time (Using W3-Total-Cache plug-in with APC caching)</p></div>
<p>The bandwidth usage results for this test can be found in the graph below:</p>
<div id="attachment_1260" class="wp-caption aligncenter" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2010/11/g4-bandwidth-w3c-enabled-noapc.png"><img class="size-medium wp-image-1260 " title="Bandwidth Usage (Using W3-Total-Cache plug-in with APC caching)" src="http://www.interconnectit.com/wp-content/uploads/2010/11/g4-bandwidth-w3c-enabled-noapc-320x204.png" alt="Bandwidth Usage (Using W3-Total-Cache plug-in with APC caching)" width="320" height="204" /></a><p class="wp-caption-text">Bandwidth Usage  (Using W3-Total-Cache plug-in with APC caching)</p></div>
<p>Although there is a considerable improvement in bandwidth usage up-to 750 clients, the bandwidth usage drops to around the same level (33Mbps) at 1000 clients as was seen during the first test.  This is possibly a function of the VPS having to share its network interface with other websites and may even be due to a certain amount of bandwidth throttling at the hosts.</p>
<h3>Switching to Content Delivery Networks</h3>
<p>When static content was served from the Amazon CDN and APC caching was enabled from within the W3-Total-Cache plug-in, we found that performance could be further improved:</p>
<div id="attachment_1261" class="wp-caption aligncenter" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2010/11/g5-loadtime-w3c-enabled-apc-and-cdn-enabled.png"><img class="size-medium wp-image-1261 " title="User Load Time (W3-Total-Cache Plugin and Amazon S3 CDN Used)" src="http://www.interconnectit.com/wp-content/uploads/2010/11/g5-loadtime-w3c-enabled-apc-and-cdn-enabled-320x197.png" alt="User Load Time (W3-Total-Cache Plugin and Amazon S3 CDN Used)" width="320" height="197" /></a><p class="wp-caption-text">User Load Time (W3-Total-Cache Plugin and Amazon S3 CDN Used)</p></div>
<p>Although the performance is not as dramatic as the previous test, when compared to the load times with APC-caching only, the increase in load times as the number of concurrent clients increase is much smoother. The bandwidth usage graph for this test can be found below. The data shown is the combined bandwidth usage of both the server and the CDN:</p>
<div id="attachment_1262" class="wp-caption aligncenter" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2010/11/g6-bandwidth-w3c-enabled-apc-and-cdn-enabled.png"><img class="size-medium wp-image-1262 " title="Bandwidth Usage (W3-Total-Cache Plugin and Amazon S3 CDN Used)" src="http://www.interconnectit.com/wp-content/uploads/2010/11/g6-bandwidth-w3c-enabled-apc-and-cdn-enabled-320x200.png" alt="Bandwidth Usage (W3-Total-Cache Plugin and Amazon S3 CDN Used)" width="320" height="200" /></a><p class="wp-caption-text">Bandwidth Usage (W3-Total-Cache Plugin and Amazon S3 CDN Used)</p></div>
<p>Here, we found that the bandwidth usage increased far more smoothly as the test progressed, than in the test with APC caching and W3-Total-Cache only. This is to be expected, as the server no longer had to deal with serving large static files so fewer system resources were required to serve the same number of clients.</p>
<h3>Conclusion</h3>
<p>It&#8217;s easy to see that using server side caching and careful server configuration gives excellent results.  What using a content delivery network means is that the delivery of content will grow more consistently.  One problem with many servers, and one which is rarely acknowledged, is the performance available from the network interface.  Most won&#8217;t serve more than 100mb/s in theory, and about 70mb/s.  What can&#8217;t be seen in the charts is the momentary output peaks of over 130mb/s that we saw using the content delivery network.  The charts just show the averages.  As a consequence it&#8217;s hard to show the improvement gained from using a CDN at the 1000 user level.</p>
<p>What we&#8217;d like to do, in the future, is to test the server up to 5,000 concurrent users.  This is serious traffic, and also costs quite a bit of money to test. At the moment we know that the Sniff Petrol site can handle around 130,000+ page views per hour.  But it may be able to handle a lot more.  We&#8217;d love to see how far it can be pushed.  Would it be possible to have the capacity to serve up to a million pages in an hour without having to commission a massive server?  Keep coming back as we&#8217;ll be carrying out this test in the future.</p>
<p>As most of our clients use their own large scale hosting (we work with newspapers and publishers a lot!) we&#8217;ve generally let them worry about hosting requirements.  They usually do pretty well and have some impressive hardware.  But recently we&#8217;ve started offering a managed WordPress hosting service to our clients, and had to start learning about WordPress scaling ourselves.  We love efficiency, and the idea of simply buying bigger boxes as a solution to performance problems appalls us.  Modern computers are incredibly powerful &#8211; they can do a lot, for very little money.</p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/1254/make-wordpress-scale-on-a-budget/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The Difference Hosting Can Make</title>
		<link>http://interconnectit.com/84/the-difference-hosting-can-make/</link>
		<comments>http://interconnectit.com/84/the-difference-hosting-can-make/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 08:32:30 +0000</pubDate>
		<dc:creator>David Coveney</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[liverpool]]></category>
		<category><![CDATA[liverpool motor club]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://liverpoolwebdesigner.wordpress.com/?p=84</guid>
		<description><![CDATA[It&#8217;s quite apt that on the day that WordPress.com appears to have broken (it&#8217;s not serving any front-end pages on this blog at the time of writing if you&#8217;re logged in) I&#8217;m making a post about hosting. So to the gist of this post. We provide hosting to clients, and only clients.  You can&#8217;t just ring us up and ask&#8230; <a class="more" href="http://interconnectit.com/84/the-difference-hosting-can-make/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s quite apt that on the day that WordPress.com appears to have broken (it&#8217;s not serving any front-end pages on this blog at the time of writing if you&#8217;re logged in) I&#8217;m making a post about hosting.</p>
<p>So to the gist of this post.</p>
<p>We provide hosting to clients, and only clients.  You can&#8217;t just ring us up and ask us to host your site.  We&#8217;re quite picky about what hits our server.<span id="more-84"></span></p>
<p>That makes it nice and quick to respond.  And we keep an eye on response times using <a href="http://pingdom.com" title="Ping Testing">Pingdom</a>&#8216;s service.  If things go bad, we receive SMS and e-mails to inform us.</p>
<p>Recently, we took over the hosting of <a href="http://www.liverpoolmotorclub.com" title="Liverpool Motor Club">Liverpool Motor Club&#8217;s site</a>.  We&#8217;d done them a variation of one of our themes, but their shared server space simply wasn&#8217;t up to the job of running WordPress.  A year ago when we first spoke to them it seemed ok enough, if hardly rocketship fast.  But performance was getting worse and worse.  And as we sponsor their championship and have our name on their website&#8230; well, we wanted to make things look good.   So did they!</p>
<p>So we moved them over to our server.</p>
<p>Looking at the graph of http responsiveness below, can you guess when they moved?</p>
<p><img src="http://liverpoolwebdesigner.files.wordpress.com/2008/02/response_times_for_lmc.gif" alt="Liverpool Motor Club Response Times" /></p>
<p>What&#8217;s interesting to see is the problems they were having with inconsistent responses.  1.5s may be fine for a minority interest website, but 9s averages at any point simply can&#8217;t be accepted.  Their hosts (internetters, for what its worth) are clearly overloading their machines and although they&#8217;re offering php and mySQL something&#8217;s going wrong somewhere.  Static page serving, funnily enough, wasn&#8217;t too bad, if still pretty erratic and at the slow end.</p>
<p>We debated setting up wp-cache, but in the end, we knew the best way to give decent response times was a decent box.</p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/84/the-difference-hosting-can-make/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Your DNS Settings Right</title>
		<link>http://interconnectit.com/47/getting-your-dns-settings-right/</link>
		<comments>http://interconnectit.com/47/getting-your-dns-settings-right/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 12:30:49 +0000</pubDate>
		<dc:creator>Interconnect IT</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[domain names]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://liverpoolwebdesigner.com/2008/01/04/getting-your-dns-settings-right/</guid>
		<description><![CDATA[One thing worth thinking about in 2008, is fixing the DNS entry to your website. Most here are probably set up just fine, but here&#8217;s one of the most common problems we see: Go to a website &#8211; eg, http://www.marketsafeuk.com and it should all work fine. But take out the www and go to http://marketsafeuk.com and it doesn&#8217;t.  You just&#8230; <a class="more" href="http://interconnectit.com/47/getting-your-dns-settings-right/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One thing worth thinking about in 2008, is fixing the DNS entry to your website. Most here are probably set up just fine, but here&#8217;s one of the most common problems we see:</p>
<p>Go to a website &#8211; eg, <a href="http://www.marketsafeuk.com/">http://www.marketsafeuk.com</a> and it should all work fine.</p>
<p>But take out the www and go to <a href="http://marketsafeuk.com/">http://marketsafeuk.com</a> and it doesn&#8217;t.  You just get a time out as the DNS fails to resolve the request.</p>
<p>This happens on a remarkable number of sites, even those belonging to some web designers. And it&#8217;s poor because a lot of users have got used to not typing the www subdomain to many addresses. They expect the null subdomain to point to the normal website. How many customers would Amazon miss out on if going to amazon.co.uk didn&#8217;t work? Lots&#8230;.</p>
<p>So &#8211; if your site experiences this problem go into your domain&#8217;s control panel and set up a new A record where the subdomain is left uncompleted. The ip address should be the same as your usual one. Most control panels should allow this.</p>
<p>Your webserver, in most cases, will be set up by default to serve a blank subdomain the same way as the www one. If not, you may need to talk to your hosts about resolving this.</p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/47/getting-your-dns-settings-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speeding site load times with htaccess</title>
		<link>http://interconnectit.com/24/speeding-site-load-times-with-htaccess/</link>
		<comments>http://interconnectit.com/24/speeding-site-load-times-with-htaccess/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 10:16:31 +0000</pubDate>
		<dc:creator>Interconnect IT</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://liverpoolwebdesigner.wordpress.com/2007/11/15/speeding-site-load-times-with-htaccess/</guid>
		<description><![CDATA[Create an &#8220;.htaccess&#8221; file in the folder you want to be cached and add the following to it. # Cache files for a week. &#60;IfModule mod_headers.c&#62; &#60;IfModule mod_expires.c&#62; &#60;FilesMatch ".(jpg&#124;jpeg&#124;png&#124;gif&#124;swf&#124;css&#124;js)$"&#62; Header set Cache-Control "max-age=604800, public" &#60;/FilesMatch&#62; &#60;/IfModule&#62; &#60;/IfModule&#62; This will have the effect of caching your site for a week. The number 604800 refers to the number of seconds in&#8230; <a class="more" href="http://interconnectit.com/24/speeding-site-load-times-with-htaccess/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Create an &#8220;.htaccess&#8221; file in the folder you want to be cached and add the following to it.</p>
<pre><code># Cache files for a week.
&lt;IfModule mod_headers.c&gt;
  &lt;IfModule mod_expires.c&gt;
    &lt;FilesMatch ".(jpg|jpeg|png|gif|swf|css|js)$"&gt;
      Header set Cache-Control "max-age=604800, public"
    &lt;/FilesMatch&gt;
  &lt;/IfModule&gt;
&lt;/IfModule&gt;
</code></pre>
<p>This will have the effect of caching your site for a week. The number 604800 refers to the number of seconds in a week you should also see the file types mentioned in the line above. Change them as you see fit.</p>
<p>You will need mod_headers and mod_expires enabled in your apache htpd.conf for this to work, but with the ifmodule statements in there there should be no problem if they aren&#8217;t installed. If it wasn&#8217;t for the two ifmodule statements your site would be dumped to a 500 server error if it couldn&#8217;t find them.</p>
<p>To check the expiration times I find the easiest way is to load the page in Firefox, right click somewhere and hit &#8220;View page info&#8221; then go to the media tab. You will see date and time for the expected expiry of the image files on your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/24/speeding-site-load-times-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing Risks With Web Hosting</title>
		<link>http://interconnectit.com/112/managing-risk/</link>
		<comments>http://interconnectit.com/112/managing-risk/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 11:29:43 +0000</pubDate>
		<dc:creator>Interconnect IT</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[failures]]></category>
		<category><![CDATA[false economies]]></category>
		<category><![CDATA[mission critical]]></category>
		<category><![CDATA[risk level]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://liverpoolwebdesigner.wordpress.com/2007/10/26/managing-risk/</guid>
		<description><![CDATA[We&#8217;ve had some clients recently who&#8217;ve been burned by other web designers and their hosts. At first we wondered how&#8230; our own uptime so far this year, removing planned outages, has been 99.966% &#8211; ie, we had three hours downtime on a Sunday morning due to a routing problem at our hosts. It&#8217;s unusual to have even that much downtime,&#8230; <a class="more" href="http://interconnectit.com/112/managing-risk/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve had some clients recently who&#8217;ve been burned by other web designers and their hosts.  At first we wondered how&#8230; our own uptime so far this year, removing planned outages, has been 99.966% &#8211; ie, we had three hours downtime on a Sunday morning due to a routing problem at our hosts.</p>
<p>It&#8217;s unusual to have even that much downtime, but it can happen.  Machines can break, drives fail, and availability isn&#8217;t always easy to guarantee.</p>
<p>But if it&#8217;s happening a lot, or you run a mission critical website, then this can be a major issue.  Imagine spending £200k on a national advertising campaign, and the day it goes live the web server&#8217;s having a nap.  The developers are on an office day out, and the hosts put you on hold when you call.</p>
<p>In web hosting there&#8217;s an awful lot of people making false economies &#8211; they run major companies on cheap, consumer level hosting that costs perhaps £15 a month&#8230; or less!  This may be fine if the site isn&#8217;t generally that busy, but any spike in traffic and the machine won&#8217;t have the resources to keep the site going.  Not only that, but because you&#8217;re sharing a box with possibly thousands of other websites, the poor server may well be over-stuffed and overworked anyway.</p>
<p>There&#8217;s a few steps to consider when dealing with this:</p>
<ol>
<li>Properly assess risks.  If you could lose £100,000 of business when your website fails, it&#8217;s obviously wise to spend more than a few hundred pounds a year on it.  But there&#8217;s no point spending £10k a month on a site that generates very little trade, just for the sake of avoiding ten minutes of downtime.</li>
<li>Make sure what goes on the server is only ever fully tested code written by people you can trust.  <a href="http://www.interconnectit.com" title="Interconnect IT">Our own web consultancy, Interconnect IT</a> goes to great lengths to make sure the code supplied is reliable.</li>
<li>Consider bringing in house code-reviews and creating your own testing requirements.</li>
<li>Load test your server with the predicted maximum level of traffic.  If you don&#8217;t, how do you know its adequate?  And you can&#8217;t predict the load just on raw visitor numbers either &#8211; some websites are much more demanding on server resources than others.</li>
<li>Make sure the site is suitably protected from attacks by hackers and even malevolent rivals.</li>
</ol>
<p>Ultimately any website is a reflection of your business &#8211; if it&#8217;s cheap and unreliable, it&#8217;ll say that to your potential clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/112/managing-risk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

