<?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>rickogden.com &#187; tutorial</title>
	<atom:link href="http://www.rickogden.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rickogden.com</link>
	<description></description>
	<lastBuildDate>Mon, 13 Jun 2011 10:09:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Virtual Hosts for Development with Apache on Ubuntu</title>
		<link>http://www.rickogden.com/2010/07/virtual-hosts-for-development-with-apache-on-ubuntu/</link>
		<comments>http://www.rickogden.com/2010/07/virtual-hosts-for-development-with-apache-on-ubuntu/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 14:58:38 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=355</guid>
		<description><![CDATA[I do a lot of development on Ubuntu, as I often have multiple projects on the go which are nothing to do with each other, it&#8217;s often easier to create separate virtual hosts on my local development machine. This means that when they are ready for the &#8220;real world&#8221;, they are already set up as [...]]]></description>
			<content:encoded><![CDATA[<p>I do a lot of development on Ubuntu, as I often have multiple projects on the go which are nothing to do with each other, it&#8217;s often easier to create separate virtual hosts on my local development machine. This means that when they are ready for the &#8220;real world&#8221;, they are already set up as isolated sites at the root of their domain (rather than in a subdirectory of an existing site).</p>
<p>In order to do this, you need to create a new virtual host in your Apache config. Create a new file in the directory /etc/apache2/sites-available and open it in your favourite editor. It doesn&#8217;t matter what the file is called, but it&#8217;s best to keep it descriptive. We&#8217;ll call this project &#8220;mysite&#8221;, so the file can be called &#8220;mysite&#8221;. In the file we need to configure the Apache virtual host.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;VirtualHost 127.0.0.1&gt;
ServerName mysite.localhost
DocumentRoot /var/www/mysite/public/
&lt;/VirtualHost&gt;
</pre>
<p>In the VirtualHost tag, you put the IP, seeing as I only want this for local loopback (for development) I have just put 127.0.0.1. The ServerName is the URL that you use to connect to the site and the DocumentRoot is where the public documents are stored. This is a very basic set up, so there are many more options you can add.</p>
<p>To make the site enabled, you create a symbolic link to the file from the sites-enabled directory.</p>
<pre class="brush: plain; light: true; title: ; notranslate">
cd /etc/apache2/sites-enabled
ln -s ../sites-available/mysite mysite
</pre>
<p>You now need to add the subdomain (mysite.localhost) to the list of hosts, so open /etc/hosts in your favourite editor and append the line:</p>
<pre class="brush: plain; light: true; title: ; notranslate">127.0.0.1 mysite.localhost</pre>
<p>And then restart Apache:</p>
<pre class="brush: plain; light: true; title: ; notranslate">sudo /etc/init.d/apache2 restart</pre>
<p>Now you should be able to visit http://mysite.localhost on the local machine (assuming the directory does actually exist).</p>
<p>This should also be similar on MacOS and other linux Distros, but the file locations (particularly for Apache) will vary.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2010/07/virtual-hosts-for-development-with-apache-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Talking at PHPNW &#8211; 1st December</title>
		<link>http://www.rickogden.com/2009/11/talking-at-phpnw-1st-december/</link>
		<comments>http://www.rickogden.com/2009/11/talking-at-phpnw-1st-december/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 09:43:56 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[object orientation]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpnw]]></category>
		<category><![CDATA[phpnw09]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[talk]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=114</guid>
		<description><![CDATA[Just to let you know that at the next PHPNW meeting I will be giving an extended version of my talk: Beginners Guide to Object Orientation in PHP, which I gave at the PHPNW09 conference. For those who don&#8217;t know, this is held in Revolution on Deansgate Locks in Manchester, and starts at 7pm on [...]]]></description>
			<content:encoded><![CDATA[<p>Just to let you know that at the next <a href="http://www.phpnw.org.uk" target="_blank">PHPNW</a> meeting I will be giving an extended version of my talk: <a href="http://www.rickogden.com/tutorials/beginners-guide-to-object-orientation-in-php/">Beginners Guide to Object Orientation in PHP</a>, which I gave at the <a href="http://conference.phpnw.org.uk/" target="_blank">PHPNW09</a> conference.</p>
<p>For those who don&#8217;t know, this is held in Revolution on Deansgate Locks in Manchester, and starts at 7pm on Tuesday 1st December.</p>
<p><a href="http://upcoming.yahoo.com/event/4886579/MCR/Manchester/PHPNW-December-2009/Revolution-Deansgate/" target="_blank">Upcoming link</a><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2009/11/talking-at-phpnw-1st-december/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Beginners Guide to Object Orientation with PHP</title>
		<link>http://www.rickogden.com/2009/10/beginners-guide-to-object-orientation-with-php/</link>
		<comments>http://www.rickogden.com/2009/10/beginners-guide-to-object-orientation-with-php/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 13:52:49 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpnw]]></category>
		<category><![CDATA[phpnw09]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[talk]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=45</guid>
		<description><![CDATA[I have uploaded my conference talk (plus source code) on a Beginners Guide to Object Orientation with PHP to the tutorials section of my website, please have a look and leave feedback. I will be writing a post about PHPNW09 very shortly.]]></description>
			<content:encoded><![CDATA[<p>I have uploaded my conference talk (plus source code) on a <a href="http://www.rickogden.com/presentations/beginners-guide-to-object-orientation-in-php/">Beginners Guide to Object Orientation with PHP</a> to the <a href="http://www.rickogden.com/tutorials/">tutorials</a> section of my website, please have a look and leave feedback.</p>
<p>I will be writing a post about PHPNW09 very shortly.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2009/10/beginners-guide-to-object-orientation-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.rickogden.com/tag/tutorial/feed/ ) in 1.06150 seconds, on Feb 7th, 2012 at 1:22 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 7th, 2012 at 2:22 am UTC -->
