<?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>Web Design Rotherham &#124; Chris Potter</title>
	<atom:link href="http://chris-potter.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://chris-potter.co.uk</link>
	<description>Web Developer, Graphic Designer &#38; SEO Specialist</description>
	<lastBuildDate>Thu, 09 May 2013 12:43:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>CSS Testimonials</title>
		<link>http://chris-potter.co.uk/2013/05/css-testimonials/</link>
		<comments>http://chris-potter.co.uk/2013/05/css-testimonials/#comments</comments>
		<pubDate>Thu, 09 May 2013 12:43:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=823</guid>
		<description><![CDATA[Here is what we are trying to do &#160; &#160; and here is how &#60;blockquote&#62; &#60;p&#62;testimonialtext&#60;/p&#62; &#60;/blockquote&#62; &#60;div&#62;&#60;/div&#62; &#60;p&#62;name &#124; &#60;span&#62;company&#60;/span&#62;&#60;/p&#62; then the css for the css file .testimonial { margin: 0; background: #B7EDFF;     padding: 10px 50px;     position: relative;     font-family: Georgia, serif;     [...]]]></description>
				<content:encoded><![CDATA[<p>Here is what we are trying to do</p>
<p><span id="more-823"></span></p>
<p><a href="http://chris-potter.co.uk/wp-content/uploads/2013/05/csstestimonial.png" rel="lightbox[823]"><img class="aligncenter size-full wp-image-824" alt="csstestimonial" src="http://chris-potter.co.uk/wp-content/uploads/2013/05/csstestimonial.png" width="474" height="290" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>and here is how</p>
<pre>&lt;blockquote&gt;
  &lt;p&gt;testimonialtext&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;name | &lt;span&gt;company&lt;/span&gt;&lt;/p&gt;

then the css for the css file

</pre>
<pre>.testimonial {
    margin: 0;
    background: #B7EDFF;
    padding: 10px 50px;
    position: relative;
    font-family: Georgia, serif;
    color: #666;
    border-radius: 5px;
    font-style: italic;
    text-shadow: 0 1px 0 #ECFBFF;
    background-image: linear-gradient(#CEF3FF, #B7EDFF);
}

.testimonial:before, .testimonial:after {
    content: "\201C";
    position: absolute;
    font-size: 80px;
    line-height: 1;
    color: #999;
    font-style: normal;
}

.testimonial:before {
    top: 0;
    left: 10px;
}
.testimonial:after {
    content: "\201D";
    right: 10px;
    bottom: -0.5em;
}
.arrow-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #B7EDFF;
    margin: 0 0 0 25px;
}
.testimonial-author {
    margin: 0 0 0 25px;
    font-family: Arial, Helvetica, sans-serif;
    color: #999;
    text-align:left;
}
.testimonial-author span {
    font-size: 12px;
    color: #666;
}</pre>
<pre>


</pre>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2013/05/css-testimonials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL behind a load balancer</title>
		<link>http://chris-potter.co.uk/2013/04/ssl-behind-a-load-balancer/</link>
		<comments>http://chris-potter.co.uk/2013/04/ssl-behind-a-load-balancer/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 10:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=819</guid>
		<description><![CDATA[So if you have tried RewriteCond %{SERVER_PORT} 80 and you get a redirect loop you probably have a load balancer, if the server or network is your own you will already know this. But if you have a &#8220;cloud&#8221; then you might not be aware of this. You need to use [...]]]></description>
				<content:encoded><![CDATA[<p>So if you have tried RewriteCond %{SERVER_PORT} 80 and you get a redirect loop you probably have a load balancer, if the server or network is your own you will already know this. But if you have a &#8220;cloud&#8221; then you might not be aware of this.</p>
<p><span id="more-819"></span></p>
<p>You need to use this instead on the top line of your htaccess is preferable.</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP:X-Forwarded-Proto} !https<br />
RewriteRule ^(.*)$ https://www.domain.co.uk/$1 [R=301,L]</p>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2013/04/ssl-behind-a-load-balancer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla SSL JS and CSS files.</title>
		<link>http://chris-potter.co.uk/2013/04/joomla-ssl-js-and-css-files/</link>
		<comments>http://chris-potter.co.uk/2013/04/joomla-ssl-js-and-css-files/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 10:04:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=817</guid>
		<description><![CDATA[Ok so even if you enable SSL in joomla even the htaccess way not everything is SSL and modern browsers will reject it. Try this libraries/joomla/environment/uri.php Look for the following // Determine if the request was over SSL (HTTPS) if (isset($_SERVER['HTTPS']) &#38;&#38; !empty($_SERVER['HTTPS']) &#38;&#38; (strtolower($_SERVER['HTTPS']) != &#8216;off&#8217;)) { $https = [...]]]></description>
				<content:encoded><![CDATA[<p>Ok so even if you enable SSL in joomla even the htaccess way not everything is SSL and modern browsers will reject it.</p>
<p>Try this</p>
<p><span id="more-817"></span></p>
<p>libraries/joomla/environment/uri.php</p>
<p>Look for the following</p>
<p>// Determine if the request was over SSL (HTTPS)<br />
if (isset($_SERVER['HTTPS']) &amp;&amp; !empty($_SERVER['HTTPS']) &amp;&amp; (strtolower($_SERVER['HTTPS']) != &#8216;off&#8217;)) {<br />
$https = &#8216;s://&#8217;;<br />
} else {<br />
$https = &#8216;://&#8217;;<br />
}</p>
<p>Change</p>
<p>$https = &#8216;://&#8217;;</p>
<p>to</p>
<p>$https = &#8216;s://&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2013/04/joomla-ssl-js-and-css-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to format and mount second hard drive on Linux</title>
		<link>http://chris-potter.co.uk/2013/04/how-to-format-and-mount-second-hard-drive-on-linux/</link>
		<comments>http://chris-potter.co.uk/2013/04/how-to-format-and-mount-second-hard-drive-on-linux/#comments</comments>
		<pubDate>Tue, 23 Apr 2013 09:32:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=815</guid>
		<description><![CDATA[If you have two hard drives you can mount second hard drive to be used for (cPanel/WHM) backups or for hosting more sites. The hard drives must not be in any kind of Raid setup. Process of partitioning, formatting and mounting is quite simple. First check what disk drives do [...]]]></description>
				<content:encoded><![CDATA[<p>If you have two hard drives you can mount second hard drive to be used for (cPanel/WHM) backups or for hosting more sites. The hard drives must not be in any kind of Raid setup. Process of partitioning, formatting and mounting is quite simple.</p>
<p><span id="more-815"></span></p>
<p>First check what disk drives do you have. Usually disk drives on Linux are named /dev/sda (first HDD), /dev/sdb (second HDD) or something similar.<br />
You can get a list of disk drives in system using this command</p>
<p>fdisk -l | grep &#8216;^Disk&#8217;<br />
The output should be something like this:</p>
<p>Disk /dev/sdb: 500.1 GB, 500107862016 bytes<br />
Disk /dev/sda: 500.1 GB, 500107862016 bytes<br />
So those are two 500 GB hard drives…</p>
<p>If you execute command like the one below you’ll get more detailed preview of your hard discs and their partitions:</p>
<p>fdisk -l<br />
Output should looks like this:</p>
<p>Disk /dev/sdb: 500.1 GB, 500107862016 bytes<br />
255 heads, 63 sectors/track, 60801 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x1c7e861c</p>
<p>Disk /dev/sdb doesn&#8217;t contain a valid partition table</p>
<p>Disk /dev/sda: 500.1 GB, 500107862016 bytes<br />
255 heads, 63 sectors/track, 60801 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0&#215;00080071</p>
<p>Device Boot Start End Blocks Id System<br />
/dev/sda1 * 1 14 104448 83 Linux<br />
/dev/sda2 14 144 1048576 82 Linux swap / Solaris<br />
/dev/sda3 144 60802 487232512 83 Linux<br />
You should notice that second hard disk (/dev/sdb) has no partition and that probably means that it’s un-partitioned yet.</p>
<p>So let’s make the partition on /dev/sdb by executing</p>
<p>fdisk /dev/sdb<br />
and then use following in the prompt<br />
- “n” for new partion<br />
- “p” for primary partition<br />
- “1” for the first partition<br />
- “Enter” / “Enter” for the first AND last cylinders (automatically use the entire disk)<br />
- “w” to save what I have done</p>
<p>That has created and saved new partition and it will be called /dev/sdb1 (first partition on /dev/sdb). Next step is to format it.</p>
<p>mkfs.ext3 /dev/sdb1<br />
On newer distributions (CentOS 6.3 for eg) use this command to format a new partition.</p>
<p>mkfs -t ext3 /dev/sdb1<br />
If you want to use this hard disk for backup make /backup folder or if you want to use it to store more sites make new home folder called /home2</p>
<p>mkdir /backup<br />
mkdir /home2<br />
Now just mount the backup partition or the new home partition</p>
<p>mount /dev/sdb1 /backup<br />
mount /dev/sdb1 /home2<br />
Now you can use the additional hard drive for cPanel/WHM backups or storing new sites. cPanel should automatically detect /home2 and should ask you whether you like to setup new account on /home or at /home2.</p>
<p>If you want the partition to auto mount on server (re)boot edit fstab file located at /etc/fstab and add one of following lines at the bottom of it depending if you for /backup folder or the line below for /home2 folder:</p>
<p>/dev/sdb1 /backup ext3 defaults 0 0<br />
/dev/sdb1 /home2 ext3 defaults 0 0<br />
Note: After adding one of these lines press add one more empty line below since fstab requires the new line symbol at the end of every config line. Before you issue the following command, be aware that this re-mounts ALL Filesystems, and will more than likely disconnect most other users</p>
<p>To make sure this mounts automatically, issue the following command:</p>
<p>mount -a<br />
If you got no errors – your mount worked, try df -h once more to see if everything is fine</p>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2013/04/how-to-format-and-mount-second-hard-drive-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTAccess Speed Fix for Joomla</title>
		<link>http://chris-potter.co.uk/2013/04/htaccess-speed-fix-for-joomla/</link>
		<comments>http://chris-potter.co.uk/2013/04/htaccess-speed-fix-for-joomla/#comments</comments>
		<pubDate>Mon, 15 Apr 2013 18:34:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=810</guid>
		<description><![CDATA[Want to speed up your Joomla front end? Yes its a great cms but it can be slow. Here are a few tips to increase speed and maximise your google page speed score. 1. The cache plugin, yes a plugin. Search for it i assure you its there just not [...]]]></description>
				<content:encoded><![CDATA[<p>Want to speed up your Joomla front end?</p>
<p><span id="more-810"></span></p>
<p>Yes its a great cms but it can be slow. Here are a few tips to increase speed and maximise your google page speed score.</p>
<p>1. The cache plugin, yes a plugin. Search for it i assure you its there just not widely documented. This will cache permanently all your pages, great if you dont update the site much.</p>
<p>2. If your site gets updated a lot or has lots of every changing content you might want to cache your homepage only, using the same method above but with a modified joomla plugin now with an added timeout, homepage only and full browser caching <a class="downloadlink" href="http://chris-potter.co.uk/wp-content/plugins/download-monitor/download.php?id=32" title=" downloaded 21 times" >homepagecachepluginjoomla (21)</a></p>
<p>3. Activated Progressive caching in your global config with a timeout of around an hour.</p>
<p>4. Install google page speed on your server if you have a vps or dedicated, <a title="Google mod_pagespeed WHM with EasyApache" href="http://chris-potter.co.uk/2013/03/google-mod_pagespeed-whm-with-easyapache/"><strong>heres how</strong></a>.</p>
<p>5. A plugin to compress your html, i personally dont use it for css,js compression. You can also activate htaccess gzip via this but sometimes makes it worse, have a play <a href="http://www.farbfinal.de/jfinalizer/#download" target="_blank">HERE</a></p>
<p>6. Drop the following in your HTACCESS file</p>
<p><strong>(if you see error 500, try the following, remove the deflate line and test again, if not put it back and remove the header set expires line)</strong></p>
<p>SetOutputFilter DEFLATE<br />
Header set Expires “max-age=29030400, public”<br />
Header unset ETag<br />
FileETag None</p>
<p>ExpiresActive On<br />
ExpiresDefault A600<br />
ExpiresByType image/x-icon A2592000<br />
ExpiresByType application/x-javascript A604800<br />
ExpiresByType text/css A604800<br />
ExpiresByType image/gif A2592000<br />
ExpiresByType image/png A2592000<br />
ExpiresByType image/jpeg A2592000<br />
ExpiresByType text/plain A1200<br />
ExpiresByType application/x-shockwave-flash A2592000<br />
ExpiresByType video/x-flv A2592000<br />
ExpiresByType application/pdf A2592000<br />
ExpiresByType text/html A600</p>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2013/04/htaccess-speed-fix-for-joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to override component models or controllers in joomla just like a template override.</title>
		<link>http://chris-potter.co.uk/2013/04/how-to-override-component-models-or-controllers-in-joomla-just-like-a-template-override/</link>
		<comments>http://chris-potter.co.uk/2013/04/how-to-override-component-models-or-controllers-in-joomla-just-like-a-template-override/#comments</comments>
		<pubDate>Thu, 11 Apr 2013 19:31:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=800</guid>
		<description><![CDATA[This method only works if you install and enable the 3rd party MVC plugin &#8211; or provide your own equivalent plugin. It is fine for advanced developers &#8211; just be aware that this is not part of Joomla! Core code There may be times when you need to override the [...]]]></description>
				<content:encoded><![CDATA[<p>This method only works if you install and enable the 3rd party MVC plugin &#8211; or provide your own equivalent plugin. It is fine for advanced developers &#8211; just be aware that this is not part of Joomla! Core code</p>
<p><span id="more-800"></span></p>
<p>There may be times when you need to override the Joomla! MVC Component to add new functionality or to completely customise the component. The MVC component can be completely overridden by using the same class names that are used in the component. This is achieved by loading a system plugin before the component is dispatched by the application.</p>
<p>In this example we are wanting to keep the referrer redirection on the joomla login to redirect back to where you were and keep general logging in going to a page of your choice such as a my account page for your component.</p>
<p>To do this simply install this plugin <a class="downloadlink" href="http://chris-potter.co.uk/wp-content/plugins/download-monitor/download.php?id=31" title=" downloaded 37 times" >mvcoverride (37)</a></p>
<p>Activate the plugin</p>
<h2>Using a templating method</h2>
<p>Override Base Component Controller</p>
<div dir="ltr">
<div>
<pre>TEMPLATE_NAME/code/COMPONENT_NAME/CONTROLLER.php</pre>
</div>
</div>
<p>Override Another Component Controller</p>
<div dir="ltr">
<div>
<pre>TEMPLATE_NAME/code/COMPONENT_NAME/controllers/CONTROLLER_NAME.php</pre>
</div>
</div>
<p>Override Models</p>
<div dir="ltr">
<div>
<pre>TEMPLATE_NAME/code/COMPONENT_NAME/models/MODEL_NAME.php</pre>
</div>
</div>
<p>Override Views</p>
<div dir="ltr">
<div>
<pre>TEMPLATE_NAME/code/COMPONENT_NAME/views/VIEW_NAME/VIEW_NAME(.FORMAT).php</pre>
<p>&nbsp;</p>
<p>So in our example we will use</p>
<pre>TEMPLATE_NAME/code/com_users/models/login.php copied from components/com_users/models/login.php

We then enter our own redirect url for none referred users on line 66

Normally it is $data['return'] = 'index.php?option=com_users&amp;view=profile';

but we change to $data['return'] = 'whateverurlyouwant';

And hey presto we are done.</pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2013/04/how-to-override-component-models-or-controllers-in-joomla-just-like-a-template-override/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Google mod_pagespeed WHM with EasyApache</title>
		<link>http://chris-potter.co.uk/2013/03/google-mod_pagespeed-whm-with-easyapache/</link>
		<comments>http://chris-potter.co.uk/2013/03/google-mod_pagespeed-whm-with-easyapache/#comments</comments>
		<pubDate>Thu, 28 Mar 2013 22:39:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=796</guid>
		<description><![CDATA[Keep getting asked about google pagespeed and what a pain it seems to be, you have to do this and that and yes the site should have been built like that in the first place but what if it wasn&#8217;t or you want to take it even further. Well mod_pagespeed [...]]]></description>
				<content:encoded><![CDATA[<p>Keep getting asked about google pagespeed and what a pain it seems to be, you have to do this and that and yes the site should have been built like that in the first place but what if it wasn&#8217;t or you want to take it even further.</p>
<p>Well mod_pagespeed is the answer.</p>
<p>This guide will help you set this up on a Cpanel server, currently tested with centos 6 and WHM 11.34.1 (build 12) with Easy Apache 3</p>
<p><span id="more-796"></span></p>
<p><span style="text-decoration: underline;"><strong>Firstly you will need to SSH in to your server and run the following</strong></span></p>
<p>wget http://prajith.in/scripts/mod_pagespeed-cust-opts.tar.gz</p>
<p>or</p>
<p>wget http://chris-potter.co.uk/scripts/mod_pagespeed-cust-opts.tar.gz</p>
<p>then run</p>
<p>tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf mod_pagespeed-cust-opts.tar.gz</p>
<p>Thats it surprisingly easy wasn&#8217;t it, now you can run</p>
<p>/scripts/easyapache</p>
<p>or</p>
<p><span style="text-decoration: underline;"><strong>Login into WHM and go to EasyApache Update (preferably)</strong></span></p>
<p>When rebuilding apache and php etc you will have your usually exhaustive options list.<br />
It will show you the Mod_Pagespeed included in it and you can install it by checking the box. Go ahead and select deflate too if not already selected.</p>
<p>This will take a while go make a brew&#8230;&#8230;&#8230;&#8230;..</p>
<p>Ok back to it, now the fun starts.</p>
<p>First Restart Apache and check your site so see whats going on. Load time should be vastly improved and google page speed score too but there might be a few issues.</p>
<p><span style="text-decoration: underline;"><strong>The global config for mod_pagespeed can be found in /usr/local/apache/conf/pagespeed.conf and it will have a few defaults in there.</strong></span></p>
<p><span style="text-decoration: underline;"><strong>Add these filters in Pagespeed.conf (path: /usr/local/apache/conf/pagespeed.conf)</strong></span></p>
<p>ModPagespeedRewriteLevel CoreFilters<br />
ModPagespeedEnableFilters combine_css<br />
ModPagespeedEnableFilters combine_heads<br />
ModPagespeedEnableFilters combine_javascript<br />
ModPagespeedEnableFilters convert_jpeg_to_webp<br />
ModPagespeedEnableFilters convert_png_to_jpeg<br />
ModPagespeedEnableFilters inline_preview_images<br />
ModPagespeedEnableFilters rewrite_css<br />
ModPagespeedEnableFilters rewrite_javascript<br />
ModPagespeedEnableFilters inline_css<br />
ModPagespeedEnableFilters inline_javascript<br />
ModPagespeedEnableFilters outline_javascript<br />
ModPagespeedEnableFilters rewrite_images<br />
ModPagespeedEnableFilters insert_img_dimensions<br />
ModPagespeedEnableFilters remove_comments<br />
ModPagespeedEnableFilters extend_cache<br />
ModPagespeedEnableFilters remove_quotes<br />
ModPagespeedEnableFilters make_google_analytics_async<br />
ModPagespeedEnableFilters move_css_above_scripts<br />
ModPagespeedEnableFilters move_css_to_head<br />
ModPagespeedEnableFilters prioritize_visible_content<br />
ModPagespeedEnableFilters resize_mobile_images<br />
ModPagespeedEnableFilters sprite_images<br />
ModPagespeedEnableFilters defer_javascript<br />
ModPagespeedEnableFilters detect_reflow_with_defer_js<br />
ModPagespeedEnableFilters lazyload_images</p>
<p>SAVE AND RESTART APACHE, do via SSH to view any errors</p>
<p><span style="text-decoration: underline;"><strong>HTACCESS STUFF FOR MOD_PAGE SPEED</strong></span></p>
<p>Rememember to remove the # at the start of anything you want to use.</p>
<p>ModPagespeedDomain sets the domain to use page speed<br />
If you want to turn it off for development use the #dev# line</p>
<p>#STARTmodpagespeed<br />
#ModPagespeedDomain http://www.domain.co.uk<br />
#dev# ModPagespeed off<br />
#Disable pagespeed on this folder#<br />
ModPagespeedDisallow */administrator/*<br />
#Disable pagespeed on this file#<br />
#ModPagespeedDisallow */jquery-ui-1.8.2.custom.min.js<br />
#Disable particular filters#<br />
ModPagespeedDisableFilters lazyload_images<br />
#Enable particular filters#<br />
#ModPagespeedEnableFilters insert_image_dimensions,rewrite_domains,convert_jpeg_to_webp,co<br />
#ENDmodpagespeed</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>IF YOU CHOSE TO ADD DEFLATE OR YOU ALREADY HAVE IT</strong></span></p>
<p>Give this a try in your htaccess file</p>
<p>SetOutputFilter DEFLATE<br />
Header set Expires &#8220;max-age=29030400, public&#8221;<br />
Header unset ETag<br />
FileETag None</p>
<p>ExpiresActive On<br />
ExpiresDefault A600<br />
ExpiresByType image/x-icon A2592000<br />
ExpiresByType application/x-javascript A604800<br />
ExpiresByType text/css A604800<br />
ExpiresByType image/gif A2592000<br />
ExpiresByType image/png A2592000<br />
ExpiresByType image/jpeg A2592000<br />
ExpiresByType text/plain A1200<br />
ExpiresByType application/x-shockwave-flash A2592000<br />
ExpiresByType video/x-flv A2592000<br />
ExpiresByType application/pdf A2592000<br />
ExpiresByType text/html A600</p>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2013/03/google-mod_pagespeed-whm-with-easyapache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla 2.5 E-mail could not be sent [FIXED]</title>
		<link>http://chris-potter.co.uk/2012/11/joomla-2-5-e-mail-could-not-be-sent-fixed/</link>
		<comments>http://chris-potter.co.uk/2012/11/joomla-2-5-e-mail-could-not-be-sent-fixed/#comments</comments>
		<pubDate>Mon, 05 Nov 2012 08:44:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=791</guid>
		<description><![CDATA[Joomla not sending out email via pop up window. Strange as this was an issue in 1.5 and seems to be the same in some 2.5 installations.   To resolve this problem, open this file: components/com_mailto/controller.php Locate the following line of code (approximately line 57): if($timeout == 0 &#124;&#124; time() [...]]]></description>
				<content:encoded><![CDATA[<p>Joomla not sending out email via pop up window. Strange as this was an issue in 1.5 and seems to be the same in some 2.5 installations.</p>
<div> <span id="more-791"></span></div>
<div></div>
<div>
<p>To resolve this problem, open this file:</p>
<p><strong>components/com_mailto/controller.php</strong></p>
<p>Locate the following line of code (approximately line 57):</p>
<p><code>if($timeout == 0 || time() - $timeout &lt; 20) {</code></p>
<p>Change the line to the following:</p>
<p><code>if($timeout == 0 || time() - $timeout &gt; 20) {</code></p>
<p>Save, Upload and test.<br />
You can also increase the time from 20 to say 50.</p>
<p>You can read more about this bug <a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;tracker_item_id=14809">here</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2012/11/joomla-2-5-e-mail-could-not-be-sent-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Development Array for small business</title>
		<link>http://chris-potter.co.uk/2012/09/development-array-small-business/</link>
		<comments>http://chris-potter.co.uk/2012/09/development-array-small-business/#comments</comments>
		<pubDate>Fri, 14 Sep 2012 19:48:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=768</guid>
		<description><![CDATA[As im a fan of us company rackable and there half depth systems, check this out. Rackable Systems 2U Servers x3 Single Opteron Dual Core 4GB Ram, 2x 160GB SAS RAID 1 running webmin, ruby project system and bind dns Twin Opteron Dual Cores 8GB Ram, 4x 160GB SAS RAID [...]]]></description>
				<content:encoded><![CDATA[<p>As im a fan of us company rackable and there half depth systems, check this out.</p>
<p><span id="more-768"></span></p>
<p>Rackable Systems 2U Servers x3</p>
<p>Single Opteron Dual Core 4GB Ram, 2x 160GB SAS RAID 1 running webmin, ruby project system and bind dns</p>
<p>Twin Opteron Dual Cores 8GB Ram, 4x 160GB SAS RAID 0+1 running cpanel/whm for application development. Running daily,weekly,monthly backup retention to s3 buckets mirrored.</p>
<p>Single Sempron hacked to dual core 8GB Ram, 2x 640GB Spinpoint SATA II drives in RAID 1 running windows xp (backup, terminal server etc)</p>
<p>Twin Opteron Dual Cores 8GB Ram, 4x 160GB SAS RAID 0+1 running rysnc to clone first cpanel/whm server incase of failure</p>
<p>APC Smart-UPS 750VA USB RM 2U 230V running agent to first cpanel server to shutdown on low battery, 5 mins left on battery.</p>
<p>Plans to add further ups or network shutdown for rack</p>
<p>Images to follow once im done also there is a guide <a title="Cpanel Server on Internal IP Address" href="http://chris-potter.co.uk/2012/09/cpanel-server-internal-ip-address/"><strong>here</strong></a> which shows you how to setup cpanel behind another server on an internal ip</p>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2012/09/development-array-small-business/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cpanel Server on Internal IP Address</title>
		<link>http://chris-potter.co.uk/2012/09/cpanel-server-internal-ip-address/</link>
		<comments>http://chris-potter.co.uk/2012/09/cpanel-server-internal-ip-address/#comments</comments>
		<pubDate>Fri, 14 Sep 2012 19:38:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://chris-potter.co.uk/?p=766</guid>
		<description><![CDATA[Firstly i found this nightmare but as always love to share. So here is the scenario i wanted to move our dev infrastructure in house servers, racks, raid etc all sorted nice and easy. Have two IP&#8217;s as i have a 150MB fibre line but one ip is for voip and other is [...]]]></description>
				<content:encoded><![CDATA[<p>Firstly i found this nightmare but as always love to share.</p>
<p>So here is the scenario i wanted to move our dev infrastructure in house servers, racks, raid etc all sorted nice and easy. Have two IP&#8217;s as i have a 150MB fibre line but one ip is for voip and other is for web so im on one external ip.</p>
<p>The front facing server is centos6 64 bit running webmin and ruby on which our project system is built. but i prefer to develop on cpanel.</p>
<p>The cpanel server is on an internal ip. the issue is to get the domains, ftp, ssh, cpanel and whm port redirections to work via the webmin server.</p>
<p><span id="more-766"></span></p>
<p>So here is how i did it.</p>
<p>(because the domains are subdomains of the host name the names of the conf files are different to doing this with a normal virtual host)</p>
<p>so the hostname is for example servername.domainname.com</p>
<p><strong>WHM</strong></p>
<p>call the file whm.subdomainname.conf</p>
<p>&lt;VirtualHost internalip:80&gt;<br />
ServerName whm.servername.domainname.com<br />
DocumentRoot /var/www/html<br />
RewriteEngine On<br />
RewriteRule ^(.*)$ http://internalip:2086/$1 [NC,P]</p>
<p>&lt;/VirtualHost&gt;</p>
<p><strong>CPANEL</strong></p>
<p>&lt;VirtualHost internalip:80&gt;<br />
ServerName cpanel.servername.domainname.com<br />
DocumentRoot /var/www/html<br />
RewriteEngine On<br />
RewriteRule ^(.*)$ http://internalip:2082/$1 [NC,P]</p>
<p>&lt;/VirtualHost&gt;</p>
<p>Restart apache point the cpanel.servername.domainname.com and whm.servername.domainname.com a records to your outside ip with your domain/dns provider.</p>
<p>Test and works like a charm. Will also verify cpanel licence no problem so your compliant.</p>
<p>So now i want a domain on cpanel for development so i setup an account on cpanel called dev.domainname.com</p>
<p>i would use this for joomla or wordpress for example.</p>
<p>call the file subdomainname.conf</p>
<div>
<p>&lt;VirtualHost internalip:80&gt;<br />
ServerName dev.domainname.com<br />
DocumentRoot /var/www/html<br />
ProxyRequests off<br />
ProxyPreserveHost on<br />
RewriteEngine On<br />
RewriteRule ^/(.*) http://internalip/$1 [NC,P]</p>
<p>&lt;/VirtualHost&gt;</p>
<p>works great for joomla and wordpress and most other things probably magento</p>
<p>the other way to do it which is what i tried first which works for magento but not joomla or wordpress is</p>
<p>&lt;VirtualHost internalip:80&gt;<br />
ServerName dev.domainname.com<br />
DocumentRoot /var/www/html<br />
ProxyRequests off<br />
ProxyPreserveHost on<br />
RewriteEngine On<br />
RewriteRule ^(.*) http://internalip/$1 [NC,P]</p>
<p># ProxyPass / http://internalip timeout=60<br />
#ProxyPassReverse / http://internalip timeout=60<br />
&lt;/VirtualHost&gt;</p>
<p>Point the domain a records and restart apache and you should be good to go.</p>
<p>if i run in to any more issues i will update this post.</p>
<p>update</p>
<p>add again in same file to do www</p>
<p>&lt;VirtualHost 192.168.1.81:80&gt;<br />
ServerName www.subdomain.domainname.co.uk<br />
DocumentRoot /var/www/html<br />
ProxyRequests off<br />
ProxyPreserveHost on<br />
RewriteEngine On<br />
RewriteRule ^/(.*) http://INTERNALIP/$1 [NC,P]</p>
<p>&lt;/VirtualHost&gt;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://chris-potter.co.uk/2012/09/cpanel-server-internal-ip-address/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.471 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-06-10 10:12:30 -->
