<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Blog of Auzigog</title>
	
	<link>http://auzigog.com</link>
	<description>ideas and guides from a nerdy college student</description>
	<pubDate>Fri, 07 Aug 2009 08:43:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/eyeRblog" /><feedburner:info uri="eyerblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>45.344246</geo:lat><geo:long>-122.584649</geo:long><creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-sa/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId>eyeRblog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/eyeRblog" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.yourminis.com/subscribe.aspx?u=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.yourminis.com/images/addtoyourminisbadge.gif">Subscribe with Yourminis.com</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://hub.netomat.net/account/account.autoSubscribe.jspa?urls=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.netomat.net/blogger/images/icon_netomat_feedbutton.gif">Subscribe with netomat Hub</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2FeyeRblog" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item>
		<title>Setup Symfony on Mac OS X (using MAMP)</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/aQx17WxeN1c/</link>
		<comments>http://auzigog.com/2009/05/10/setup-symfony-on-mac-os-x-using-mamp/#comments</comments>
		<pubDate>Sun, 10 May 2009 22:04:01 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Guides]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[mac osx]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[server]]></category>

		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=393</guid>
		<description><![CDATA[

Symfony doesn&#8217;t play well with the default OS X server setup, so you will need an alternative setup. This tutorial assumes you are using MAMP but XAMPP is also an option.
This tutorial will get a server up and running that works with Symfony and allow you to access your projects from <a href="http://ProjectName.localhost/">http://ProjectName.localhost/</a>

Configure Server

Download the latest [...]
]]></description>
			<content:encoded><![CDATA[<p><img src="http://auzigog.com/wp-content/uploads/2009/04/symfony.gif" alt="symfony" title="symfony" width="448" height="122" class="aligncenter size-full wp-image-371" /><br />
Symfony doesn&#8217;t play well with the default OS X server setup, so you will need an alternative setup. This tutorial assumes you are using <a href="http://www.mamp.info/en/index.html">MAMP</a> but <a href="http://www.apachefriends.org/en/xampp-macosx.html">XAMPP</a> is also an option.</p>
<p>This tutorial will get a server up and running that works with Symfony and allow you to access your projects from <a href="http://ProjectName.localhost/">http://ProjectName.localhost/</a><br />
<span id="more-393"></span></p>
<h2>Configure Server</h2>
<ul>
<li><a href="http://www.mamp.info/en/downloads/index.html">Download the latest version of MAMP</a>. This can take a while.
</li>
<li>Install MAMP
</li>
<li>Allow MAMP&#8217;s copy of PHP, PEAR, and MySQL to run from the terminal:
</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php-old
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pear <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pear-old
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pear <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pear
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql-old
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql</pre></div></div>

<ul>
<li>Symfony can use a lot of memory in the development environment, so you need to edit <code>/Applications/MAMP/conf/php5/php.ini</code> to allow it scripts to use more memory. I changed mine from 8M to 200M.
</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="ini ini" style="font-family:monospace;"><span style="color: #000099;">memory_limit</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 200M </span><span style="color: #666666; font-style: italic;">;</span></pre></div></div>

<h2>Set up your project</h2>
<p>Either grab a fresh project from the <a href="http://www.symfony-project.org/installation">Symfony website</a> or start from your own existing project.</p>
<p>To make sure your project is secure (even if your server isn&#8217;t publicly accessible), put the Symfony project files <em>outside</em> your webroot (<code>/Applications/MAMP/htdocs</code>). I put mine in <code>~/workspace/ProjectName</code>.</p>
<h2>Set up a subdomain for this project</h2>
<p>To make your project accessible from <a href="http://YourProject.localhost/">http://YourProject.localhost/</a> you must edit your Apache config file.</p>
<p>For the first project you ever add, put this code at the end of <code>/Applications/MAMP/conf/apache/httpd.conf</code></p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># Be sure to only have this line once in your configuration</span>
<span style="color: #00007f;">NameVirtualHost</span> 127.0.0.1:<span style="color: #ff0000;">80</span>
<span style="color: #00007f;">Listen</span> 127.0.0.1:<span style="color: #ff0000;">80</span></pre></div></div>

<p>For each project you create, add this section of code with paths modified to reflect the location of your code.</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">VirtualHost</span> 127.0.0.1:<span style="color: #ff0000;">80</span>&gt;
  <span style="color: #00007f;">ServerName</span> YOUR_PROJECT_NAME.localhost
  <span style="color: #00007f;">DocumentRoot</span> <span style="color: #7f007f;">&quot;/Users/YOUR_USER_NAME/workspace/YOUR_PROJECT_NAME/web&quot;</span>
  <span style="color: #00007f;">DirectoryIndex</span> index.php
  &lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;/Users/YOUR_USER_NAME/workspace/YOUR_PROJECT_NAME/web&quot;</span>&gt;
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">All</span>
    <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">All</span>
  &lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;
&nbsp;
  <span style="color: #00007f;">Alias</span> /sf /Users/YOUR_USER_NAME/workspace/YOUR_PROJECT_NAME/lib/vendor/symfony/data/web/sf
  &lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;/Users/YOUR_USER_NAME/workspace/YOUR_PROJECT_NAME/lib/vendor/symfony/data/web/sf&quot;</span>&gt;
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">All</span>
    <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">All</span>
  &lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;
&lt;/<span style="color: #000000; font-weight:bold;">VirtualHost</span>&gt;</pre></div></div>

<p>For each project, you must also edit the <code>/etc/hosts</code> file and add this line to the end:</p>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">127.0.0.1       YOUR_PROJECT_NAME.localhost</pre></div></div>

<p>Now use the MAMP control panel to restart Apache.</p>
<h2>Database</h2>
<dl>
<dd><em>Note:</em> This section doesn&#8217;t apply to those with a fresh project generated by Symfony
</dd>
</dl>
<p>If you&#8217;re working on a pre-existing project, you need to load in any existing database tables.</p>
<p>Open the file <code>~/workspace/YOUR_PROJECT_NAME/config/databases.yml</code> and look for a section like this:</p>

<div class="wp_syntax"><div class="code"><pre class="yml" style="font-family:monospace;">all:
  propel:
    class: sfPropelDatabase
    param:
      classname: PropelPDO
      dsn: 'mysql:host=localhost;dbname=DATABASE_NAME'
      username: USERNAME
      password: PASSWORD
      encoding: utf8
      persistent: true
      pooling: true</pre></div></div>

<p>Use phpMyAdmin (located at <a href="http://localhost/MAMP/">http://localhost/MAMP/</a>) to create a user with that password. You also need to create a database with that name and assign the user to it.</p>
<p>Now you need to create all the tables for this project and load in any fixtures. Use the terminal to browse to the root of your project directly and run the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">php symfony propel:build-sql
php symfony propel:insert-sql <span style="color: #660033;">--no-confirmation</span>
php symfony propel:build-all-load <span style="color: #660033;">--no-confirmation</span>
php symfony cache:<span style="color: #c20cb9; font-weight: bold;">clear</span></pre></div></div>

<h2>NetBeans and Xdebug</h2>
<p>I use NetBeans PHP distribution with Xdebug for step-by-step debug support. There is a <a href="http://www.netbeans.org/kb/docs/php/configure-php-environment-mac-os.html"><em>fantastic</em> tutorial</a> to set up both using MAMP.</p>
<p>The only part of that tutorial that didn&#8217;t work was the way <code>php.ini</code> was configured.</p>
<p>First, comment out these lines at the end of <code>/Applications/MAMP/conf/php5/php.ini</code> (by placing a semicolon at the beginning of the line):</p>

<div class="wp_syntax"><div class="code"><pre class="ini ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Zend<span style="">&#93;</span></span>
<span style="color: #666666; font-style: italic;">;zend_optimizer.optimization_level=15</span>
<span style="color: #666666; font-style: italic;">;zend_extension_manager.optimizer=/Applications/MAMP/bin/php5/zend/lib/Optimizer-3.3.3</span>
<span style="color: #666666; font-style: italic;">;zend_optimizer.version=3.3.3</span>
<span style="color: #666666; font-style: italic;">;zend_extension=/Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so</span></pre></div></div>

<p>Now add the following lines to the end of the file instead of the ones mentioned in the tutorial:</p>

<div class="wp_syntax"><div class="code"><pre class="ini ini" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">; Xdebug config for Mac OS X and NetBeans IDE</span>
<span style="color: #000099;">zend_extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-<span style="">20050922</span>/xdebug.so</span>
xdebug.default_enable <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> On </span>
xdebug.remote_enable<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span>
xdebug.remote_handler<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">dbgp</span>
xdebug.remote_mode<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">req</span>
xdebug.remote_host<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">127.0.0.1</span>
xdebug.remote_port<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">9000</span>
xdebug.idekey<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">netbeans-xdebug</span>
xdebug.remote_log <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> /tmp/xdebug.log</span></pre></div></div>

<p>Also I just skipped the MySQL Administrator program because I prefer to use phpMyAdmin (which comes with MAMP).</p>
<p>Finally, I can&#8217;t use normal NetBeans breakpoints to halt the code. I have to place <code>xdebug_break();</code> on the line that I want it to break on. This is slightly annoying, but having the power of a full debugger is certainly worth this small inconvenience.</p>
<p>Extras:</p>
<ul>
<li><a href="http://stringfoo.com/2008/08/25/tutorial-launching-mamp-silently-on-startup/">Learn how to start MAMP silently</a> (without the control panel window)
</li>
<li><a href="http://stringfoo.com/2007/11/07/mamp-setup-leopard/">Very detailed guide to setting MAMP up on OS X</a>
</li>
<li><a href="http://www.sitepen.com/blog/2008/05/16/supercharge-mamp/">Supercharge your MAMP Environment</a>
</li>
</ul>
<h2>Conclusion</h2>
<p>You should now be able to access your project from <a href="http://YourProject.localhost/">http://YourProject.localhost/</a></p>
<p>If you&#8217;re new to Symfony, here are some resources that will help you out:</p>
<ul>
<li><a href="http://www.symfony-project.org/book/1_2/">The Definitive Guide to Symfony</a>
</li>
<li><a href="http://www.symfony-project.org/jobeet/1_2/Propel/en/">Jobeet Tutorial</a> - A step-by-step tutorial for a real-world project
</li>
<li><a href="http://www.symfony-project.org/api/1_2/">Symfony API</a>
</li>
</ul>
<p>If you have any suggestions for improving this tutorial or if you are having any trouble with it, please leave a comment below. Thanks!</p>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2009%2F05%2F10%2Fsetup-symfony-on-mac-os-x-using-mamp%2F&amp;t=Setup%20Symfony%20on%20Mac%20OS%20X%20%28using%20MAMP%29" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Setup%20Symfony%20on%20Mac%20OS%20X%20%28using%20MAMP%29&amp;body=http%3A%2F%2Fauzigog.com%2F2009%2F05%2F10%2Fsetup-symfony-on-mac-os-x-using-mamp%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2009%2F05%2F10%2Fsetup-symfony-on-mac-os-x-using-mamp%2F&amp;title=Setup%20Symfony%20on%20Mac%20OS%20X%20%28using%20MAMP%29" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F05%2F10%2Fsetup-symfony-on-mac-os-x-using-mamp%2F&amp;title=Setup%20Symfony%20on%20Mac%20OS%20X%20%28using%20MAMP%29" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2009%2F05%2F10%2Fsetup-symfony-on-mac-os-x-using-mamp%2F&amp;title=Setup%20Symfony%20on%20Mac%20OS%20X%20%28using%20MAMP%29" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F05%2F10%2Fsetup-symfony-on-mac-os-x-using-mamp%2F&amp;title=Setup%20Symfony%20on%20Mac%20OS%20X%20%28using%20MAMP%29" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2009%2F05%2F10%2Fsetup-symfony-on-mac-os-x-using-mamp%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2009%2F05%2F10%2Fsetup-symfony-on-mac-os-x-using-mamp%2F&amp;title=Setup%20Symfony%20on%20Mac%20OS%20X%20%28using%20MAMP%29" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/eyeRblog?a=aQx17WxeN1c:NrOyMm2i3uA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/eyeRblog?i=aQx17WxeN1c:NrOyMm2i3uA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/eyeRblog?a=aQx17WxeN1c:NrOyMm2i3uA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eyeRblog?i=aQx17WxeN1c:NrOyMm2i3uA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/eyeRblog?a=aQx17WxeN1c:NrOyMm2i3uA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/eyeRblog?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/aQx17WxeN1c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2009/05/10/setup-symfony-on-mac-os-x-using-mamp/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2009/05/10/setup-symfony-on-mac-os-x-using-mamp/</feedburner:origLink></item>
		<item>
		<title>Symfony + Mac OS X + pdo_mysql.so</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/4AYWUDPj7HU/</link>
		<comments>http://auzigog.com/2009/04/27/symfony-mac-os-x-pdo_mysqlso/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 08:50:23 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Guides]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=370</guid>
		<description><![CDATA[
I recently started working my way into the world of the PHP framework <a href="http://www.symfony-project.org/">Symfony</a>. While following the superb <a href="http://www.symfony-project.org/jobeet/1_2/Propel/en/">Jobeet tutorial</a>, I encountered an error involving PDO_MYSQL and Mac OS X. I spent an hour trying to trace down the problem and another hour finding a solution. And as always, when something takes me too long to solve, I write a guide for it!
]]></description>
			<content:encoded><![CDATA[<div class="boxcaption">UPDATE!</div>
<div class="box">May 10th, 2009 - This tutorial is not complete. Following these instructions will only get command line version of PDO_MYSQL working. I have written a new guide that avoids the built-in versions of PHP and Apache. <a href="http://auzigog.com/2009/05/10/setup-symfony-on-mac-os-x-using-mamp/"><strong>Read the updated tutorial &raquo;</strong></a></div>
<p>I recently started working my way into the world of the PHP framework <a href="http://www.symfony-project.org/">Symfony</a>. While following the superb <a href="http://www.symfony-project.org/jobeet/1_2/Propel/en/">Jobeet tutorial</a>, I encountered an error involving PDO_MYSQL and Mac OS X. I spent an hour trying to trace down the problem and another hour finding a solution. And as always, when something takes me too long to solve, I write a guide for it!<br />
<span id="more-370"></span></p>
<h3>The setup</h3>
<p>I tried to run this command while following the Jobeet tutorial:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">php symfony propel:insert-sql</pre></div></div>

<h3>The error</h3>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;&gt;</span> schema    converting <span style="color: #ff0000;">&quot;/Users/eyeRmonkey/w...obeet/config/schema.yml&quot;</span> to XML
<span style="color: #000000; font-weight: bold;">&gt;&gt;</span> schema    putting <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>eyeRmonkey<span style="color: #000000; font-weight: bold;">/</span>works...eet<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>generated-schema.xml
<span style="color: #000000; font-weight: bold;">&gt;&gt;</span> propel    Running <span style="color: #ff0000;">&quot;insert-sql&quot;</span> phing task
Execution of target <span style="color: #ff0000;">&quot;insert-sql&quot;</span> failed <span style="color: #000000; font-weight: bold;">for</span> the following reason: <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>eyeRmonkey<span style="color: #000000; font-weight: bold;">/</span>workspace<span style="color: #000000; font-weight: bold;">/</span>jobeet<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>symfony<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>sfPropelPlugin<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>propel-generator<span style="color: #000000; font-weight: bold;">/</span>build-propel.xml:<span style="color: #000000;">275</span>:<span style="color: #000000;">1</span>:  <span style="color: #7a0874; font-weight: bold;">&#91;</span>wrapped: could not <span style="color: #c20cb9; font-weight: bold;">find</span> driver<span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #7a0874; font-weight: bold;">&#91;</span>phing<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>eyeRmonkey<span style="color: #000000; font-weight: bold;">/</span>workspace<span style="color: #000000; font-weight: bold;">/</span>jobeet<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>symfony<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>sfPropelPlugin<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>propel-generator<span style="color: #000000; font-weight: bold;">/</span>build-propel.xml:<span style="color: #000000;">275</span>:<span style="color: #000000;">1</span>:  <span style="color: #7a0874; font-weight: bold;">&#91;</span>wrapped: could not <span style="color: #c20cb9; font-weight: bold;">find</span> driver<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
  Some problems occurred when executing the task:                                                   
    build-propel.xml:<span style="color: #000000;">275</span>:<span style="color: #000000;">1</span>:  <span style="color: #7a0874; font-weight: bold;">&#91;</span>wrapped: could not <span style="color: #c20cb9; font-weight: bold;">find</span> driver<span style="color: #7a0874; font-weight: bold;">&#93;</span>                                       
    If the exception message is not <span style="color: #c20cb9; font-weight: bold;">clear</span> enough, <span style="color: #c20cb9; font-weight: bold;">read</span> the output of the task <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">more</span> information</pre></div></div>

<h3>The root problem</h3>
<p>The distribution of PHP that comes with OS X doesn&#8217;t have the <code>pdo_mysql.so</code> library loaded. You can determine this by looking at output from <code>php -m</code>.</p>
<h3>The solution</h3>
<p>After much searching, I finally discovered the proper way to compile the <code>pdo_mysql.so</code> library. This all assumes that you have PHP and MySQL <a href="http://auzigog.com/2009/01/03/setting-up-apache-mysql-and-php-on-os-x-leopard/">installed the same way I do</a>. <a href="http://discussions.apple.com/thread.jspa?threadID=1539743&#038;tstart=75">(source)</a></p>
<p><strong>Compiling PDO_MYSQL:</strong></p>
<ol>
<li><a href="http://pecl.php.net/package/PDO_MYSQL">Download PDO_MYSQL</a>
</li>
<li>Run the following commands (replacing x.x.x with the version of PDO_MYSQL that you downloaded)
</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>Downloads<span style="color: #000000; font-weight: bold;">/</span>PDO_MYSQL-x.x.x<span style="color: #000000; font-weight: bold;">/</span>PDO_MYSQL-x.x.x
phpize
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #ff0000;">'--with-pdo-mysql=shared,/usr/local/mysql'</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><strong>Updating your PHP configuration:</strong><br />
Now add the following two lines to the file <code>/etc/php.ini</code> under the &#8220;Dynamic Extensions&#8221; section:</p>

<div class="wp_syntax"><div class="code"><pre class="ini ini" style="font-family:monospace;"><span style="color: #000099;">extension_dir</span> <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;/usr/lib/php/extensions/no-debug-non-zts-20060613&quot;</span>
<span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">pdo_mysql.so</span></pre></div></div>

<p>Save the file and you&#8217;re done.</p>
<h3>The conclusion</h3>
<p>Many people had this problem. It shouldn&#8217;t take hours of detailed searching to find a solution. Back to Symfony!</p>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2009%2F04%2F27%2Fsymfony-mac-os-x-pdo_mysqlso%2F&amp;t=Symfony%20%2B%20Mac%20OS%20X%20%2B%20pdo_mysql.so" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Symfony%20%2B%20Mac%20OS%20X%20%2B%20pdo_mysql.so&amp;body=http%3A%2F%2Fauzigog.com%2F2009%2F04%2F27%2Fsymfony-mac-os-x-pdo_mysqlso%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2009%2F04%2F27%2Fsymfony-mac-os-x-pdo_mysqlso%2F&amp;title=Symfony%20%2B%20Mac%20OS%20X%20%2B%20pdo_mysql.so" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F04%2F27%2Fsymfony-mac-os-x-pdo_mysqlso%2F&amp;title=Symfony%20%2B%20Mac%20OS%20X%20%2B%20pdo_mysql.so" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2009%2F04%2F27%2Fsymfony-mac-os-x-pdo_mysqlso%2F&amp;title=Symfony%20%2B%20Mac%20OS%20X%20%2B%20pdo_mysql.so" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F04%2F27%2Fsymfony-mac-os-x-pdo_mysqlso%2F&amp;title=Symfony%20%2B%20Mac%20OS%20X%20%2B%20pdo_mysql.so" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2009%2F04%2F27%2Fsymfony-mac-os-x-pdo_mysqlso%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2009%2F04%2F27%2Fsymfony-mac-os-x-pdo_mysqlso%2F&amp;title=Symfony%20%2B%20Mac%20OS%20X%20%2B%20pdo_mysql.so" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/eyeRblog?a=4AYWUDPj7HU:qyzTh0i06tg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/eyeRblog?i=4AYWUDPj7HU:qyzTh0i06tg:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/eyeRblog?a=4AYWUDPj7HU:qyzTh0i06tg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eyeRblog?i=4AYWUDPj7HU:qyzTh0i06tg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/eyeRblog?a=4AYWUDPj7HU:qyzTh0i06tg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/eyeRblog?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/4AYWUDPj7HU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2009/04/27/symfony-mac-os-x-pdo_mysqlso/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2009/04/27/symfony-mac-os-x-pdo_mysqlso/</feedburner:origLink></item>
		<item>
		<title>Easy Website on Your University of Oregon Web Space</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/aFZYqasRGPk/</link>
		<comments>http://auzigog.com/2009/02/01/easy-website-on-your-university-of-oregon-web-space/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 23:25:54 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[College]]></category>

		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Guides]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[guide]]></category>

		<category><![CDATA[script]]></category>

		<category><![CDATA[server]]></category>

		<category><![CDATA[University of Oregon]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=288</guid>
		<description><![CDATA[

NOTE: shell.uoregon.edu is now sftp.uoregon.edu
Ever wanted to have your own webpage at <a href="http://uoregon.edu/~YourDuckID?">http://uoregon.edu/~YourDuckID?</a> Ever wanted to setup a clean-looking, easy-to-maintain website for a student group your are associated with? Well now the whole process is a snap! Every University of Oregon student is given space to set up their own website.
It&#8217;s a fairly complex process [...]
]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-293" title="Wordpress on Your University of Oregon Web Space" src="http://auzigog.com/wp-content/uploads/2009/01/wordpress_uoregon_shell1.png" alt="Wordpress on Your University of Oregon Web Space" width="398" height="220" /></p>
<p><span style="color:red;"><strong>NOTE: shell.uoregon.edu is now sftp.uoregon.edu</strong></span></p>
<p>Ever wanted to have your own webpage at <a href="http://uoregon.edu/~jblancha">http://uoregon.edu/~YourDuckID</a>? Ever wanted to setup a clean-looking, easy-to-maintain website for a student group your are associated with? Well now the whole process is a snap! Every University of Oregon student is given space to set up their own website.</p>
<p>It&#8217;s a fairly complex process to set up all the necessary tools (PHP and MySQL) <a href="http://wiki.auzigog.com/Wordpress_on_shell.uoregon.edu">manually</a>, so I wrote a program to do it for you (mostly) automatically! All you need to do is login to your uoregon.edu account and follow a couple simple instructions.</p>
<p><span id="more-288"></span></p>
<h3>Why WordPress?</h3>
<p><a href="http://wordpress.org">WordPress</a> is tool that lets you create, design and maintain a website without knowing anything about computers or the internet. Anyone can do it! It is meant to be a tool for bloggers, but it functions perfectly for those who just want a normal website.</p>
<p>WordPress can be as simple or as powerful as you need it to be. In my opinion, it is the perfect tool for student groups because of how often management changes. With WordPress, anyone can pick it up and make any changes without any knowledge on how to create websites. The real power of WordPress is that you can create/edit pages from a web interface using an <abbr title="What You See Is What You Get">WYSIWYG</abbr> (visual) editor. You can see a demo of this web interface <a href="http://www.opensourcecms.com/blog/wordpress/admin.html">here</a> (username: admin // password: demo).</p>
<p>Other features:</p>
<ul>
<li><a href="http://wordpress.org/extend/themes/browse/popular/">Customizable themes</a> so you can easily style your website and give it it&#8217;s own distinct look.
</li>
<li><a href="http://wordpress.org/extend/plugins/browse/popular/">Amazing plugins</a> to let you add any kind of functionality to your website (e.g. adding a <a href="http://wordpress.org/extend/plugins/contact-form-7/">contact form</a> to your site).
</li>
<li>Multi-user enivronment so you can add other bloggers/editors to help you edit the website. This is especially useful for student groups with a lot of contributors.
</li>
</ul>
<div class="boxcaption">Warning: No support is guaranteed</div>
<div class="box">Before we go any further, I wanted to let everyone know that although I am writing this guide to be accessible to anyone, I also can&#8217;t promise that there will be support for it if something breaks down the road. There&#8217;s a 98% chance that nothing will ever go wrong. What you&#8217;re doing here normally requires a bit of technical knowledge, but I&#8217;ve attempted to make it easy for anyone to do. If something does go wrong, I can&#8217;t say for sure how much <a href="http://micro.uoregon.edu/">The Help Desk</a> at the UO will want to help you.</p>
<p>If you do have some problems, post a comment at the end of this post and I&#8217;ll do my best to help you out.</p></div>
<h3>Getting Started</h3>
<p>Before you can complete these instructions you will need a program that let&#8217;s you access the files on your sftp.uoregon.edu account. Accessing this account is called &#8220;SSHing&#8221; into it. This is fairly simple for Mac OS X users, but is a bit more complicated if you are using Windows.</p>
<h4>Windows Users</h4>
<p><em>Note:</em> If you own a Mac, skip to the next section called <a href="#Mac_Users">&#8220;Mac Users&#8221;</a>.</p>
<p>First, you need to download and install a program called <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> (or just <a href="http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe">download v0.60</a> directly).</p>
<p>Once it is installed, run it and follow these steps.</p>
<p><img class="alignright size-full wp-image-323" title="PuTTY Host Options" src="http://auzigog.com/wp-content/uploads/2009/01/putty-host-options.png" alt="PuTTY Host Options" width="294" height="98" /><br />
Enter <em>sftp.uoregon.edu</em> under the host field. It should look the image to the right.</p>
<p>Press <em>OK</em>. You should get a message saying there is a &#8220;Security Alert&#8221;. Just press <em>Yes</em>.</p>
<p>Now you&#8217;re almost ready to go. Just enter your Duck ID (the same one you use to login to your email and blackboard) and your password. If you&#8217;re doing this for a student account, the process is exactly the same, but with the username/password that you would use to login your groups email address. It should look like this:<br />
<img class="alignnone size-full wp-image-315" title="PuTTY login screen" src="http://auzigog.com/wp-content/uploads/2009/01/putty3.png" alt="PuTTY login screen" width="499" height="276" /></p>
<p>You&#8217;re ready to move on! Go on down to the <a href="#Running_the_Script">&#8220;Running the Script&#8221;</a> section below.</p>
<h4>Mac Users</h4>
<p>Mac OS X users have it much easier because the program you need is already installed.</p>
<p><img class="alignright size-full wp-image-318" title="Spotlight Terminal Search" src="http://auzigog.com/wp-content/uploads/2009/01/spotlight-terminal-search.png" alt="Spotlight Terminal Search" width="292" height="112" />You just need to run the Terminal application. The quickest way to get it it is by using the searching for it using the search box (Spotlight) in the top right corner of the screen.</p>
<p>Once that program is up and running you just need to use your Duck ID (the same one you use to login to your email and blackboard) and your password. If you&#8217;re doing this for a student account, the process is exactly the same, but with the username/password that you would use to login your groups email address. Here&#8217;s what it looks like when I use my Duck ID (jblancha) and password:<br />
<img class="alignnone size-full wp-image-321" title="osxterminal" src="http://auzigog.com/wp-content/uploads/2009/01/osxterminal.png" alt="osxterminal" width="585" height="237" /></p>
<h3>Running the Script</h3>
<p>Now that you have SSH&#8217;ed into you account, you&#8217;re ready to run the script!</p>
<p>Type each of the following commands in and press enter after each line. The first command will take a couple moments to run, so don&#8217;t type the next one until it is done.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>auzigog.com<span style="color: #000000; font-weight: bold;">/</span>perm<span style="color: #000000; font-weight: bold;">/</span>wordpress_shell.sh
<span style="color: #c20cb9; font-weight: bold;">chmod</span> 0755 wordpress_shell.sh
.<span style="color: #000000; font-weight: bold;">/</span>wordpress_shell.sh</pre></div></div>

<p>The last command will run the script I wrote to do <a href="http://wiki.auzigog.com/Wordpress_on_shell.uoregon.edu#The_really_long_way">all the work</a> for you.</p>
<p>The first thing you need to do is type <em>n</em> and press enter to indicate that you are not an advanced user. Now you should see a bunch of lines being output to the screen.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">*** Do you want to install MySQL using the 'mysql_install_db' command? You should do this ONE TIME ONLY
Are you an advanced user who needs the MySQL passwords later? [y/n]: n
// Creating .htaccess in your public_html directory (/home6/spanst/public_html) so all files ending in .php will execute
// Creating php.cgi in your home directory (/home6/spanst) so all files ending in .php will execute
// Generating a port number (between 5000 and 6000) to run MySQL from
// For reference, the port number that MySQL is running on is: 5430
// Making a MySQL configuration file for your account
// Installing the MySQL database. This may take a few moments...
// Setting a root password for wordpress
// Creating a username and password for wordpress
// Configuring a cron job to ensure the MySQL Daemon doesn't go down
// Downloading and placing wordpress files. This may take a moment....
// Creating public_html/wp-content/uploads for uploaded images/files
// Configuring wordpress
&nbsp;
// Here is some stuff you can ignore if you don't know what it is:
    PORT: 5430
    MySQL 'root' account password: ########
    MySQL 'wordpressuser' account password: ########
    MySQL database for wordpress: wordpressdb
    MySQL host for connections: sftp.uoregon.edu:5430
&nbsp;
SUCCESSS! Visit http://uoregon.edu/~spanst to finish the installation of your blog!
 Note: Please remove index.html from your ~/public_html folder so that WordPress can actually work</pre></div></div>

<p><em>Note:</em> Please write down the four lines that start with <em>MySQL</em> in case you or someone else ever needs those passwords to fix things down the road.</p>
<p>As the script indicates, <strong>you&#8217;re done!</strong> You can now visit <a href="http://uoregon.edu/~YourDuckID/">http://uoregon.edu/~YourDuckID/</a> to give your blog a name. When it asks you for an email address, be sure to use a real one because it that is where your username and password will be sent.</p>
<p>To login to the control panel (where you edit pages and blog posts), go to <a href="http://uoregon.edu/~YourDuckID/wp-admin/">http://uoregon.edu/~YourDuckID/wp-admin/</a>.</p>
<p>There&#8217;s some more information below that you might find helpful, but you&#8217;re basically done! If you&#8217;ve successfully used this script, please leave a comment below so I know that people are finding it useful. Spread the word to other individuals and groups so everyone can create a useful website!</p>
<h3>Extending WordPress</h3>
<p>You&#8217;re done with the important part. If you want to customize WordPress, here are some suggestions.</p>
<ul>
<li>Install a theme to give your site its own look. Check out <a href="http://wiki.auzigog.com/Wordpress_Tools#Themes">my favorite themes</a>. (<a href="http://courtneytuttle.com/2008/07/23/how-to-install-a-new-wordpress-theme/">Instructions</a>)
</li>
<li>In the control panel, go to Settings → Permalinks → Select &#8220;Day and Name&#8221; → Save Changes
</li>
<li>Add a <a href="http://wordpress.org/extend/plugins/contact-form-7/">contact form</a> to your site
</li>
<li>Add other authors/editors to your site by going to the control panel and Users → Add New
</li>
<li><a href="http://codex.wordpress.org/Akismet#Setting_Up_Akismet">Setup Akismet</a> to block spam comments on your blog posts
</li>
</ul>
<p>If you need any other help in working with WordPress, check out <a href="http://codex.wordpress.org/">their support site</a>.</p>
<p>Good luck! Please leave a comment below if you have any comments or questions!</p>
<h3>What the heck did the script do?</h3>
<p>If you&#8217;re not a big nerd, just scroll down to the comments section. If you&#8217;re a more technical user and are curious what happened, here&#8217;s an overview. You can find <a href="http://wiki.auzigog.com/Wordpress_on_shell.uoregon.edu">very detailed instructions</a> for all of this on my wiki.</p>
<ol>
<li>Use a .htaccess file to redirect all .php requests to a CGI script
</li>
<li>Use the CGI script to make sure all .php files are run under PHP5 (instead of being served as text files
</li>
<li>Install a copy of MySQL for your account on a specific port number.
</li>
<li>Create a MySQL database for WordPress
</li>
<li>Set up a cron job to make sure MySQL comes back up if the server ever restarts
</li>
<li>Download and unzip the latest version of WordPress
</li>
<li>Automatically edit your WordPress config file with all the information it has just generated
</li>
</ol>
<h3>Credits</h3>
<p>The only reason I was able to figure out this process in the first place was because of the following people</p>
<ul>
<li><a href="http://micro.uoregon.edu/unix/mysql.html">Micro&#8217;s guide to MySQL on shell</a> - Not the best instructions in the world, but absolutely necessary.
</li>
<li><a href="http://emumarketing.uoregon.edu/tristan/2008/09/30/easy-php-on-shell/">Easy PHP on shell</a> - Tristan at the EMU marketing department made most of this possible with his instructions for getting PHP files to run properly (instead of being served as text files). Tristan actually <a href="http://emumarketing.uoregon.edu/tristan/2009/01/10/getting-wordpress-working-on-shell/">wrote a WordPress installation guide</a> similar to this one last month.
</li>
<li><a href="http://twitter.com/justinmccraw">Justin McCraw</a> - Helped me remember the simplest set of steps to get this done
</li>
<li>Bruce and <a href="http://www.uoregon.edu/~spencera/">Spencer</a> at the UO for helping with specific issues I had along the way
</li>
</ul>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2009%2F02%2F01%2Feasy-website-on-your-university-of-oregon-web-space%2F&amp;t=Easy%20Website%20on%20Your%20University%20of%20Oregon%20Web%20Space" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Easy%20Website%20on%20Your%20University%20of%20Oregon%20Web%20Space&amp;body=http%3A%2F%2Fauzigog.com%2F2009%2F02%2F01%2Feasy-website-on-your-university-of-oregon-web-space%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2009%2F02%2F01%2Feasy-website-on-your-university-of-oregon-web-space%2F&amp;title=Easy%20Website%20on%20Your%20University%20of%20Oregon%20Web%20Space" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F02%2F01%2Feasy-website-on-your-university-of-oregon-web-space%2F&amp;title=Easy%20Website%20on%20Your%20University%20of%20Oregon%20Web%20Space" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2009%2F02%2F01%2Feasy-website-on-your-university-of-oregon-web-space%2F&amp;title=Easy%20Website%20on%20Your%20University%20of%20Oregon%20Web%20Space" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F02%2F01%2Feasy-website-on-your-university-of-oregon-web-space%2F&amp;title=Easy%20Website%20on%20Your%20University%20of%20Oregon%20Web%20Space" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2009%2F02%2F01%2Feasy-website-on-your-university-of-oregon-web-space%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2009%2F02%2F01%2Feasy-website-on-your-university-of-oregon-web-space%2F&amp;title=Easy%20Website%20on%20Your%20University%20of%20Oregon%20Web%20Space" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/eyeRblog?a=KHGaeoK6"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=KHGaeoK6" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=KqeOvimF"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=KqeOvimF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=il4kHfyV"><img src="http://feeds.feedburner.com/~f/eyeRblog?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/aFZYqasRGPk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2009/02/01/easy-website-on-your-university-of-oregon-web-space/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2009/02/01/easy-website-on-your-university-of-oregon-web-space/</feedburner:origLink></item>
		<item>
		<title>Creating a MediaWiki API Instance Outside Installation Directory</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/o17MzpXG5Aw/</link>
		<comments>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 08:24:15 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Guides]]></category>

		<category><![CDATA[Photography]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[api]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[guide]]></category>

		<category><![CDATA[mediawiki]]></category>

		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=222</guid>
		<description><![CDATA[
I&#8217;m in the process of writing mediawiki2wordpress&#8212;a plugin to allow WordPress to access and display content from a MediaWiki installation. I spent a bit of the evening figuring out how to get MediaWiki to let me trick it into thinking I was making a standard request.
The method I explain here gives you access to the [...]
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m in the process of writing <a href="http://github.com/auzigog/mediawiki2wordpress/tree/master">mediawiki2wordpress</a>&mdash;a plugin to allow <a href="http://wordpress.org/">WordPress</a> to access and display content from a <a href="http://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a> installation. I spent a bit of the evening figuring out how to get MediaWiki to let me trick it into thinking I was making a standard request.</p>
<p>The method I explain here gives you access to the <a href="http://www.mediawiki.org/wiki/API">MediaWiki API class</a> as opposed to the standard MediaWiki rendering class. Most of this code came from MediaWiki&#8217;s <span class="code">api.php</span> which you can find in <a href="http://download.wikimedia.org/mediawiki/1.13/mediawiki-1.13.3.tar.gz">MediaWiki 1.13</a>.</p>
<p>Here&#8217;s what the API output will look like for the <a href="http://en.wikipedia.org/w/api.php?action=parse&#038;page=Foobar">Foobar page on Wikipedia</a> (in XML).</p>
<p>I spent quite a bit of time poking around in the MediaWiki /includes directory and trying different hack-ish methods before <a href="http://www.mediawiki.org/wiki/API:Calling_internally#Using_API_internally_by_other_code">this page</a> that had exactly what I needed! It did need updating, but I <a href="http://www.mediawiki.org/w/index.php?title=API:Calling_internally&#038;diff=232400&#038;oldid=214333">was happy to oblige</a>. I even had this whole post written up using a sloppier approach before finding the <span class="code">FauxRequest</span> class that I explain below.<br />
<span id="more-222"></span></p>
<h3>The code</h3>
<p>Let&#8217;s start with the sample code, then go over the details.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$mediawiki_root</span> <span style="color: #339933;">=</span> <span style="">'/Users/eyeRmonkey/www/mediawiki-test'</span>;
<span style="color: #990000;">putenv</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;MW_INSTALL_PATH=$mediawiki_root&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #666666; font-style: italic;">// Initialise common code</span>
<span style="color: #b1b100;">require</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$mediawiki_root</span> <span style="color: #339933;">.</span> <span style="">'/includes/WebStart.php'</span><span style="color: #009900;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> MediaWikiAPIWrapper <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> make_fake_request<span style="color: #009900;">&#40;</span><span style="color: #000088;">$params</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$request</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> FauxRequest<span style="color: #009900;">&#40;</span><span style="color: #000088;">$params</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>;
&nbsp;
		<span style="color: #000088;">$api</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ApiMain<span style="color: #009900;">&#40;</span><span style="color: #000088;">$request</span><span style="color: #009900;">&#41;</span>;
&nbsp;
		<span style="color: #666666; font-style: italic;">// Process data &amp; use an output buffer to capture the resutls</span>
		<span style="color: #000088;">$api</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">execute</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
		<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$api</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getResult</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
		<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span><span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$data</span>;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>Initializing</h3>
<p>The first matter of business is <strong>lines 1 through 4</strong>. These <em>need</em> to be called outside of any function or class. I spent some time trying to figure out why none of MediaWiki&#8217;s global variables were showing up in <span class="code">print_r($GLOBALS)</span> before thinking to <span class="code">require_once()</span> it outside of any functions. Duh. Make sure you get the path to your MediaWiki installation root correct (no trailing slash, obviously).</p>
<p>Most of the work get&#8217;s done on <strong>line 4</strong>. This get&#8217;s all the code ready for a standard API call from the web. This whole approach is meant to be used by an <a href="http://www.mediawiki.org/wiki/Extension_Matrix">extension</a>, so we need to play catchup by initializing the core MediaWiki code.</p>
<h3>Faking the Request</h3>
<p>The good folks at MediaWiki were are kind enough to provide us with a class specifically meant for faking an API request! Joy! It&#8217;s called <span class="code">FauxRequest</span> and it extends the <span class="code">WebRequest</span> object that is used by default for API calls. The <span class="code">FauxRequest</span> class takes an array of keys and values that represent what would&#8217;ve been passed in the URL.</p>
<p>The API manual has more information on  <a href="http://www.mediawiki.org/wiki/API:Data_formats">formats</a> and different <a href="http://www.mediawiki.org/wiki/API:Query">queries</a> you can make to the API.</p>
<p>Here is what your <span class="code">$params</span> array might look like to grab the Main Page:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="">'action'</span> <span style="color: #339933;">=&gt;</span> <span style="">'parse'</span><span style="color: #339933;">,</span>
		<span style="">'page'</span> <span style="color: #339933;">=&gt;</span> <span style="">'Main_Page'</span>
	<span style="color: #009900;">&#41;</span>;</pre></div></div>

<h3>Running the API</h3>
<p><strong>Lines 10 through 15</strong> create an instance of the API and pass in our <span class="code">FauxRequest</span> object to get things rolling!</p>
<p>The <span class="code">$data</span> array will hold all of the information that you would get from a <span class="code">format=php</span> API call. As always, you could use <span class="code">print_r()</span> to display the Array for debugging purposes.</p>
<p><em>That&#8217;s it!</em></p>
<h3>mod_rewrite Issues</h3>
<p>On <a href="http://wiki.auzigog.com">my wiki</a>, the .htaccess mod_rewrite rules that I have seem to be preventing the API from functioning totally correctly. A workaround I discovered is to use the following API call: <a href="http://en.wikipedia.org/w/api.php?action=parse&#038;title=Main_Page&#038;text=%7B%7B%3AMain_Page%7D%7D"><span class="code">/api.php?action=parse&#038;title=Main_Page&#038;text={{:Main_Page}}</span></a>. This works by asking the API to translate the <span class="code">text</span> parameter into rendered text. The <span class="code">{{:Main_Page}}</span> says that the text is actually a <a href="http://en.wikipedia.org/wiki/Wikipedia:Transclusion">transclusion-ed</a> page. It&#8217;s definitely a hack, but it works on servers with weird rewrite rules for <a href="http://www.mediawiki.org/wiki/Manual:Short_URL">pretty URLs</a>.</p>
<h3>Further reading</h3>
<ul>
<li><a href="http://www.mediawiki.org/wiki/API:Query_-_Properties">API: Query Properties</a>
</li>
<li><a href="http://www.mediawiki.org/wiki/API:Expanding_templates_and_rendering">API: Expanding templates and rendering</a> - Relevant to the transclusion workaround.
</li>
</ul>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F11%2Fcreating-a-mediawiki-api-instance-outside-installation-directory%2F&amp;t=Creating%20a%20MediaWiki%20API%20Instance%20Outside%20Installation%20Directory" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Creating%20a%20MediaWiki%20API%20Instance%20Outside%20Installation%20Directory&amp;body=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F11%2Fcreating-a-mediawiki-api-instance-outside-installation-directory%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F11%2Fcreating-a-mediawiki-api-instance-outside-installation-directory%2F&amp;title=Creating%20a%20MediaWiki%20API%20Instance%20Outside%20Installation%20Directory" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F11%2Fcreating-a-mediawiki-api-instance-outside-installation-directory%2F&amp;title=Creating%20a%20MediaWiki%20API%20Instance%20Outside%20Installation%20Directory" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F11%2Fcreating-a-mediawiki-api-instance-outside-installation-directory%2F&amp;title=Creating%20a%20MediaWiki%20API%20Instance%20Outside%20Installation%20Directory" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F11%2Fcreating-a-mediawiki-api-instance-outside-installation-directory%2F&amp;title=Creating%20a%20MediaWiki%20API%20Instance%20Outside%20Installation%20Directory" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F11%2Fcreating-a-mediawiki-api-instance-outside-installation-directory%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F11%2Fcreating-a-mediawiki-api-instance-outside-installation-directory%2F&amp;title=Creating%20a%20MediaWiki%20API%20Instance%20Outside%20Installation%20Directory" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/eyeRblog?a=KXdNgKxi"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=KXdNgKxi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=18URjutw"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=18URjutw" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=aLYgLGjC"><img src="http://feeds.feedburner.com/~f/eyeRblog?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/o17MzpXG5Aw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/</feedburner:origLink></item>
		<item>
		<title>Quicksilver Trigger: “Show Current Track” in iTunes</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/cfNozXdFk-I/</link>
		<comments>http://auzigog.com/2009/01/08/quicksilver-trigger-show-current-track-in-itunes/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 05:08:44 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Guides]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[applescript]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[quicksilver]]></category>

		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=181</guid>
		<description><![CDATA[
A while back I throw together this AppleScript to trigger Quicksilver to not only go to iTunes, but to automatically focus on the current track. (Note: When iTunes is already the front window, the command to do this is ⌘L.
Features

Brings iTunes to the front if it isn&#8217;t already the front window

Highlights the track that is [...]
]]></description>
			<content:encoded><![CDATA[<p>A while back I throw together this AppleScript to trigger <a href="http://docs.blacktree.com/quicksilver/what_is_quicksilver">Quicksilver</a> to not only go to iTunes, but to automatically focus on the current track. (<em>Note:</em> When iTunes is already the front window, the command to do this is ⌘L.</p>
<h3>Features</h3>
<ul>
<li>Brings iTunes to the front if it isn&#8217;t already the front window
</li>
<li>Highlights the track that is currently playing (if one is playing)
</li>
<li>If iTunes is already the front window, this script will hide the window (similar to using ⌘H
</li>
</ul>
<p><span id="more-181"></span></p>
<h3>Steps</h3>
<ol>
<li>Make sure <a href="http://docs.blacktree.com/quicksilver/what_is_quicksilver">Quicksilver</a> is installed.
</li>
<li>Copy the code below into a text file.
</li>
<li>Save that file in a directory (preferably somewhere in your home directory). Mine is saved at <span class="code">/Users/auzigog/Apple Scripts/showplayingtrack.scpt</span>.
</li>
<li>Open quicksilver by pressing your hot key (likely ⌘L) and press the arrow in the top right to open the menu. Select <em>Triggers</em>
</li>
<li>Press the + button to add a new hot key.
<ol>
<li>Into the first box, type <span class="code">~/Apple Scripts/showplayingtrack.scpt</span> (modify this if you saved it somewhere else).
</li>
<li>Press save
</li>
</ol>
</li>
<li>Assign a hot key
<ol>
<li>Select the item you just added and double-click the area that says &#8220;none&#8221;.
</li>
<li>Put your curson in the &#8220;Hot Key&#8221; box and press the keys you want to use to trigger this script. I chose ^⌘L (Ctrl + Apple + L) to mimic the built in iTunes command
</li>
</ol>
</li>
</ol>
<h3>You&#8217;re done!</h3>
<p>That&#8217;s it! Leave a comment if you find this helpful!</p>
<h3>The code</h3>
<p><br class="clear" /></p>

<div class="wp_syntax"><div class="code"><pre class="applescript applescript" style="font-family:monospace;"><span style="color: #b1b100;">on</span> <span style="color: #000066;">run</span>
	<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;iTunes&quot;</span>
		<span style="color: #b1b100;">if</span> frontmost <span style="color: #b1b100;">is</span> <span style="color: #000066;">true</span> <span style="color: #b1b100;">then</span>
			<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;System Events&quot;</span>
				<span style="color: #b1b100;">set</span> app_name <span style="color: #b1b100;">to</span> name <span style="color: #b1b100;">of</span> <span style="color: #000000; font-weight: bold;">the</span> <span style="color: #000000; font-weight: bold;">first</span> process <span style="color: #000000; font-weight: bold;">whose</span> frontmost <span style="color: #b1b100;">is</span> <span style="color: #000066;">true</span>
				<span style="color: #b1b100;">set</span> visible <span style="color: #b1b100;">of</span> process app_name <span style="color: #b1b100;">to</span> <span style="color: #000066;">false</span>
			<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
		<span style="color: #b1b100;">else</span>
			<span style="color: #b1b100;">set</span> frontmost <span style="color: #b1b100;">to</span> <span style="color: #000066;">true</span>
			<span style="color: #b1b100;">if</span> player state <span style="color: #b1b100;">is</span> playing <span style="color: #b1b100;">then</span>
				reveal current track
			<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">if</span>
		<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">if</span>
	<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
<span style="color: #b1b100;">end</span> <span style="color: #000066;">run</span></pre></div></div>




Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F08%2Fquicksilver-trigger-show-current-track-in-itunes%2F&amp;t=Quicksilver%20Trigger%3A%20%22Show%20Current%20Track%22%20in%20iTunes" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Quicksilver%20Trigger%3A%20%22Show%20Current%20Track%22%20in%20iTunes&amp;body=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F08%2Fquicksilver-trigger-show-current-track-in-itunes%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F08%2Fquicksilver-trigger-show-current-track-in-itunes%2F&amp;title=Quicksilver%20Trigger%3A%20%22Show%20Current%20Track%22%20in%20iTunes" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F08%2Fquicksilver-trigger-show-current-track-in-itunes%2F&amp;title=Quicksilver%20Trigger%3A%20%22Show%20Current%20Track%22%20in%20iTunes" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F08%2Fquicksilver-trigger-show-current-track-in-itunes%2F&amp;title=Quicksilver%20Trigger%3A%20%22Show%20Current%20Track%22%20in%20iTunes" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F08%2Fquicksilver-trigger-show-current-track-in-itunes%2F&amp;title=Quicksilver%20Trigger%3A%20%22Show%20Current%20Track%22%20in%20iTunes" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F08%2Fquicksilver-trigger-show-current-track-in-itunes%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F08%2Fquicksilver-trigger-show-current-track-in-itunes%2F&amp;title=Quicksilver%20Trigger%3A%20%22Show%20Current%20Track%22%20in%20iTunes" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/eyeRblog?a=JSymnWOE"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=JSymnWOE" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=RX2LoBGf"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=RX2LoBGf" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=eXPb0j3I"><img src="http://feeds.feedburner.com/~f/eyeRblog?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/cfNozXdFk-I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2009/01/08/quicksilver-trigger-show-current-track-in-itunes/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2009/01/08/quicksilver-trigger-show-current-track-in-itunes/</feedburner:origLink></item>
		<item>
		<title>Setting Up Apache, MySQL and PHP on OS X Leopard</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/Ei6yupr9vIE/</link>
		<comments>http://auzigog.com/2009/01/03/setting-up-apache-mysql-and-php-on-os-x-leopard/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 12:50:18 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Guides]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[leopard]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=135</guid>
		<description><![CDATA[
I recently had to setup MySQL on Mac OS X Leopard (I was using 10.5.6). I can never find a guide that gets Apache, MySQL and PHP working using the binaries that come packaged with Leopard. I also don&#8217;t like using pre-packaged installers like XAMPP and MAMP. This guide is intended for advanced users as [...]
]]></description>
			<content:encoded><![CDATA[<p><img src="http://auzigog.com/wp-content/uploads/2009/01/mamp-300x169.jpg" alt="mamp" title="mamp" width="300" height="169" class="alignright size-medium wp-image-262" />I recently had to setup MySQL on Mac OS X Leopard (I was using 10.5.6). I can never find a guide that gets Apache, MySQL and PHP working using the binaries that come packaged with Leopard. I also don&#8217;t like using pre-packaged installers like <a href="http://www.apachefriends.org/en/xampp-macosx.html">XAMPP</a> and <a href="http://www.mamp.info/en/mamp.html">MAMP</a>. This guide is intended for advanced users as very little explanation is given for each step.</p>
<p>Please add a comment if you have any suggestions for improvement.</p>
<p><span id="more-135"></span></p>
<h3>Apache</h3>
<p>Apache comes with Leopard. Enable it by going to <em>System Preferences > Sharing > check “Web Sharing”</em></p>
<p>Edit <strong>/etc/apache2/httpd.conf</strong> in your favorite text editor.<br />
To change your root web directory from the default (<strong>/Library/WebServer/Documents</strong>), Modify your DocumentRoot on <em>line 163</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">DocumentRoot</span> <span style="color: #7f007f;">&quot;/Users/yourUserNameHere/workspace&quot;</span></pre></div></div>

<p>&#8230; and change your Directory settings near <em>line 190</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;/Users/yourUserNameHere/workspace&quot;</span>&gt;
    ...
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">All</span>
    ...
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;</pre></div></div>

<p>To activate the PHP module, uncomment this near <em>line 114</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> php5_module libexec/apache2/libphp5.so</pre></div></div>

<p>&#8230; and add this near <em>line 383</em> to make Apache handle .php files:</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">AddType</span> application/x-httpd-php .php</pre></div></div>

<h3>MySQL</h3>
<p><a href="http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg">Download</a> and install MySQL. Install the <strong>MySQLStartupItem.pkg</strong> package as well. Go to <em>System Preferences > MySQL</em>, start MySQL and check the box to &#8220;Automatically Start MySQL Server on Startup&#8221;.</p>
<p>Change the MySQL root password:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ mysqladmin <span style="color: #660033;">-u</span> root password NEWPASSWORD</pre></div></div>

<p>Fix permissions for root account</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="mysql mysql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">GRANT</span> all on <span style="color: #66cc66;">*</span>.<span style="color: #66cc66;">*</span> to <span style="color: #ff0000;">'root'</span>@<span style="color: #ff0000;">'%'</span> identified <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'NEWPASSWORD'</span>;</pre></div></div>

<p>Fix the missing mysql.sock file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>mysql
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> _mysql <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>mysql
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>mysql.sock <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>mysql.sock</pre></div></div>

<h3>PHP</h3>
<p>PHP is already installed at <strong>/user/bin/php</strong>.</p>
<p>Create a configuration file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php.ini.default <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php.ini</pre></div></div>

<h3>phpMyAdmin</h3>
<p><a href="http://www.phpmyadmin.net/home_page/downloads.php">Download phpMyAdmin</a> and extract it to <strong>~/workspace/pma</strong>. Rename <strong>config.sample.inc.php</strong> to <strong>config.inc.php</strong> and open it in a text editor.</p>
<p>Near <em>line 17</em>, change your blowfish secret.</p>
<h3>PEAR</h3>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ curl http:<span style="color: #000000; font-weight: bold;">//</span>pear.php.net<span style="color: #000000; font-weight: bold;">/</span>go-pear <span style="color: #000000; font-weight: bold;">&gt;</span> go-pear.php
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> php <span style="color: #660033;">-q</span> go-pear.php
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pear</pre></div></div>

<p>In the installer, choose to edit option and change it to <strong>/usr/bin/pear</strong></p>
<p>Edit <em>line 469</em> in <strong>/etc/php.ini</strong> to add PEAR to PHP&#8217;s include path:</p>

<div class="wp_syntax"><div class="code"><pre class="ini ini" style="font-family:monospace;"><span style="color: #000099;">include_path</span> <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;.:/usr/bin/pear&quot;</span></pre></div></div>

<h3>Sources</h3>
<p>Guides I used to get this all straightened out</p>
<ul>
<li><a href="http://www.klauskomenda.com/archives/2008/10/07/installing-apache-mysql-and-php-on-leopard/">OS X Apache, MySQL, PHP guide</a>
</li>
<li><a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/">OS X PHP/PEAR guide</a>
</li>
</ul>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F03%2Fsetting-up-apache-mysql-and-php-on-os-x-leopard%2F&amp;t=Setting%20Up%20Apache%2C%20MySQL%20and%20PHP%20on%20OS%20X%20Leopard" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Setting%20Up%20Apache%2C%20MySQL%20and%20PHP%20on%20OS%20X%20Leopard&amp;body=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F03%2Fsetting-up-apache-mysql-and-php-on-os-x-leopard%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F03%2Fsetting-up-apache-mysql-and-php-on-os-x-leopard%2F&amp;title=Setting%20Up%20Apache%2C%20MySQL%20and%20PHP%20on%20OS%20X%20Leopard" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F03%2Fsetting-up-apache-mysql-and-php-on-os-x-leopard%2F&amp;title=Setting%20Up%20Apache%2C%20MySQL%20and%20PHP%20on%20OS%20X%20Leopard" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F03%2Fsetting-up-apache-mysql-and-php-on-os-x-leopard%2F&amp;title=Setting%20Up%20Apache%2C%20MySQL%20and%20PHP%20on%20OS%20X%20Leopard" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F03%2Fsetting-up-apache-mysql-and-php-on-os-x-leopard%2F&amp;title=Setting%20Up%20Apache%2C%20MySQL%20and%20PHP%20on%20OS%20X%20Leopard" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F03%2Fsetting-up-apache-mysql-and-php-on-os-x-leopard%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2009%2F01%2F03%2Fsetting-up-apache-mysql-and-php-on-os-x-leopard%2F&amp;title=Setting%20Up%20Apache%2C%20MySQL%20and%20PHP%20on%20OS%20X%20Leopard" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/eyeRblog?a=gzl50s58"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=gzl50s58" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=nt7Vdlbg"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=nt7Vdlbg" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=6zzQdXfZ"><img src="http://feeds.feedburner.com/~f/eyeRblog?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/Ei6yupr9vIE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2009/01/03/setting-up-apache-mysql-and-php-on-os-x-leopard/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2009/01/03/setting-up-apache-mysql-and-php-on-os-x-leopard/</feedburner:origLink></item>
		<item>
		<title>Hackintosh 2.0</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/0zy_jZs_W9g/</link>
		<comments>http://auzigog.com/2008/12/23/hackintosh-20/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 10:22:48 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Guides]]></category>

		<category><![CDATA[computer]]></category>

		<category><![CDATA[guide]]></category>

		<category><![CDATA[Hackintosh]]></category>

		<category><![CDATA[osx86]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=100</guid>
		<description><![CDATA[
After spilling water through the fan vents of my desktop on my current hackintosh, I had to make a new one. All that needed replacing was the motherboard. I wanted to pick a board that had been put through it&#8217;s paces in the OSx86 (hackintosh) community. There was an amazing guide for the first board [...]
]]></description>
			<content:encoded><![CDATA[<p><img src="http://auzigog.com/wp-content/uploads/2008/12/apple-logo.png" alt="apple-logo" title="apple-logo" width="140" height="170" class="alignright size-full wp-image-103" />After spilling water <em>through the fan vents of my desktop</em> on my <a href="http://wiki.auzigog.com/Hackintosh_v1">current hackintosh</a>, I had to make a new one. All that needed replacing was the motherboard. I wanted to pick a board that had been put through it&#8217;s paces in the OSx86 (hackintosh) community. There was <a href="http://forum.insanelymac.com/index.php?showtopic=112708">an amazing guide</a> for the first board I picked, but it wasn&#8217;t being sold on Newegg.com anymore, so I decided on the <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16813128358"><strong>Gigabyte GA-EP4-UD3P</strong></a>.</p>
<p>You can find more information about my setup on <a href="http://wiki.auzigog.com/Hackintosh_v2_%28GA-EP45-UD3P%29">my hackintosh v2 wiki page</a>. If you want to see every step I went through to get this system working, check out that page.</p>
<h3>What To Expect</h3>
<p>This guide will let you install OS X Leopard 10.5.6 from the retail disk (straight from Apple!). You&#8217;ll have a system with full functionality and minimal hacking.</p>
<p>I have not tested this setup extensively since I got it working, so I make no guaranty about it&#8217;s stability. The way I went about it isn&#8217;t the cleanest, but it works. I&#8217;m hoping <a href="http://pcwizcomputer.com/weaksauce12/">weaksauce12</a> will release a <a href="http://pcwizcomputer.com/index.php?option=com_content&#038;task=view&#038;id=149&#038;Itemid=48">Universal OSx86 Installer</a> plug-in for this board in the near future. Keep an eye out on my blog for another post involving that installation.<br />
<span id="more-100"></span></p>
<h3>Hardware</h3>
<p>Here is the hardware I used. You can poke around the <a href="http://insanelymac.com">InsanelyMac forums</a> to find instructions for your own system.<br />
Same hardware I used in <a href="http://auzigog.com/Hackintosh v1 (P5W DH Deluxe)">version 1</a>, except with a new motherboard. The motherboard is the most important factor in a hackintosh as long as you have an Intel processor and an NVIDIA video card.</p>
<ul>
<li><strong>Motherboard</strong> - GIGABYTE GA-EP45-UD3P (<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16813128358">newegg</a>)
</li>
<li><strong>Processor</strong> - Intel Core 2 Duo E6550 Conroe 2.33GHz (<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16819115030">newegg</a>)
</li>
<li><strong>Video Card</strong> - EVGA GeForce 7600GT 256MB 128-bit PCI Express x16 (<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16814130062">newegg</a>)
</li>
<li><strong>RAM</strong> - CORSAIR XMS2 2GB (2 x 1GB) 240-Pin 800 (PC2 6400) (<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820145034">newegg</a>)
</li>
<li><strong>DVD</strong> - SAMSUNG 20X DVD±R SATA (<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16827151153">newegg</a>)
</li>
<li><strong>Power Supply</strong> - COOLER MASTER eXtreme Power Plus 460W (<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817171028">newegg</a>)
</li>
<li><strong>Case</strong> - COOLER MASTER Centurion 5 Black Aluminum ATX Mid Tower (<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16811119068">newegg</a>)
</li>
</ul>
<h3>Required Goodies</h3>
<p>Here is what you&#8217;ll need to complete this guide.</p>
<ul>
<li>Retail Leopard install disk
<dl>
<dd><em>Note:</em> Please purchase the CD and support the Apple developers!
</dd>
</dl>
</li>
<li>Download the handy <a href="http://www.mediafire.com/file/gkrzjztcnnw/UD3P-package.zip"><strong>UD3P-package</strong></a> I compiled for this motherboard. See &#8220;Credits&#8221; section below for all the original content in the package.
</li>
</ul>
<h3>Preparation</h3>
<ul>
<li>Burn grub-dfe.iso to a CD. <a href="http://www.discoapp.com/">Disco</a> is a handy app for doing this.
</li>
<li>Put the UD3P-package onto a USB flash drive.
</li>
</ul>
<h3>Steps</h3>
<ol>
<li>Boot with GRUB-DFE boot cd.
<ol>
<li>At the &#8220;fake darwin&#8221; screen it will say have a prompt that says &#8220;Boot:&#8221;. Switch out the boot cd for retail leopard.
</li>
<li>When prompted for a 2-digit hex number, press &#8220;fe&#8221; to boot to the Leopard CD.
</li>
</ol>
<dl>
<dd><em>Note:</em> I used retail verison 10.5.0, but any retail disk should work.
</dd>
</dl>
</li>
<li>Once you&#8217;re in the installer, format your drive (Utilities > Disk Utility). Make sure the partition type is set to GUID.
<ol>
<li>Install OS X normally.
</li>
<li>When installation is done, restart (you might have to do this forcefully) and place the boot cd back in.
</li>
<li>Boot to the boot CD as before.
</li>
<li>This time when you&#8217;re prompted for a 2-digit hex number, enter &#8220;80&#8243; to boot to your hard drive.
</li>
</ol>
</li>
<li>Follow the on-screen steps to complete the Leopard installation
<ol>
<li>When prompted to register, press CTRL+Q and select &#8220;skip&#8221;
</li>
<li>When you create your account, keep in mind you can only have each username once. If you plan to migrate files from a previous OS X installation, pick a different &#8220;Name&#8221; and &#8220;Short Name&#8221;
</li>
<li>Once this is done, it should load you into OS X.
</li>
</ol>
</li>
<li>Install all updates (including 10.5.6) from Software Update. Restart when directed to.
<ol>
<li>Boot from the GRUB-DFE disk again.
</li>
<li>Use -v at the real Darwin screen so you have verbose output. The update should apply itself during the boot process. When you see &#8220;MACH Reboot&#8221;, go ahead and forcefully restart the computer.
</li>
<li>Boot from the GRUB-DFE disk yet again. <img src='http://auzigog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Keep installing updates and restarting until there are no updates left in Software Update.
</li>
</ol>
</li>
<li>Run Chameleon_DFE_for_Hard_Disk.dmg (located in the UD3P-package) (<em>Note:</em> I don&#8217;t think this step is completely necessary since we install PC_EFI v9 later, but it definitely doesn&#8217;t hurt to do it anyway).
<ol>
<li>Drag all the files in the &#8220;Kexts for Chameleon&#8221; folder into the &#8220;Extra Contents&#8221; shortcut in Chameleon&#8217;s .dmg.
</li>
<li>Run Chameleon_DFE_for_Hard_Disk.pkg to install the bootloader.
</li>
<li>Reboot with the boot CD. Use -x to boot into safe mode
</li>
</ol>
</li>
<li>Use Universal OSx86 Installer
<ol>
<li>Select the following options:
<ul>
<li>Do OSx86_Essentials as motherboard
</li>
<li>Boot timeout to 5
</li>
<li>Native resolution to 1920&#215;1200
</li>
<li>Install PC_EFI v9 Chameleon
</li>
<li>Apply Ethernet EFI String (Time Machine Fix)
</li>
<li>Apply EFI String for video card (I selected NVIDIA DeForce 7600FT 256MB for my card)
</li>
<li>Click &#8220;Add extra kexts&#8221; and select all the files in the &#8220;Kexts for Uinstaller&#8221; folder.
</li>
</ul>
</li>
<li>Eject boot CD.
</li>
<li>Restart
</li>
</ol>
</li>
<li><strong>Everything should be working!!</strong>
</li>
</ol>
<h3>Finishing up</h3>
<ol>
<li>System Preferences > Sound > Output > Switch it to &#8220;internal speakers&#8221;
</li>
<li>Disable sleep and the &#8220;turn off monitor&#8221; features. For me, every time it went to sleep or turned off my monitor, it would come back with a blue screen.
</li>
<li>Migration Assistant
<ol>
<li><ins datetime="2008-12-24T23:54:57+00:00">When selecting parts you want to restore, make sure you <strong>do not select Applications or Library</strong>. Restoring the Library folder could ruin all the work you&#8217;ve done to get your system running.</ins>
</li>
<li>Press Transfer and let it go to work
</li>
<li>You can start installing applications while you wait. I have <a href="http://wiki.auzigog.com/OS_X_Leopard_Software">a helpful list here</a>. Some programs might not expect to be installed on one account (your current one) and then be used on another account (the on you&#8217;re transferring), so use with caution.</s>
</li>
</ol>
</li>
<li><a href="http://forum.insanelymac.com/index.php?showtopic=141769&#038;st=0&#038;p=1010298&#entry1010298">Fix drive icons</a> if you wish
</li>
</ol>
<h3>That&#8217;s all!</h3>
<p>You should have a working system at this point. Please add a comment below if this worked for you or if it broke everything or if you just love me. Please share your own experience if it wasn&#8217;t based on my guide. Thanks to everyone at InsanelyMac for creating an awesome community of hackintosh-ers!</p>
<p>Bonus:<br />
<a href='http://auzigog.com/wp-content/uploads/2008/12/xbenchwithdisk.txt'>XBench Results (with hardisk)</a>: 135.72<br />
<a href='http://auzigog.com/wp-content/uploads/2008/12/xbenchwithoutdisk.txt'>XBench Results (without hardisk)</a>: 201.97	</p>
<h3>Credits</h3>
<ul>
<li>Adapted heavily from <a href="http://basshead.wordpress.com/2008/10/29/hackintosh-the-next-generation-part-2/">basshead&#8217;s blog</a>, <a href="http://forum.insanelymac.com/index.php?showtopic=141769&#038;st=0&#038;p=1005841&#entry1005841">the thread</a> (for the EP45-UD3R board), and <a href="http://forum.insanelymac.com/index.php?showtopic=112708&#038;st=1280&#038;p=1007877&#entry1007877">weaksauce12&#8217;s amazing guide</a> (for the P45-DS3L board)
</li>
<li><a href="http://pcwizcomputer.com/index.php?option=com_content&#038;task=view&#038;id=149&#038;Itemid=48">Universal OSx86 Installer (Uinstaller.app)</a> - Please donate to PCWiz for the incredible amount of work he has put into this application.
</li>
<li><a href="http://www.mediafire.com/?nzrbuzjnyum">Chameleon DFE for Hard disk</a>
</li>
<li><a href="http://hackint0sh.org/forum/showthread.php?t=56516">grub-dfe.iso</a> (<a href="http://www.mediafire.com/?l0wizjmfymn">download</a>)
<dl>
<dd>An alternative is to use the <a href="http://forum.insanelymac.com/index.php?showtopic=113288">boot-132 &#8220;modified kexts&#8221; ISO</a> (<a href="http://www.mediafire.com/?1ne1zbl4znv">download</a>)
</dd>
</dl>
</li>
<li><a href="http://forum.insanelymac.com/index.php?showtopic=124794&#038;pid=911892&#038;mode=threaded&#038;start=#entry911892">.zip for audio kext</a>
</li>
</ul>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2008%2F12%2F23%2Fhackintosh-20%2F&amp;t=Hackintosh%202.0" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Hackintosh%202.0&amp;body=http%3A%2F%2Fauzigog.com%2F2008%2F12%2F23%2Fhackintosh-20%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2008%2F12%2F23%2Fhackintosh-20%2F&amp;title=Hackintosh%202.0" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2008%2F12%2F23%2Fhackintosh-20%2F&amp;title=Hackintosh%202.0" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2008%2F12%2F23%2Fhackintosh-20%2F&amp;title=Hackintosh%202.0" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2008%2F12%2F23%2Fhackintosh-20%2F&amp;title=Hackintosh%202.0" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2008%2F12%2F23%2Fhackintosh-20%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2008%2F12%2F23%2Fhackintosh-20%2F&amp;title=Hackintosh%202.0" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/eyeRblog?a=rjXdPYPO"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=rjXdPYPO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=xScIPqxO"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=xScIPqxO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=WpPE2wAj"><img src="http://feeds.feedburner.com/~f/eyeRblog?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/0zy_jZs_W9g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2008/12/23/hackintosh-20/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2008/12/23/hackintosh-20/</feedburner:origLink></item>
		<item>
		<title>The Climate Lottery</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/5-WCrfttd2I/</link>
		<comments>http://auzigog.com/2008/10/05/the-climate-lottery/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 02:33:34 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Environment]]></category>

		<category><![CDATA[climate change]]></category>

		<category><![CDATA[game theory]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=44</guid>
		<description><![CDATA[
Photo by nickhall
While reading an article on The Thirteen Tipping Points of global warming for my environmental studies class, I took notice of one hypothetical solution to make people more active in combating global warming: A public lottery.
The article starts by informing readers that democratic, cooperative species tend to survive through the millennium. This is [...]
]]></description>
			<content:encoded><![CDATA[<div style="float: left; width: 260px; text-align: center;"><a href="http://www.flickr.com/photos/nhall/969344378/" title="Climate Lottery"><img src="http://farm2.static.flickr.com/1228/969344378_9b7bce6fe3_m.jpg" width="240" height="180" alt="Climate Lottery" title="Climate Lottery" style="border: 0pt none;" /></a><br />Photo by <a href="http://www.flickr.com/photos/nhall/">nickhall</a></div>
<p>While reading an article on <a href="http://www.motherjones.com/news/feature/2006/11/13th_tipping_point.html">The Thirteen Tipping Points</a> of global warming for my environmental studies class, I took notice of one hypothetical solution to make people more active in combating global warming: A public lottery.</p>
<p>The article starts by informing readers that democratic, cooperative species tend to survive through the millennium. This is contrary to some economic theory which suggests that humans will only ever act in their own self-interest.</p>
<p>It also cites a <a href="http://en.wikipedia.org/wiki/Game_theory">game theory</a> experiment in which greater success is obtained by the group as a whole when all participants can see how much each player is contributing to the communal &#8220;pot&#8221;:</p>
<blockquote><p>A recent study hints at the evolution of altruism. A team of Swiss and American mathematicians and population biologists ran a variant of game theory known as a public goods game, in which players contribute money to a common pot that an experimenter doubles, divides evenly, and returns to the players. In ordinary play, if all players contribute all their money, everyone wins big. If one player cheats, everyone wins small. If an altruist and a cheater go head-to-head, the cheater wins consistently. This paradox is known as the Tragedy of the Commons. </p>
<p>But in the new computer variant, population dynamics were introduced into the game. Players were divided into small groups that played among themselves. Each player eventually &#8220;reproduced&#8221; in proportion to the payoff received from play—thereby passing her cooperator or cheater strategy to her offspring. Mutations and dispersions were introduced, creating a shifting population of individuals divided into groups of changing sizes and allegiances. </p>
<p>After 100,000 generations, the results were surprising. Rather than succumbing to the cheaters, the<br />
cooperators overwhelmed them.</p></blockquote>
<p><span id="more-44"></span><br />
Drawing on this evidence, the article presents an intriguing possible solution that would encourage humans to be more active in preventing further global warming:</p>
<blockquote><p>How might we get these messages across? Imagine a lottery funding advertising about he fiery monster, the Lilliputian arrows, the neighborhood dangers. Ideally these advertisements would be big and splashy and persistent enough to awaken us from our slumber in the televised lagoon. </p>
<p>Instead of a ticket, we&#8217;d buy a web listing displaying our commitment to the battle as well as our marksmanship rating: a number reflecting how much money we&#8217;d donated, the efficiency of our car, home, appliances. The highest-rated players would earn high-visibility web pages. Low-rated players could improve their ratings by following a list of lifestyle amendments. The higher our rating, the greater our chances in the lottery. Every week someone would win. </p>
<p>Would we play?
</p></blockquote>
<p>An interesting scenario to say the last. It has some obvious holes, but might have the potential to create real change if somehow implemented on a large scale.</p>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F05%2Fthe-climate-lottery%2F&amp;t=The%20Climate%20Lottery" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=The%20Climate%20Lottery&amp;body=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F05%2Fthe-climate-lottery%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F05%2Fthe-climate-lottery%2F&amp;title=The%20Climate%20Lottery" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F05%2Fthe-climate-lottery%2F&amp;title=The%20Climate%20Lottery" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F05%2Fthe-climate-lottery%2F&amp;title=The%20Climate%20Lottery" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F05%2Fthe-climate-lottery%2F&amp;title=The%20Climate%20Lottery" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F05%2Fthe-climate-lottery%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F05%2Fthe-climate-lottery%2F&amp;title=The%20Climate%20Lottery" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/eyeRblog?a=II360tk2"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=II360tk2" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=KKFIlEKq"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=KKFIlEKq" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=CsieJurh"><img src="http://feeds.feedburner.com/~f/eyeRblog?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/5-WCrfttd2I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2008/10/05/the-climate-lottery/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2008/10/05/the-climate-lottery/</feedburner:origLink></item>
		<item>
		<title>The Corporation: To-do List</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/_gLuEURzffY/</link>
		<comments>http://auzigog.com/2008/10/04/the-corporation-to-do-list/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 23:12:19 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Environment]]></category>

		<guid isPermaLink="false">http://auzigog.com/?p=28</guid>
		<description><![CDATA[
Watch the Corporation
I just finished watching a documentary called The Corporation, an intriguing look at the modern day exploits of global corporations. I wanted to quickly mention a couple points that I found particularly interesting:

For all legal purposes, corporations are considered a person
Being a person, corporations are allowed to give campaign constitutions because it is [...]
]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 260px; text-align: center;"><a href="http://video.google.com/videoplay?docid=192012118972057552" title="Curiosity"><img src="http://auzigog.com/wp-content/uploads/2008/11/movie_poster_the_corporation.jpg" width="240" alt="The Corporation" title="The Corporation" style="border: 1pt black solid;" /></a><br />Watch the Corporation</div>
<p>I just finished watching a documentary called <a href="http://en.wikipedia.org/wiki/The_Corporation"><strong>The Corporation</strong></a>, an intriguing look at the modern day exploits of global corporations. I wanted to quickly mention a couple points that I found particularly interesting:</p>
<ul>
<li>For all legal purposes, corporations are considered <i>a person</i></li>
<li>Being a person, corporations are allowed to give campaign constitutions because it is <i>free speech</i></li>
<li>Before 1987, the patent office clearly stated that it was not legal to patent any living thing. After a misguided supreme court ruling stating that a bacteria looked more like a chemical than a bug, a corporation was allowed to copyright that bacteria. The ruling now states that you can patent <i>any living thing in the world except a full birth human being</i>.</li>
</ul>
<p>The end of the documentary gives a list of things we can do to remedy the issues that are posed by modern corporations:</p>
<ul>
<li>End corporate <a href="http://en.wikipedia.org/wiki/Corporate_Personhood_Debate">personhood</a></li>
<li>Put people before profit</li>
<li>Build economic democracy</li>
<li>Use full-cost accounting</li>
<p><span id="more-28"></span></p>
<li>Stop corporate welfare</li>
<li>Localize ownership</li>
<li>Support unions</li>
<li>3 strikes for corporations</li>
<li>Be an active shareholder</li>
<li>Jail corporate criminals</li>
<li>Strength regulatory systems</li>
<li>Get corporations out of schools</li>
<li>Make trade fair</li>
<li>Run corporations from politics</li>
<li>Use local democratic power</li>
<li>Support independent media</li>
<li>Internalize <a href="http://en.wikipedia.org/wiki/Externality">externalities</a></li>
<li>Buy local</li>
<li>Work for worker rights</li>
<li>Jam corporate culture</li>
<li><b>Ride a bike</b></li>
</ul>
<p>I think this is a fantastic list of things that people can do to fix some of the broken aspects of corporations.</p>
<p>I hope everyone has a chance to watch the documentary. I&#8217;d love to hear any comments anyone has on the film or about corporations in general.</p>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F04%2Fthe-corporation-to-do-list%2F&amp;t=The%20Corporation%3A%20To-do%20List" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=The%20Corporation%3A%20To-do%20List&amp;body=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F04%2Fthe-corporation-to-do-list%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F04%2Fthe-corporation-to-do-list%2F&amp;title=The%20Corporation%3A%20To-do%20List" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F04%2Fthe-corporation-to-do-list%2F&amp;title=The%20Corporation%3A%20To-do%20List" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F04%2Fthe-corporation-to-do-list%2F&amp;title=The%20Corporation%3A%20To-do%20List" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F04%2Fthe-corporation-to-do-list%2F&amp;title=The%20Corporation%3A%20To-do%20List" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F04%2Fthe-corporation-to-do-list%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2008%2F10%2F04%2Fthe-corporation-to-do-list%2F&amp;title=The%20Corporation%3A%20To-do%20List" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/eyeRblog?a=jKu5MuvL"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=jKu5MuvL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=uKo6uhPR"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=uKo6uhPR" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=ky873mWy"><img src="http://feeds.feedburner.com/~f/eyeRblog?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/_gLuEURzffY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2008/10/04/the-corporation-to-do-list/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2008/10/04/the-corporation-to-do-list/</feedburner:origLink></item>
		<item>
		<title>Enlightened Photography</title>
		<link>http://feedproxy.google.com/~r/eyeRblog/~3/_3PG_RwJy-s/</link>
		<comments>http://auzigog.com/2008/01/09/enlightened-photography/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 02:50:11 +0000</pubDate>
		<dc:creator>Auzigog</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://eyermonkey.com/2008/01/09/enlightened-photography/</guid>
		<description><![CDATA[
Photo by Kazze
Seize the moment of excited curiosity on any subject to solve your doubts; for if you let it pass, the desire may never return, and you may remain in ignorance.
-William Wirt
Ever since I first ran across this jewel of advice, I have always made an effort to apply it to my life. Whenever [...]
]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 260px; text-align: center;"><a href="http://www.flickr.com/photos/kazze/289620863/" title="Curiosity"><img src="http://farm1.static.flickr.com/110/289620863_fec1c94a58_m.jpg" width="240" height="172" alt="Curiosity" title="Curiosity" style="border: 0pt none;" /></a><br />Photo by <a href="http://www.flickr.com/photos/kazze/">Kazze</a></div>
<blockquote><p>Seize the moment of excited curiosity on any subject to solve your doubts; for if you let it pass, the desire may never return, and you may remain in ignorance.<br />
-William Wirt</p></blockquote>
<p>Ever since I first ran across this jewel of advice, I have always made an effort to apply it to my life. Whenever my interest in a certain subject flares, I make a point to explore it before my focus has a chance to shift elsewhere.</p>
<p>As of late, my excitement and curiosity have revolved around photography. I bought a <a href="http://en.wikipedia.org/wiki/Nikon_D40">Nikon D40</a> in June and have since only put it to good use on occasion. Since I purchased it, I&#8217;ve had a nagging sense that my photos weren&#8217;t turning out as interesting or &#8220;professional looking&#8221; as those taken by my friends who are amateur photographers. Part of this has to do with the fact that I&#8217;m not always as creative as I&#8217;d like. I also knew the source of my displeasure wasn&#8217;t the fact that I have an entry-level Nikon, because I&#8217;ve been told time and time again that <a href="http://www.kenrockwell.com/tech/notcamera.htm">the camera doesn&#8217;t matter</a>.</p>
<p><span id="more-20"></span></p>
<div style="float: left; width: 181px; text-align: center;"><a href="http://www.flickr.com/photos/mazakar/1720761226/" title="Idea"><img src="http://farm3.static.flickr.com/2107/1720761226_77a909e73d_m.jpg" width="161" height="240" alt="Idea" title="Idea" style="border: 0pt none;" /></a><br />Photo by <a href="http://www.flickr.com/photos/mazakar/">Will Foster</a></div>
<p>It wasn&#8217;t until recently (while browsing <a href="http://www.flickr.com/photos/mazakar/">Will Foster&#8217;s Flickr gallery</a>) that I realized what my photos were missing: <b>light</b>. In retrospect, it seems so obvious. After all, in it&#8217;s simplest form, a photograph is just the capturing of light. All I&#8217;ve ever used is my D40&#8217;s pop-up flash (which leads to harsh lighting and harsh shadows in photographs). It had never occurred to me that a hot-shoe flash (or an off camera flash) could dramatically improve the quality of my photos.</p>
<p>After doing some research, I went out and bought a <a href="http://www.kenrockwell.com/nikon/sb600.htm">Nikon SB-600</a> Speedlight. The difference in my photos was noticeable right away. Below is a comparison of the D40&#8217;s pop-up flash and the SB-600. My roommate, Ryan, was happy to stand in for this experiment. The photo on the left was taken using the built-in pop-up flash on the D40. To the right we have a the remarkable results using the SB-600. The key to the second photo was that I angeled the flash head to bounce off the ceiling and <i>then</i> to Ryan. If you look at the <a href="http://eyermonkey.com/wp-content/uploads/2008/01/flash-comparison-web.jpg">larger version</a>, you can really see the natural shading and definition on his face. An off camera flash (or two) could&#8217;ve produced even better results!</p>
<p><a href="http://eyermonkey.com/wp-content/uploads/2008/01/flash-comparison-web.jpg" title="Flash comparison" style="border: 0;"><img src="http://eyermonkey.com/wp-content/uploads/2008/01/flash-comparison-thumb-web.jpg" alt="Flash comparison" style="float: none;" /></a></p>
<p>The day after I bought the speedlight, Will wrote a <a href="http://willarg.blogspot.com/2008/01/happy-new-year-its-time-to-rock-2008.html">retrospective new years blog</a>, in which, he mentioned a site called <a href="http://www.strobist.blogspot.com/">Strobist</a>. I decided to check out the site, and after an hour or two, I finally came out of my trance of amazement. The site was packed to the brim with useful information for a photographer on a budget. The mantra as Strobist can be found at the top of every page on the site: <i>Less Gear. More Brain. Better Light.</i> </p>
<p>The Strobist community certainly takes these words to heart. They have entire series of courses designed to help you get your an inexpensive, <i>off camera</i> lighting system so you can get creative with your photos. I&#8217;m working my way through their <a href="http://strobist.blogspot.com/2006/03/lighting-101.html">Lighting 101 series</a> right now. I ordered an &#8220;<a href="http://search.stores.ebay.com/Gadget-Infinity_v2s_W0QQfciZQ2d1QQfclZ4QQfsnZGadgetQ20InfinityQQfsooZ1QQfsopZ1QQsaselZ88783763QQsofpZ0">eBay trigger</a>&#8221; so I can start wirelessly triggering my flashes. I&#8217;m already started preparing all my friends for the amount of modeling that I&#8217;ll be forcing them to partake in once those triggers arrive.</p>
<p>After my interest in photography was reignited, I started pillaging through my dad&#8217;s old gear which had been sitting in his closet for an eternity. I ended swiping an SB-15, an umbrella and a stand for the umbrella. I also ordered an extra flash trigger from eBay so I could fire the SB-15 remotely also.</p>
<p>I&#8217;m now on my way to doing some cool things with my photography. I plan on reading Strobist and <a href="http://feeds.feedburner.com/willarg_shared">other photography blogs</a> on a regular basis. I also hope to be at the next <a href="http://www.flickr.com/groups/pdxstrobist/discuss/72157603491005662/">Portland Strobist Photo Shoot</a>. I&#8217;m also looking into building a <a href="http://www.flickr.com/groups/strobist/discuss/72157603455708647/">DIY</a> <a href="http://www.flickr.com/groups/strobist/discuss/72157603053892127/">flash</a> <a href="http://www.flickr.com/groups/strobist/discuss/72157603302830038/">ring</a>.</p>
<p>What have been some turning points in your photographic journey? Or more generally, what have you been excited about recently that you made a point to pursue?</p>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fauzigog.com%2F2008%2F01%2F09%2Fenlightened-photography%2F&amp;t=Enlightened%20Photography" title="Facebook"><img src="http://auzigog.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Enlightened%20Photography&amp;body=http%3A%2F%2Fauzigog.com%2F2008%2F01%2F09%2Fenlightened-photography%2F" title="E-mail this story to a friend!"><img src="http://auzigog.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fauzigog.com%2F2008%2F01%2F09%2Fenlightened-photography%2F&amp;title=Enlightened%20Photography" title="Digg"><img src="http://auzigog.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fauzigog.com%2F2008%2F01%2F09%2Fenlightened-photography%2F&amp;title=Enlightened%20Photography" title="Reddit"><img src="http://auzigog.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fauzigog.com%2F2008%2F01%2F09%2Fenlightened-photography%2F&amp;title=Enlightened%20Photography" title="del.icio.us"><img src="http://auzigog.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fauzigog.com%2F2008%2F01%2F09%2Fenlightened-photography%2F&amp;title=Enlightened%20Photography" title="StumbleUpon"><img src="http://auzigog.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fauzigog.com%2F2008%2F01%2F09%2Fenlightened-photography%2F" title="TwitThis"><img src="http://auzigog.com/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fauzigog.com%2F2008%2F01%2F09%2Fenlightened-photography%2F&amp;title=Enlightened%20Photography" title="Google"><img src="http://auzigog.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/eyeRblog?a=HAFSrokm"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=HAFSrokm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=3lmGXVix"><img src="http://feeds.feedburner.com/~f/eyeRblog?i=3lmGXVix" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/eyeRblog?a=bDORzkbh"><img src="http://feeds.feedburner.com/~f/eyeRblog?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eyeRblog/~4/_3PG_RwJy-s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://auzigog.com/2008/01/09/enlightened-photography/feed/</wfw:commentRss>
		<feedburner:origLink>http://auzigog.com/2008/01/09/enlightened-photography/</feedburner:origLink></item>
	</channel>
</rss>
