<?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>Andrew Havens &#187; MAMP</title>
	<atom:link href="http://www.andrewhavens.com/tag/mamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andrewhavens.com</link>
	<description>Designer + Developer</description>
	<lastBuildDate>Tue, 29 Sep 2009 00:58:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to set up Mac OS X 10.5 for Web Development</title>
		<link>http://www.andrewhavens.com/2009/02/how-to-set-up-mac-os-x-105-for-web-development/</link>
		<comments>http://www.andrewhavens.com/2009/02/how-to-set-up-mac-os-x-105-for-web-development/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 09:23:31 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac OS X 10.5]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Virtual Hosting]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://blog.andrewhavens.com/?p=47</guid>
		<description><![CDATA[Q: How do I set up PHP, Apache, MySQL, and Virtual Hosts on my Mac OS X 10.5?
A: That&#8217;s a good question! I&#8217;ve installed Apache, PHP, PEAR, Virtual Hosts, but haven&#8217;t had any luck with getting MySQL up and running. If you figure it out&#8230;please let me know!! Right now I&#8217;m using MAMP. Not the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q:</strong> How do I set up PHP, Apache, MySQL, and Virtual Hosts on my Mac OS X 10.5?</p>
<p><strong>A:</strong> That&#8217;s a good question! I&#8217;ve installed Apache, PHP, PEAR, Virtual Hosts, but haven&#8217;t had <em>any</em> luck with getting MySQL up and running. If you figure it out&#8230;please let me know!! Right now I&#8217;m using <a href="http://www.mamp.info">MAMP</a>. Not the ideal working environment, but it&#8217;s getting the job done for now.</p>
<p>This tutorial may be helpful in your journey of <a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/">how to install MySQL on a Mac</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.andrewhavens.com/2009/02/how-to-set-up-mac-os-x-105-for-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a virtual host on a Mac running MAMP</title>
		<link>http://www.andrewhavens.com/2008/10/setting-up-a-virtual-host-on-a-mac-running-mamp/</link>
		<comments>http://www.andrewhavens.com/2008/10/setting-up-a-virtual-host-on-a-mac-running-mamp/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 08:32:20 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Virtual Hosting]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://blog.amperactive.com/?p=3</guid>
		<description><![CDATA[Update: I just found out about some great software that makes setting up virtual hosts with MAMP a breeze. You&#8217;d better check out this tutorial before reading mine, then go download VirtualHostX for only $9 dollars.
Or, if you want to do it for free, read on&#8230;
The super-easy, &#8220;How to set up name-based virtual hosts on [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update: </strong>I just found out about some great software that makes setting up virtual hosts with MAMP a breeze. You&#8217;d better check out <a href="http://seansperte.com/entry/Setting_Up_a_Killer_Local_Web_Development_Environment_on_a_Mac_with_MAMP_an/">this tutorial</a> before reading mine, then go download <a href="http://clickontyler.com/virtualhostx/">VirtualHostX</a> for only $9 dollars.</p>
<p>Or, if you want to do it for free, read on&#8230;</p>
<p><strong>The super-easy, &#8220;How to set up name-based virtual hosts on a Mac, running MAMP&#8221;, Tutorial</strong></p>
<p>When I&#8217;m developing a new website for a client, I like being able to open my browser and test out the site I&#8217;m working on. So lately I&#8217;ve been uploading my &#8220;work in progress&#8221; to a new sub-domain that only I know, such as http://stage.myClient.com or http://alpha.myClient.com. The problem with this approach is that even though I&#8217;m the only one who &#8220;knows&#8221; what the address is, people can still find, and view my unfinished business since it&#8217;s publically accessable. What I really want to do is test my site, in my browser, just as if it was on the web, without anyone being able to see it, but me.</p>
<p>There&#8217;s a really easy way to do this. It&#8217;s called <a title="Virtual Hosting" href="http://en.wikipedia.org/wiki/Virtual_host">Virtual Hosting</a>. Name-based virtual hosting will allow us to associate http://stage.myClient.com with a directory on our computer, rather than going out to the internet. The great thing about this is that we can name our virtual host whatever we want. We could call it http://stage.myClient.com or http://local.myClients.clientOne. We could even name it http://foobar if we felt so inclined. http://localhost is an example of a virtual host. Go ahead and type that into your address bar. I&#8217;m not sure what you&#8217;ll get back, but it&#8217;s probably already set up and redirecting to a folder on your computer somewhere.</p>
<p>If you&#8217;ve already downloaded and installed <a title="MAMP" href="http://www.mamp.info/en/mamp.html">MAMP</a>, good for you! If you haven&#8217;t, you really should. If you&#8217;re developing websites in <a title="PHP" href="http://php.net">PHP</a>, and you want to test your site without having to upload it to your server, you need to install PHP on your computer. The same goes with using a <a title="database" href="http://www.mysql.com/">database</a>. Setting these up individually can be a pain! MAMP is nice because it installs everything you need, you can turn it on and off, and it makes it really easy to start developing websites locally without having to set anything up. This tutorial is about setting up a virtual host, on a Mac, running MAMP, so I&#8217;m going to assume you&#8217;ve already got MAMP set up.</p>
<p>So one of the things you might have noticed about MAMP is that it sets its &#8220;localhost&#8221; directory to /Applications/MAMP/htdocs&#8230;which is fine, except I like to keep my sites in my /Users/andrew/Sites directory. I mean&#8230;that&#8217;s what it&#8217;s there for.</p>
<p style="text-align: center;"><a href="http://www.andrewhavens.com/wp-content/uploads/2008/10/picture-21.png"><img class="size-full wp-image-14 aligncenter" title="screenshot of a Mac users' home directory" src="http://www.andrewhavens.com/wp-content/uploads/2008/10/picture-21.png" alt="" width="334" height="121" /></a></p>
<p>So if you want to set yours up that way&#8230;</p>
<ol>
<li>Start MAMP.</li>
<li>Click &#8220;Preferences&#8230;&#8221;</li>
<li>Click the &#8220;Apache&#8221; tab</li>
<li>Browse to the directory of your choice</li>
</ol>
<p>Now going to http://localhost should resolve to the directory that you chose. Now, let&#8217;s set up our very own virtual host!</p>
<ol>
<li>Open Terminal by going to /Applications/Utilities/Terminal</li>
<li>Type: sudo pico /etc/hosts</li>
<li>Type your Administrator password<a href="http://www.andrewhavens.com/wp-content/uploads/2008/10/picture-31.png"><img class="aligncenter size-full wp-image-13" title="Editing /etc/hosts in Pico" src="http://www.andrewhavens.com/wp-content/uploads/2008/10/picture-31.png" alt="" width="381" height="243" /></a></li>
<li>Edit your hosts file to look like mine, with exception to your chosen virtual host name. I&#8217;ve named my virtual host stage.myClient.com</li>
<li>Press Control+O, then Return to save the changes</li>
<li>Press Control+X to exit Pico</li>
</ol>
<p>One last step:</p>
<ol>
<li>Open /Applications/MAMP/conf/apache/httpd.conf (TextEdit is fine)</li>
<li>Scroll to the very bottom, this is where we declare our virtual host.<a href="http://www.andrewhavens.com/wp-content/uploads/2008/10/picture-4.png"><img class="aligncenter size-full wp-image-9" title="httpd.conf screenshot" src="http://www.andrewhavens.com/wp-content/uploads/2008/10/picture-4.png" alt="" width="384" height="260" /></a></li>
<li>Edit your httpd.conf file to look like mine. The server name should be the name of your virtual host that you declared in the previous file, and your document root should be the directory you want your virtual host to pointing to.</li>
</ol>
<p>We&#8217;re done! Make sure you have MAMP running when you try it out for yourself.</p>
<p>If you found this tutorial helpful, or if you want to tell me how <span style="text-decoration: line-through;">much it sucks</span> to make it even better, please leave a comment!</p>
<p>Thanks, for reading!</p>
<p>&#8211;Andrew</p>
]]></content:encoded>
			<wfw:commentRss>http://www.andrewhavens.com/2008/10/setting-up-a-virtual-host-on-a-mac-running-mamp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

