<?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/"
	>

<channel>
	<title>David Hewards &#124; Web Log</title>
	<atom:link href="http://www.davidheward.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidheward.com</link>
	<description>My interests programming, webdesign, technology, gaming and general computing</description>
	<pubDate>Wed, 01 Sep 2010 08:49:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP frameworks CodeIgniter, Zend &amp; Symfony</title>
		<link>http://www.davidheward.com/2010/09/01/php-frameworks-codeigniter-zend-symfony/</link>
		<comments>http://www.davidheward.com/2010/09/01/php-frameworks-codeigniter-zend-symfony/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 08:49:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP Frameworks]]></category>

		<category><![CDATA[Php development]]></category>

		<category><![CDATA[CodeIgniter]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[Symfony]]></category>

		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=399</guid>
		<description><![CDATA[Lately I have been considering PHP frameworks and using them to speed up development of small projects, whilst also considering the MVC (Model, View, Control) approach. Most people looking for a PHP framework seem to stick with CodeIgniter, Zend or Symfony. Each with there own advantages and disadvantages. Which one is best is all down [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been considering PHP frameworks and using them to speed up development of small projects, whilst also considering the MVC (Model, View, Control) approach. Most people looking for a PHP framework seem to stick with CodeIgniter, Zend or Symfony. Each with there own advantages and disadvantages. Which one is best is all down to personal taste and its very difficult to make an educated selection of the framework thats best for you. Its baffled me infact, that I can&#8217;t put my finger on the framework that I think works for me the best.</p>
<p>So I plan to try and develop a small project in each of these frameworks and decide after that which one I think is the best for me.</p>
<p>For more complex sites, I will continue to use my own custom framework as it helps to keep down page load speeds and ease of understanding.</p>
<p>Check back here over the next month or so, to see what I get up too. As I will be posting all about my experiences with the frameworks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/09/01/php-frameworks-codeigniter-zend-symfony/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Keeping Your Apache Server Name The Same</title>
		<link>http://www.davidheward.com/2010/08/18/keeping-your-apache-server-name-the-same/</link>
		<comments>http://www.davidheward.com/2010/08/18/keeping-your-apache-server-name-the-same/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 16:51:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Server Side Development]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[apache vhosts]]></category>

		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=395</guid>
		<description><![CDATA[Just blogging this for future reference:-
Using several aliases on the same domain and keeping the same apache server name for all can be achieved by entering this into the apache config for the vhost.
UseCanonicalName On
If you wish to let Apache select your server name automatically the default in most configurations of apache is set to:-
UseCanonicalName [...]]]></description>
			<content:encoded><![CDATA[<p>Just blogging this for future reference:-</p>
<p>Using several aliases on the same domain and keeping the same apache server name for all can be achieved by entering this into the apache config for the vhost.</p>
<p>UseCanonicalName On</p>
<p>If you wish to let Apache select your server name automatically the default in most configurations of apache is set to:-</p>
<p>UseCanonicalName Off</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/08/18/keeping-your-apache-server-name-the-same/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Link MAMP &amp; mysql to mac os x terminal</title>
		<link>http://www.davidheward.com/2010/08/13/link-mamp-mysql-to-mac-os-x-terminal/</link>
		<comments>http://www.davidheward.com/2010/08/13/link-mamp-mysql-to-mac-os-x-terminal/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 10:31:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mac Os X]]></category>

		<category><![CDATA[Server Side Development]]></category>

		<category><![CDATA[Terminal]]></category>

		<category><![CDATA[mac os x mysql]]></category>

		<category><![CDATA[terminal and mysql]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=393</guid>
		<description><![CDATA[Last night I trawled the internet trying to find the answer to how to hook up my mac os x terminal to my mamp mysql using the > mysql command in the terminal.
For mac os x 10.5.6 Leapoard users this command worked just fine.
sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/bin/mysql
I also noticed attempting to use the mysqldump [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I trawled the internet trying to find the answer to how to hook up my mac os x terminal to my mamp mysql using the > mysql command in the terminal.</p>
<p>For mac os x 10.5.6 Leapoard users this command worked just fine.</p>
<p><code>sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/bin/mysql</code></p>
<p>I also noticed attempting to use the mysqldump command resulted in this error: &#8220;-bash: mysqldump: command not found&#8221;</p>
<p>To solve it cd into &#8220;/Applications/MAMP/Library/bin/&#8221; and run the same command and you&#8217;ll have much better luck <img src='http://www.davidheward.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/08/13/link-mamp-mysql-to-mac-os-x-terminal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Recursively delete .svn folders from a folder or directory</title>
		<link>http://www.davidheward.com/2010/08/11/recursively-delete-svn-folders-from-a-folder-or-directory/</link>
		<comments>http://www.davidheward.com/2010/08/11/recursively-delete-svn-folders-from-a-folder-or-directory/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 12:18:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[subversion]]></category>

		<category><![CDATA[.svn]]></category>

		<category><![CDATA[delete subversion]]></category>

		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=389</guid>
		<description><![CDATA[Use this simple command to find and delete .svn subversion folders from within a folder or directory using mac linux terminal command line.
find ./ -name ".svn" &#124; xargs rm -Rf
Example with folder path
find ./images/ -name ".svn" &#124; xargs rm -Rf
]]></description>
			<content:encoded><![CDATA[<p>Use this simple command to find and delete .svn subversion folders from within a folder or directory using mac linux terminal command line.</p>
<p><code>find ./ -name ".svn" | xargs rm -Rf</code></p>
<p>Example with folder path<br />
<code>find ./images/ -name ".svn" | xargs rm -Rf</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/08/11/recursively-delete-svn-folders-from-a-folder-or-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My Personal Transition Of Design And Programming Practices</title>
		<link>http://www.davidheward.com/2010/07/13/transition-of-design-and-programming-practices/</link>
		<comments>http://www.davidheward.com/2010/07/13/transition-of-design-and-programming-practices/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 22:56:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Php development]]></category>

		<category><![CDATA[programming transition]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=375</guid>
		<description><![CDATA[This week I&#8217;ve seen a real transition in my own personal way of thinking towards design and development. Particularly with how it relates to the development of our online games. After just over 2 and a half years of programming full time, I&#8217;ve noticed some really key and distinctive transitional periods in my developing lifespan.
When [...]]]></description>
			<content:encoded><![CDATA[<p>This week I&#8217;ve seen a real transition in my own personal way of thinking towards design and development. Particularly with how it relates to the development of our online games. After just over 2 and a half years of programming full time, I&#8217;ve noticed some really key and distinctive transitional periods in my developing lifespan.</p>
<p>When I first started out it was a case of get it done no matter how or what and learn along the way. This particularly involved little planning, especially planning programming techniques around the design. I would hit hurdles and obstacles all the time, but being the pragmatic problem solver that I am, I&#8217;d find ways to jump them or ways around them (thank god for google). At this stage I took little to no notice of design as my css and general knowledge of design technique was so poor that I was stuck well within the table age.</p>
<p>Things quickly moved on and before I knew it all the problem solving had left a lasting imprint of php, html, css and ajax in my head. Enough to be competent (at least so I thought) but not enough by far to be the master. Not knowing that at this stage is possibly the biggest downfall I had. A bit like a guy fresh out of college with his honors degree and first job, I set off to change the world and make amazing looking websites. Uh oh, I might hear you say! Uh oh, indeed. Not long after I began to see my designs not really working out as I wanted or not functioning as well as needed and browser compatibility wasn&#8217;t great (I partly blame this on the comfortability and lovability of my new mac, making me not want to look at the far more popular windows based browsers. Damn you internet explorer!). </p>
<p>However I buckled up, hung in for the ride and got things working, with less than sexy solutions at times. After this I began to realise the importance of planning and careful structuring of code, so much so that I even started to do it myself <img src='http://www.davidheward.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> This became especially important with the development of my companies online games. Massive code bases with hundreds of thousands of lines of code and files. Making use of functions, class&#8217;s and sub version made a massive difference to how we developed and maintained our code base.</p>
<p>Yet recently something more radical has changed than just the methods that we used to serve up a page to a player or user. I don&#8217;t now think about going in all guns blazing to make the &#8216;best&#8217; looking website in the quickest time possible, as most of the time this isn&#8217;t possible. Im more interested in simple but effective design with clever and efficient coding beneath it. Especially so with our online text based mmorpgs, users are more thickle than you think and care less about the fact that it looks good, and more about that it works good. Simple designs tend to be more backwards compatible and also more compatible with the gathering pace market of mobile and netbook gaming. So generally I now tend to think a bit like google I guess, make it work good, make it look okay, but most importantly make sure the whole experience &#8216;works&#8217; for the user.</p>
<p>So its interesting to see how I&#8217;ve gone from struggling to stay afloat, to swimming too hard and finally to staying calmly and nicely afloat.</p>
<p>I wonder if anyone else will have had some interesting personal development stories&#8230;. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/07/13/transition-of-design-and-programming-practices/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mysql Dump Ignore Tables And rsync To Remote Server</title>
		<link>http://www.davidheward.com/2010/07/13/mysql-dump-ignore-tables-and-rsync-to-remote-server/</link>
		<comments>http://www.davidheward.com/2010/07/13/mysql-dump-ignore-tables-and-rsync-to-remote-server/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 22:29:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mac Os X]]></category>

		<category><![CDATA[Mysql Development]]></category>

		<category><![CDATA[Server Side Development]]></category>

		<category><![CDATA[Terminal]]></category>

		<category><![CDATA[ignore tables]]></category>

		<category><![CDATA[mysqldump]]></category>

		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=370</guid>
		<description><![CDATA[Not having had huge experience working with mysql dumping and rsync. This afternoon I was faced with the task of taking a backup of one our busy, very database intensive games using mysqldump command, but I also needed to exclude some rather over sized tables from the dump. After which I wanted to pipe over [...]]]></description>
			<content:encoded><![CDATA[<p>Not having had huge experience working with mysql dumping and rsync. This afternoon I was faced with the task of taking a backup of one our busy, very database intensive games using mysqldump command, but I also needed to exclude some rather over sized tables from the dump. After which I wanted to pipe over the mysqldumps to our remote secure testing server using rsync which id also never used before.</p>
<p>So the first things first I let our users know the site is going down in 5 mins I then sabotage our db_connect functions so that users a directed to a page with no connection attempts or db calls on it.</p>
<p>I then write the command to dump data and tables ignoring a few tables which id already flagged as potentially large and time consuming to dump. </p>
<p>My command looked a little like this:-</p>
<p><code>mysqldump -u username -p --ignore-table=database.table ignore-table=database.table -B database -K &gt; /path/to/outputfile.sql</code></p>
<p>With quite a few more ignores hehe but hopefully you&#8217;ll get the gist.</p>
<p>I then just wanted to dump the structure of the troublesome tables.</p>
<p>So I did something like the below.</p>
<p><code>mysqldump -u username -p database table1 table2 -d &gt; /path/to/outputfile.sql</code></p>
<p>Notice the -d, this is very important as it signifies no data just structure.</p>
<p>Now I have my two files I want to sync them accross the our test area located on another server, this time using a rsync</p>
<p>I used ssh with rysnc and my final command looked like this.</p>
<p><code>rsync -a -e ssh backups/ username@server:/home/google/backups</code></p>
<p>Which simply took my backups directory on the server i was connected to already and synced it with the credentials entered here. Seemlessly and with all permissions etc carried over.</p>
<p>Now thus I had achieved what I needed to and all that was left was to load the files into the database for the test area. By simply:</p>
<p><code>mysqldump -u username -p database &lt; /path/to/inputfile.sql</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/07/13/mysql-dump-ignore-tables-and-rsync-to-remote-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mysql Dumping / Uploading a file or files via terminal and SSH</title>
		<link>http://www.davidheward.com/2010/05/11/uploading-a-file-or-files-via-terminal-and-ssh/</link>
		<comments>http://www.davidheward.com/2010/05/11/uploading-a-file-or-files-via-terminal-and-ssh/#comments</comments>
		<pubDate>Tue, 11 May 2010 15:03:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mac Os X]]></category>

		<category><![CDATA[Mysql Development]]></category>

		<category><![CDATA[Server Side Development]]></category>

		<category><![CDATA[Terminal]]></category>

		<category><![CDATA[terminal and ssh]]></category>

		<category><![CDATA[Terminal commands]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=362</guid>
		<description><![CDATA[Just something I found myself looking up today so that I can do everything from the comfort of my little terminal window.
I wanted to take a backup from a table in one database and up it to another db.
Firstly I dumped the tables on my remote server to my sites webroot.
mysqldump -u root -p database_name [...]]]></description>
			<content:encoded><![CDATA[<p>Just something I found myself looking up today so that I can do everything from the comfort of my little terminal window.</p>
<p>I wanted to take a backup from a table in one database and up it to another db.</p>
<p>Firstly I dumped the tables on my remote server to my sites webroot.</p>
<p><code>mysqldump -u root -p database_name table_1 table_2 table_3 &gt; /path/to/outputfile/outputfile.sql</code></p>
<p>This will prompt you for your password, enter it and it should, providing everything else is correct dump to &#8216;outputfile.sql&#8217;.</p>
<p>Now you have your backup residing at your web servers webroot or wherever it is you may have chosen to store it.</p>
<p>This file can now be retrieved either by a FTP client or if your like me then using terminal by either using curl or scp to local.<br />
<strong><br />
Curl example:</strong><br />
curl -O http://wedpathtoserver.com/outputfile.sql</p>
<p>Scp (preferred via ssh):<br />
scp username@server:path_on_server/file path_to_download_to</p>
<p>Once on local you will probably want to move this to your other server via uploading which we will again use Scp for this.</p>
<p>scp path_to_file/file username@server:path_to_upload_to</p>
<p>Once youve got the file on the server which the database you want to import data to resides.<br />
Connect to the server in this case via ssh.<br />
Then restore your file to the database.<br />
<code> mysql -u root -p databasename &lt; /path/toupload/directory/outputfile.sql </code></p>
<p>This is the general format to remember</p>
<p>mysql -u [username] -p [password] [database_to_restore] < [backupfile]</p>
<p>If its a zipped backup you want to restore simply use the following command</p>
<p>gunzip < outputfile.sql | mysql -u root -p DatabaseName</p>
<p>Also remember you dont have to have the password prompt you each time you can include it in the original command by changing `-p` to `-p password`.</p>
<p>Very basic but will suit most peoples needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/05/11/uploading-a-file-or-files-via-terminal-and-ssh/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to enable some web developer tools for safari mac</title>
		<link>http://www.davidheward.com/2010/04/21/how-to-enable-some-web-developer-tools-for-safari-mac/</link>
		<comments>http://www.davidheward.com/2010/04/21/how-to-enable-some-web-developer-tools-for-safari-mac/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 16:52:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript Development]]></category>

		<category><![CDATA[Mac Os X]]></category>

		<category><![CDATA[safari deubg]]></category>

		<category><![CDATA[web dev with safari]]></category>

		<category><![CDATA[webkit browser]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=360</guid>
		<description><![CDATA[If your like me and sometimes need to debug js in different browsers for web development. Sometimes its helpful to use debugging tools available with different browsers. Mozilla has the really useful firebug tool, which I use all the time and which is easily installed via mozillas browser plug in environment.
Safari on the other hand [...]]]></description>
			<content:encoded><![CDATA[<p>If your like me and sometimes need to debug js in different browsers for web development. Sometimes its helpful to use debugging tools available with different browsers. Mozilla has the really useful firebug tool, which I use all the time and which is easily installed via mozillas browser plug in environment.</p>
<p>Safari on the other hand is a little trickier, I stumbled accross this today which certainly helped me.</p>
<p>Open up a terminal window on your mac and run this command</p>
<p><strong><em>defaults write com.apple.Safari IncludeDebugMenu 1</em></strong></p>
<p>Quit Safari and reopen, you should now see a &#8216;Develop&#8217; tab along the top of your mac toolbar (where preferences is).</p>
<p>You can use this to do all sorts of useful profiling of your scripts on safari, which I have found most useful.<br />
Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/04/21/how-to-enable-some-web-developer-tools-for-safari-mac/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Game Design With Flash (Cs4)</title>
		<link>http://www.davidheward.com/2010/04/15/game-design-with-flash-cs4/</link>
		<comments>http://www.davidheward.com/2010/04/15/game-design-with-flash-cs4/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 10:46:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Adobe Flash]]></category>

		<category><![CDATA[beginning development with flash]]></category>

		<category><![CDATA[learning actionscript]]></category>

		<category><![CDATA[learning flash]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=354</guid>
		<description><![CDATA[I have started learning the basics of game design using adobes cool flash cs4 suite. Actionscript seems to basically be php objects with a little syntax variation, so the programming side seems easy enough for me since I program with php objects often. Wondered if anyone could point me in the direction of any good [...]]]></description>
			<content:encoded><![CDATA[<p>I have started learning the basics of game design using adobes cool flash cs4 suite. Actionscript seems to basically be php objects with a little syntax variation, so the programming side seems easy enough for me since I program with php objects often. Wondered if anyone could point me in the direction of any good forums / tutorials that flash developers get together en mass to help each other out with development problems?</p>
<p>Also maybe if anyone had any hints or tips then you could also put them as a comment for me to check out under here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/04/15/game-design-with-flash-cs4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to add a new vhost with mamp on mac osx</title>
		<link>http://www.davidheward.com/2010/04/12/how-to-add-a-new-vhost-with-mamp-on-mac-osx/</link>
		<comments>http://www.davidheward.com/2010/04/12/how-to-add-a-new-vhost-with-mamp-on-mac-osx/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 18:21:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mac Os X]]></category>

		<category><![CDATA[Server Side Development]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[add a vhost on mac osx]]></category>

		<category><![CDATA[apache vhosts]]></category>

		<category><![CDATA[local website on a mac]]></category>

		<category><![CDATA[osx virtual host]]></category>

		<guid isPermaLink="false">http://www.davidheward.com/?p=352</guid>
		<description><![CDATA[Adding a new vhost is something I have to do on a regular basis when working on new projects locally.
Its a fairly straight forward task as well.
Download and install:- MAMP
Once you have done this navigate either with a finder window or via terminal to /Applications/MAMP/htdocs/
Once here create a folder again either with finder or terminal [...]]]></description>
			<content:encoded><![CDATA[<p>Adding a new vhost is something I have to do on a regular basis when working on new projects locally.<br />
Its a fairly straight forward task as well.</p>
<p>Download and install:- <a href="http://www.mamp.info">MAMP</a></p>
<p>Once you have done this navigate either with a finder window or via terminal to /Applications/MAMP/htdocs/</p>
<p>Once here create a folder again either with finder or terminal e.g mkdir myfirstsite</p>
<p>cd myfirstsite - to enter that folder and create another folder: mkdir http</p>
<p>Lets also add a test landing page so add a file called index.html into your http directory either in finder window or just by the following command in terminal. </p>
<p>Cd /Applications/MAMP/htdocs/myfirstsite/http/<br />
vim index.html<br />
hit &#8216;i&#8217; to insert<br />
type &#8220;Hello this is my first site&#8221;<br />
hit escape-key + type &#8216;:wq&#8217;</p>
<p>Now we want to do 2 things, firstly add the virtual host to the httpd.conf file:</p>
<p>Navigate to: cd /Applications/MAMP/conf/apache/httpd.conf</p>
<p>Once here either open the text file in a text editor or simply enter it with: vim httpd.conf in terminal if your familiar with this method.</p>
<p>Scroll the very bottom and add the following:</p>
<p><VirtualHost *><br />
DocumentRoot /Applications/MAMP/htdocs/myfirstsite/http<br />
ServerName myfirstsite<br />
</VirtualHost></p>
<p>Then secondly you need to add the site to the your local OS X machines host file with the following command via terminal window only.</p>
<p>printf &#8220;127.0.0.1\tmyfirstsite\n&#8221; | sudo tee -a /etc/hosts</p>
<p>After that restart MAMP by &#8217;stop servers&#8217; and then start servers option.</p>
<p>Then open up your browser pop into the address bar:- http://myfirstsite:8888/ and with any luck you&#8217;ll be on your way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidheward.com/2010/04/12/how-to-add-a-new-vhost-with-mamp-on-mac-osx/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
