<?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>Danny-T.co.uk &#187; Hosting</title>
	<atom:link href="http://danny-t.co.uk/index.php/category/hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://danny-t.co.uk</link>
	<description>Web apps fanatic, ramblings on dev for web, mobile and other geeky stuff</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:59: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>Theme, Sublime, Build, IISExpress</title>
		<link>http://danny-t.co.uk/index.php/2012/01/25/theme-sublime-build-iisexpress/</link>
		<comments>http://danny-t.co.uk/index.php/2012/01/25/theme-sublime-build-iisexpress/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 21:06:36 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[This Blog]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/?p=544</guid>
		<description><![CDATA[So phase one of the new theme is done. You&#8217;re currently looking at a totally bare-bones theme (unless you&#8217;re looking back at this post in the future) which I&#8217;ll be building from in the coming weeks. To get this far most of the work has been in the project setup which you can find on [...]]]></description>
			<content:encoded><![CDATA[<p>So phase one of the <a href="http://danny-t.co.uk/index.php/2012/01/14/developing-a-new-theme/" title="Developing a new theme">new theme</a> is done. You&#8217;re currently looking at a totally bare-bones theme (unless you&#8217;re looking back at this post in the future) which I&#8217;ll be building from in the coming weeks. To get this far most of the work has been in the project setup which you can find on github <a href="https://github.com/DannyT/danny-t.co.uk" title="dannyt theme">here</a>.</p>
<p>Credit where it&#8217;s due, I ripped the foundations of this set up from <a href="https://github.com/peterkeating/peterkeating.co.uk" title="Peter Keating theme">Pete&#8217;s theme</a>.</p>
<p>A quick run through of what&#8217;s there:</p>
<ul>
<li><strong>dannyt.sublime-project</strong> &#8211; the project file for the excellent <a href="http://www.sublimetext.com/2" title="sublime text 2">sublime text 2 editor</a><br />
  Main things to take from this are the &#8216;build systems&#8217; and the paths. Simply opening this file in Sublime should leave you looking at the right project structure with access to build and launch systems under sublimes Project > Build Systems menu.
  </li>
<li><strong>src folder</strong> &#8211; where all the wordpress theme php files live</li>
<li><strong>scripts folder</strong> &#8211; unprocessed Javascript, Less and CSS files</li>
<li><strong>build folder</strong> &#8211; contains an ant build file and various supporting build utilities</li>
</ul>
<p>So far I&#8217;ve found playing with sublime and streamlining the build process the most enjoyable aspects. The actual theme side of things hasn&#8217;t really kicked off yet. I like the prospect of working out a good responsive design and brushing up on some CSS and JS wizardry but not too fussed on PHP. From the looks of things though wordpress deals with most of that and it&#8217;s mainly a case of putting the right function calls in the right files.</p>
<p>I&#8217;m using <a href="http://learn.iis.net/page.aspx/868/iis-express-overview/" title="IIS Express">IIS Express</a> to run the theme locally which after a bit of digging around I&#8217;m pleased with the setup of. I can keep the configuration in source control and launch it as part of my build so I now have a relatively friction free development process.</p>
<p>I&#8217;ll go through more details of the build process in a future post, normally I&#8217;d suggest leaving a comment if you have any questions but I&#8217;ve not got as far as the comment form in the theme yet! But feel free to message me on <a href="https://github.com/DannyT/" title="DannyT Github">github</a> or tweet me on twitter (<a href="https://twitter.com/#!/dannyt" title="DannyT Twitter">@dannyt</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2012/01/25/theme-sublime-build-iisexpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe AIR MIME type for IIS</title>
		<link>http://danny-t.co.uk/index.php/2009/07/18/adobe-air-mime-type-for-iis/</link>
		<comments>http://danny-t.co.uk/index.php/2009/07/18/adobe-air-mime-type-for-iis/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 23:26:58 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/?p=141</guid>
		<description><![CDATA[Another quick post for future reference, the IIS MIME type needed for Adobe AIR .air files: extension: .air mime-type: application/vnd.adobe.air-application-installer-package+zip]]></description>
			<content:encoded><![CDATA[<p>Another quick post for future reference, the IIS MIME type needed for Adobe AIR .air files:</p>
<p>extension: .air<br />
mime-type: application/vnd.adobe.air-application-installer-package+zip</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2009/07/18/adobe-air-mime-type-for-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FileZilla passive mode on Windows Server 2003</title>
		<link>http://danny-t.co.uk/index.php/2008/02/07/filezilla-passive-mode-on-windows-server-2003/</link>
		<comments>http://danny-t.co.uk/index.php/2008/02/07/filezilla-passive-mode-on-windows-server-2003/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 09:56:37 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/index.php/2008/02/07/filezilla-passive-mode-on-windows-server-2003/</guid>
		<description><![CDATA[*UPDATE* &#8211; I always felt this was not the right way to do things but it did work. The right way is to simply add the filezilla server.exe program to a firewall exception as described here This took me a while to figure out so posting for any future server setups I have to do. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>*UPDATE* &#8211; I always felt this was not the right way to do things but it did work. The right way is to simply add the filezilla server.exe program to a firewall exception <a href="http://wiki.filezilla-project.org/Network_Configuration#Setting_up_FileZilla_Server_with_Windows_Firewall">as described here</a></strong></p>
<p>This took me a while to figure out so posting for any future server setups I have to do.</p>
<p>To enable passive mode in FileZilla FTP server on win2003 you need to do the following:</p>
<p><strong>1 &#8211; Open a small range of ports in your windows firewall</strong><br />
Firstly make sure port 21 is open.<br />
You can do this under Control Panel -> Windows Firewall -> Exceptions tab -> Add Port<br />
Enter 21 as the port number and FTP as the description ensuring TCP is selected and OK.</p>
<p>Then you need to do the same with a range of ports typically of a much higher number, you can do this using the same approach but that will take a long time to add them, alternatively, create a new textfile called passiveopen.bat and paste in the following:<br />
[code]<br />
Echo OFF</p>
<p>ECHO OPENING FIREWALL PORTS<br />
FOR /L %%I IN (6500,1,6550) DO NETSH FIREWALL ADD PORTOPENING TCP %%I FTPPort%%I</p>
<p>REM iisreset</p>
<p>ECHO FINISHED<br />
Pause<br />
[/code]<br />
save then open command prompt (start, run, &#8220;cmd&#8221; enter)<br />
and type the path and filename of that textfile (E.g. &#8220;c:\passiveopen.bat&#8221;) which will open the ports 6500 to 6550 for you.</p>
<p><strong>2 &#8211; Open the same ports on your router/other firewalls</strong><br />
Depending on your setup you might need to open the same ports on your router and any other hardware and software firewalls you have running.</p>
<p><strong>3 &#8211; Tell FileZilla to use those ports for passive mode</strong><br />
In FileZilla server click Edit -> Settings<br />
Select Passive Mode Settings from the menu on the left and enter the ports in the custom ports range box.</p>
<p>Et voila! passive mode should now be firing on all cylinders. Simple and obvious but thought I&#8217;d share in case anyone else doesn&#8217;t want to dig through the docs and isn&#8217;t too familiar with how passive mode works.</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2008/02/07/filezilla-passive-mode-on-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Simple batch file backup</title>
		<link>http://danny-t.co.uk/index.php/2007/08/18/simple-batch-file-backup/</link>
		<comments>http://danny-t.co.uk/index.php/2007/08/18/simple-batch-file-backup/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 12:12:20 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/index.php/2007/08/18/simple-batch-file-backup/</guid>
		<description><![CDATA[I&#8217;ve just setup a very simple backup system that works over FTP. Windows only I&#8217;m afraid but i&#8217;m sure the equivilent isn&#8217;t too hard on other platforms. Tools Firstly I used two very simple free/open source command line tools: SSLFTP &#8211; simple FTP tool that works in passive mode or over secure connections. and 7-zip [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just setup a very simple backup system that works over FTP. Windows only I&#8217;m afraid but i&#8217;m sure the equivilent isn&#8217;t too hard on other platforms.</p>
<p><strong>Tools</strong><br />
Firstly I used two very simple free/open source command line tools:<br />
<a href="http://www.netwinsite.com/surgeftp/sslftp.htm">SSLFTP</a> &#8211; simple FTP tool that works in passive mode or over secure connections.<br />
and<br />
<a href="http://www.7-zip.org/">7-zip</a> &#8211; an open source zip file archiver.</p>
<p>Download and install the above on the machine you wish to backup from.</p>
<p><strong>FTP Script</strong><br />
I then wrote the following script file to handle the FTP (saved as ftpscript.txt):<br />
<code><br />
open <em>ftpusername</em>:<em>ftppassword</em>@ftp.host.address<br />
del backup7.zip<br />
rename backup6.zip backup7.zip<br />
rename backup5.zip backup6.zip<br />
rename backup4.zip backup5.zip<br />
rename backup3.zip backup4.zip<br />
rename backup2.zip backup3.zip<br />
rename backup.zip backup2.zip<br />
put c:\backupscripts\backup.zip<br />
bye<br />
</code><br />
All this is doing is taking a copy of seven days worth of backups and deleting the oldest then uploading the newest backup.</p>
<p><strong>Backup Script</strong><br />
To decrease the time taken to FTP everything I use the following batch file to keep three days worth of backups locally, zip the files I want to backup and call the above FTP script (saved as daily.bat):<br />
<code><br />
delete backup3.zip<br />
rename backup2.zip backup3.zip<br />
rename backup.zip backup2.zip<br />
7z a -tzip d:\backupscripts\backup.zip d:\inetpub\wwwroot\<br />
7z a -tzip d:\backupscripts\backup.zip d:\DB_Backup\<br />
7z a -tzip d:\backupscripts\backup.zip d:\other_folders_to_keep\<br />
sslftp -run ftpscript.txt<br />
</code></p>
<p>The 7z lines mean the following:<br />
<em>7z</em> &#8211; execute the 7-zip exe<br />
<em>a</em> &#8211; add files<br />
<em>-tzip</em> &#8211; archive file type of zip<br />
<em>d:\backupscripts\backup.zip</em> &#8211; archive to add to (will create if does not exist)<br />
<em>d:\backupscripts\backup.zip d:\other_folders_to_keep\</em> folder/files to add to archive</p>
<p>And thats it! All you do then is setup a scheduled task (Start, Settings, Control Panel, Scheduled Tasks) to run every night and you&#8217;re done!</p>
<p><strong>What no FTP?</strong><br />
If you don&#8217;t have any FTP space you can backup across a network/internet connection and setup a PC as an FTP server using the excellent <a href="http://filezilla.sourceforge.net/">FileZilla</a>.</p>
<p>UPDATE: see comments for some notes from William who suggests some alternative syntax if you have issues with the above and a more logical sequence to protect against things going wrong mid-process.</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2007/08/18/simple-batch-file-backup/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Shout about GOOD service</title>
		<link>http://danny-t.co.uk/index.php/2006/10/06/shout-about-good-service/</link>
		<comments>http://danny-t.co.uk/index.php/2006/10/06/shout-about-good-service/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 13:33:34 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/index.php/2006/10/06/shout-about-good-service/</guid>
		<description><![CDATA[I recently involved myself in the sharing of frustrations about shocking customer service from banks and telecoms providers in the UK with Aral. Today I had some troubles with one of our customer&#8217;s emails apparently not being received, we use MDaemon mail server. I hit a brick wall and called the guys at ZenSoftware who [...]]]></description>
			<content:encoded><![CDATA[<p>I recently involved myself in the sharing of frustrations about shocking customer service from banks and telecoms providers in the UK with <a href="http://aralbalkan.com/757">Aral</a>. </p>
<p>Today I had some troubles with one of our customer&#8217;s emails apparently not being received, we use <a href="http://www.altn.com/products/default.asp/product_id/MDaemon">MDaemon mail server</a>. I hit a brick wall and called the guys at <a href="http://www.zensoftware.co.uk/">ZenSoftware </a> who we purchased the software through&#8230; in fact I called them three times and emailed them once. Every time they told me exactly what I needed to know. The one time I called and couldn&#8217;t get through they returned my call within 10 minutes and my email was also responded to almost immediately. </p>
<p>I figure people don&#8217;t tend to shout about good customer service so have decided to start mentioning positive experiences as well as bad.</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2006/10/06/shout-about-good-service/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problems sending mails to AOL and similar</title>
		<link>http://danny-t.co.uk/index.php/2006/08/08/problems-sending-mails-to-aol-and-similar/</link>
		<comments>http://danny-t.co.uk/index.php/2006/08/08/problems-sending-mails-to-aol-and-similar/#comments</comments>
		<pubDate>Tue, 08 Aug 2006 14:53:51 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/index.php/2006/08/08/problems-sending-mails-to-aol-and-similar/</guid>
		<description><![CDATA[AOL, the wonderful company that they are, require any mail to be sent to them to be from a server with a valid reverse DNS lookup (ptr) record. If you&#8217;re finding emails bouncing back from AOL (and some others) make sure your mail server&#8217;s domain name server has an an appropriate ptr record setup. This [...]]]></description>
			<content:encoded><![CDATA[<p>AOL, the <a href="http://aralbalkan.com/675">wonderful company</a> that they are, require any mail to be sent to them to be from a server with a valid reverse DNS lookup (ptr) record. If you&#8217;re finding emails bouncing back from AOL (and some others) make sure your mail server&#8217;s domain name server has an an appropriate ptr record setup. </p>
<p>This is actually a fairly resonable anti-spam measure, however try finding out from AOL that&#8217;s the problem isn&#8217;t so reasonable. Anyway posting this as we&#8217;ve had this issue a couple of times and would make for a good reference.</p>
<p>To check you have an appropriate reverse dns setup, goto www.dnsstuff.com and enter the IP of your mailserver into the 2nd field in the middle. at the bottom if you&#8217;re okay it should say:<br />
Answer:</p>
<blockquote><p>83.98.149.130 PTR record: mail.moov2.com. [TTL 172800s] [A=83.98.149.130]</p></blockquote>
<p>if not you&#8217;ll get some message saying no reverse lookup or similar.</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2006/08/08/problems-sending-mails-to-aol-and-similar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple domains (virtual hosts) in apache</title>
		<link>http://danny-t.co.uk/index.php/2006/06/03/multiple-domains-virtual-hosts-in-apache/</link>
		<comments>http://danny-t.co.uk/index.php/2006/06/03/multiple-domains-virtual-hosts-in-apache/#comments</comments>
		<pubDate>Sat, 03 Jun 2006 14:38:58 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://localhost/danny-t.co.uk/index.php/2006/06/03/multiple-domains-virtual-hosts-in-apache/</guid>
		<description><![CDATA[This information is everywhere and is by no means anything special. But as a recent convert to apache from IIS I need somewhere to put this as reference: To setup multiple hosts in apache, add the following into http.conf &#60;VirtualHost 10.1.2.3&#62; DocumentRoot /www/vhost1 ServerName www.my-dom.com &#60;/VirtualHost&#62; Full details over on apache.org Genius huh? I&#8217;ve also [...]]]></description>
			<content:encoded><![CDATA[<p>This information is everywhere and is by no means anything special. But as a recent convert to apache from IIS I need somewhere to put this as reference:</p>
<p>To setup multiple hosts in apache, add the following into http.conf<br />
<span class="body" /></p>
<pre>  &lt;VirtualHost 10.1.2.3&gt;
  DocumentRoot /www/vhost1
  ServerName  www.my-dom.com
  &lt;/VirtualHost&gt;
</pre>
<p>Full details over on <a href="http://httpd.apache.org/docs/1.3/vhosts/name-based.html">apache.org</a><br />
Genius huh?</p>
<p>I&#8217;ve also been creating symlinks to my user&#8217;s public_html folder, a symlink is kindof a shortcut or virtual directory equivilent in windows/iis. The following command line code is used for creating symlinks:</p>
<pre>ln -s /home/your_user_name/public_html/folder /srv/www/htdocs/folder" </pre>
<p>This creates a shortcut from the Apache htdocs to the users personal html docs.</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2006/06/03/multiple-domains-virtual-hosts-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

