<?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>Gabriel de Kadt &#187; howto</title>
	<atom:link href="http://www.lazydada.com/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lazydada.com</link>
	<description>Personal notes on Mac based web development and design.</description>
	<lastBuildDate>Tue, 03 Aug 2010 18:01:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MAMP stacked (Mac OS X 10.5)</title>
		<link>http://www.lazydada.com/2009-06-05/mamp-stacked/</link>
		<comments>http://www.lazydada.com/2009-06-05/mamp-stacked/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 22:17:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=350</guid>
		<description><![CDATA[UPDATE: I&#8217;ve upgraded to Snow Leopard (Mac OS X 10.6) and the following instructions are no longer entirely valid as Marc Liyanage&#8217;s PHP package hasn&#8217;t been upgraded to work in the Snow. Want to get MAMP on Mac OS X 10.6? If you&#8217;re on 10.5 you may read on&#8230; Want to roll a MAMP stack [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE: I&#8217;ve upgraded to Snow Leopard (Mac OS X 10.6) and the following instructions are no longer entirely valid as Marc Liyanage&#8217;s PHP package hasn&#8217;t been upgraded to work in the Snow.</p>
<p>Want to get <a href="/2009-11-16/mamp-stacked-mac-os-x-10-6/">MAMP on Mac OS X 10.6</a>?</p>
<p>If you&#8217;re on 10.5 you may read on&#8230;</p>
<p>Want to roll a <acronym>MAMP</acronym> stack of your own to enable proper local web development? Try these steps to getting you own development environment:</p>
<p>1. Swap the Apple package of PHP for Marc Liyanage&#8217;s package of <a href="http://www.entropy.ch/software/macosx/php/">PHP for Mac OS X</a>. Read his notes &#8211; only takes a minute. His version has useful &#8220;extras&#8221; like the mcrypt extension that Apple doesn&#8217;t include: you&#8217;ll want that for phpMyAdmin. (If you&#8217;ve already started Apple&#8217;s version &#8211; you&#8217;ll know how to stop it by re-commenting the <code>LoadModule php5_module</code> line in your http.conf file )</p>
<p>2. Get yourself <a href="http://patrickgibson.com/utilities/virtualhost/">virtualhost.sh</a> from Patrick Gibson. This little shell script will make the process of setting up proper virtual domains on your development server a cinch. I use &#8220;.dev&#8221; or &#8220;.live&#8221; as the TLD to prevent any conflict with the live sites. (Although now I&#8217;ve started using Git I may just drop the separation between live and development branch domains on my development box. I still put all my sites in my ~/Sites folder though.</p>
<p>3. Get a <a href="http://dev.mysql.com/downloads/mysql/5.0.html">Mac OS X MySQL package</a> &#8211; (not the latest build but v5.0.x) from the good folks at MySQL. If you&#8217;ve already got another version installed &#8211; here&#8217;s <a href="http://steveno.wordpress.com/2009/03/26/uninstall-mysql-on-mac-os-x/">how to uninstal MySQL from a Mac</a> (NB &#8211; this will delete your databases too!).</p>
<p>4. Give your MySQL root user a password; type the following into the Terminal:<br />
<code>/usr/local/mysql/bin/mysqladmin -u root password sniggle</code><br />
&#8230;if you like <code>sniggle</code> as a passowrd that is.</p>
<p>5. Now you can administer your MySQL server with <a href="http://www.phpmyadmin.net/home_page/index.php">phpMyAdmin</a> and the root user you&#8217;ve just defined.  (There are other tools too &#8211; eg MySQL Administrator &#8211; but I&#8217;m used to phpMyAdmin from the hosting packeges I use). You may want to virtualhost phpMyAdmin to, for example, &#8220;http://mysql/&#8221;. Love virtualhost.sh.</p>
<p>6. Then for each [dynamic] site you&#8217;ll probably want to add a user and then associate a DB with that user. Do this in phpMyAdmin in one step using the Privileges pane fill in &#8220;Add a new User&#8221;/then select &#8220;Create database with same name and grant all privileges&#8221;. Job&#8217;s a good &#8216;un.</p>
<p>Done and not long-winded at-all at-all!</p>
<p>[Originally posted as a reply in <a href="http://groups.google.com/group/coda-users/browse_thread/thread/80323da5039c2581">Panic's Coda forum</a>... Lots of love for MAMP Pro - a serious contender - and for just 40€... ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-06-05/mamp-stacked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->