<?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>fourwhitefeet &#187; php</title>
	<atom:link href="http://fourwhitefeet.com/category/computer/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://fourwhitefeet.com</link>
	<description>a dog is one of the remaining reasons why some people can be persuaded to go for a walk.  ~o.a. battista</description>
	<lastBuildDate>Tue, 01 Nov 2011 01:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Set up virtual hosts for MAMP</title>
		<link>http://fourwhitefeet.com/2008/11/set-up-virtual-hosts-for-mamp/</link>
		<comments>http://fourwhitefeet.com/2008/11/set-up-virtual-hosts-for-mamp/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 13:52:14 +0000</pubDate>
		<dc:creator>cathy</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://fourwhitefeet.com/?p=356</guid>
		<description><![CDATA[If you use the free version of MAMP this is the simple way to set up virtual hosts -
in /private/etc/hosts add a line for each virtual host like:
127.0.0.1  vhost.local
Then, as described in Supercharge Your MAMP Environment, create a vhost conf file with an entry for each virtual host like:
&#60;VirtualHost *:80&#62;
    ServerName [...]]]></description>
			<content:encoded><![CDATA[<p>If you use the free version of <a href="http://www.mamp.info/en/mamp.html">MAMP</a> this is the simple way to set up virtual hosts -</p>
<p>in /private/etc/hosts add a line for each virtual host like:</p>
<p>127.0.0.1  vhost.local</p>
<p>Then, as described in <i><a href="http://www.sitepen.com/blog/2008/05/16/supercharge-mamp/">Supercharge Your MAMP Environment</a></i>, create a vhost conf file with an entry for each virtual host like:</p>
<pre class="apache">&lt;VirtualHost *:<span style="color: rgb(255, 0, 0);">80</span>&gt;
    <span style="color: rgb(0, 0, 127);">ServerName</span> vhost.local
    <span style="color: rgb(0, 0, 127);">DocumentRoot</span> /Applications/MAMP/htdocs/vhost.local/
    &lt;Directory /Applications/MAMP/htdocs/vhost.local/&gt;
        <span style="color: rgb(0, 0, 127);">Options</span> Indexes <span style="color: rgb(0, 0, 255);">FollowSymLinks</span> MultiViews
        <span style="color: rgb(0, 0, 127);">AllowOverride</span> <span style="color: rgb(0, 0, 127);">All</span>
        <span style="color: rgb(0, 0, 127);">Order</span> <span style="color: rgb(0, 0, 127);">allow</span>,<span style="color: rgb(0, 0, 127);">deny</span>
        <span style="color: rgb(0, 0, 127);">allow</span> <span style="color: rgb(0, 0, 127);">from</span> <span style="color: rgb(0, 0, 127);">all</span>
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
&nbsp;</pre>
<p>The above works fine for a few sites that change infrequently, but quickly becomes a hassle to manage if you have many sites. The method posted on <a href="http://postpostmodern.com/instructional/a-smarter-mamp/">postmodern.com</a> may be an option. It did not work for me. </p>
<p>I&#8217;m now using <a href="http://www.mamp.info/en/mamp-pro/index.html">MAMP PRO</a> which I&#8217;ll write more about in another post.</p>
]]></content:encoded>
			<wfw:commentRss>http://fourwhitefeet.com/2008/11/set-up-virtual-hosts-for-mamp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple MAMP setup</title>
		<link>http://fourwhitefeet.com/2008/11/simple-mamp-setup/</link>
		<comments>http://fourwhitefeet.com/2008/11/simple-mamp-setup/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 11:45:15 +0000</pubDate>
		<dc:creator>cathy</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://fourwhitefeet.com/?p=353</guid>
		<description><![CDATA[Since I switched back to Mac two years ago, I&#8217;ve been using Marc Liyanage&#8217;s PHP build for Mac to run my local dev environment. I never got all rewrites to work correctly on my local setup, which meant I could only do limited local testing for one site. A few weeks ago, after reading a [...]]]></description>
			<content:encoded><![CDATA[<p>Since I switched back to Mac two years ago, I&#8217;ve been using <a href="http://www.entropy.ch/home/">Marc Liyanage&#8217;s</a> PHP build for Mac to run my local dev environment. I never got all rewrites to work correctly on my local setup, which meant I could only do limited local testing for one site. A few weeks ago, after reading a series of php framework articles by Bart McLeod in <a href="http://phparch.com/">php|architect</a>, April-June 2008, I decided to give <a href="http://framework.zend.com/">Zend Framework</a> a try and set up a new site using it. However with my old dev environment, I could not even get the simple <A href="http://framework.zend.com/docs/quickstart">Quickstart</a> app on the ZF site to work. So I went in search of another solution and decided to try <a href="http://www.mamp.info/en/mamp.html">MAMP</a> and <a href="http://www.mamp.info/en/mamp-pro/index.html">MAMP PRO</a>. MAMP PRO hung on the MySQL start up, but I got a simple test environment set up with the free version of MAMP. It works with ZF, just need to change the rewrite rule from /index.php to index.php, and I was quickly able to get rewrites to work for the other site I mentioned. (Note: my quick fix of removing the leading slash would cause problems with urls in a subdirectory structure. Setting up virtual hosts should solve that.)  </p>
<p>Here are the steps I used:</p>
<ol>
<li>Download MAMP</li>
<li>Drag MAMP to Applications folder.</li>
<li>Launch MAMP app</li>
<li>Click &#8220;Preferences&#8221; button</li>
<li>Go to &#8220;Ports&#8221; tab and click &#8220;Set to default Apache MySQL ports&#8221;</li>
<li>In &#8220;Apache&#8221; tab change &#8220;Document Root&#8221; to /Users/[username]/Sites</li>
</ol>
<p>Access your sites at http://localhost/[foldername]</p>
<p>There is a lot more you can do to customize MAMP; see the <a href="http://forum.webedition.de/phpBB/viewforum.php?f=13">living-e forum</a> and <i><a href=http://www.sitepen.com/blog/2008/05/16/supercharge-mamp/">Supercharge Your MAMP Environment</a></i>  for some examples. In the meantime, the above should get you up and running within five minutes of completing the MAMP download.</p>
]]></content:encoded>
			<wfw:commentRss>http://fourwhitefeet.com/2008/11/simple-mamp-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

