<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Architect blog &#187; Mac OS</title>
	<atom:link href="http://www.php-architect.com/blog/category/mac-os/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-architect.com/blog</link>
	<description>PHP, MySQL, ZF, Python, Linux, Mac, C++, Java, Flex, Air, ActionScript &#38; apps development.</description>
	<lastBuildDate>Sun, 13 Jun 2010 18:25:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=548</generator>
		<item>
		<title>What is your favorite MAC App?</title>
		<link>http://www.php-architect.com/blog/2010/04/10/what-is-your-favorite-mac-app/</link>
		<comments>http://www.php-architect.com/blog/2010/04/10/what-is-your-favorite-mac-app/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 12:16:42 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Favorites]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[macbookpro]]></category>
		<category><![CDATA[macosx]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=369</guid>
		<description><![CDATA[Many of the new mac users are looking for apps to do the tasks they need on their new OS. I am making a list of Mac apps to help the new converters ,  and the best source to prepare such a list is mac users, so what is your favorite MAC app ? Mine [...]


Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/09/20/web-developer-brain/' rel='bookmark' title='Permanent Link: Web Developer Brain'>Web Developer Brain</a></li>
<li><a href='http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/' rel='bookmark' title='Permanent Link: Manage your notes / Code snippets with Snippely'>Manage your notes / Code snippets with Snippely</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Many of the new mac users are looking for apps to do the tasks they need on their new OS.</p>
<p>I am making a list of Mac apps to help the new converters <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ,  and the best source to prepare such a list is mac users, so what is your favorite MAC app ?</p>
<p>Mine is TextMate</p>
<div class="wp-caption aligncenter" style="width: 340px"><a href="http://macromates.com/"><img title="TextMate" src="http://manual.macromates.com/images/project_window_with_tabs.png" alt="TextMate" width="330" height="226" /></a><p class="wp-caption-text">TextMate</p></div>
<p>What is yours ?</p>
<p><em>note: your mentioned apps will be listed in a later post, thus your replies is highly important <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/09/20/web-developer-brain/' rel='bookmark' title='Permanent Link: Web Developer Brain'>Web Developer Brain</a></li>
<li><a href='http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/' rel='bookmark' title='Permanent Link: Manage your notes / Code snippets with Snippely'>Manage your notes / Code snippets with Snippely</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/04/10/what-is-your-favorite-mac-app/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Fixing MacBookPro Superdrive</title>
		<link>http://www.php-architect.com/blog/2009/05/30/fixing-macbookpro-superdrive/</link>
		<comments>http://www.php-architect.com/blog/2009/05/30/fixing-macbookpro-superdrive/#comments</comments>
		<pubDate>Sat, 30 May 2009 17:07:22 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[lens]]></category>
		<category><![CDATA[macbookpro]]></category>
		<category><![CDATA[superdrive]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=329</guid>
		<description><![CDATA[I have purchased my MacBookPro in October 2007, after 6 months my optical drive was so picky in reading or writing DVDs and CDs, and after few months, it was able to read originals only. I tried everything from updating the firmware or flashing it to restore its original firmware, but no luck, until yesterday [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I have purchased my MacBookPro in October 2007, after 6 months my optical drive was so picky in reading or writing DVDs and CDs, and after few months, it was able to read originals only.</p>
<p>I tried everything from updating the firmware or flashing it to restore its original firmware, but no luck, until yesterday when i had to format and install the OS from scratch, but to my surprise it wasn&#8217;t able to read the Original MacOS DVD.</p>
<p>I Googled once again about the cuase of this, and found some results referring to cleaning the lens,</p>
<p>I followed this tutorial to disassmble the laptop :</p>
<p><a title="Installing MacBook Pro 15&quot; Core 2 Duo Model A1211 Optical Drive Replacement" href="http://www.ifixit.com/Guide/Repair/MacBook-Pro-15-Inch-Core-2-Duo-2-16-2-33-GHz-Optical-Drive-Replacement/461/1" target="_blank">http://www.ifixit.com/Guide/Repair/MacBook-Pro-15-Inch-Core-2-Duo-2-16-2-33-GHz-Optical-Drive-Replacement/461/1</a></p>
<p>and this one to disassmble the optical drive and clean the lens with benzene,</p>
<p><a title="How to clean the lens of a slot-loading optical drive (a MacBook Pro's SuperDrive)" href="http://muzso.hu/2008/08/17/how-to-clean-the-lens-of-a-slot-loading-optical-drive-a-macbook-pros-superdrive" target="_blank">http://muzso.hu/2008/08/17/how-to-clean-the-lens-of-a-slot-loading-optical-drive-a-macbook-pros-superdrive</a></p>
<p>In 1 hour i had my superdrive working as brand new one and saved me from buying a new one <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , i know many who face the same problem with the optical drive, this was a nice way to have it back.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/05/30/fixing-macbookpro-superdrive/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Python &amp; PyGTK on Mac OsX</title>
		<link>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/</link>
		<comments>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 10:16:23 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[glade]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[pygtk]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=157</guid>
		<description><![CDATA[Recently i have been asked to develop an application that will work on Linux, and Mac os, so i started developing it on my Ubuntu, i chosed Python as the programming language and PyGTK as the GUI for it. The application worked fine on my Ubuntu, but when i moved it to Mac OSx (Leopard), [...]


Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/' rel='bookmark' title='Permanent Link: How to Add &#038; Subtract time code in Python'>How to Add &#038; Subtract time code in Python</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Recently i have been asked to develop an application that will work on Linux, and Mac os, so i started developing it on my Ubuntu, i chosed Python as the programming language and PyGTK as the GUI for it.</p>
<p>The application worked fine on my Ubuntu, but when i moved it to Mac OSx (Leopard), i had a problem importing the PyGTK module and the program GUI didn&#8217;t run. so i tried to install PyGTK from sources with all its dependencies, but after spending a day doing so i ended up with many errors in compiling the dependencies and finding them.</p>
<p>after some search i found out that i can do this using MacPorts.</p>
<p>so here is the steps i followed :</p>
<p>- Install X11 <a title="Installing X11 on Mac OSx Leopard" href="http://guide.macports.org/#installing.x11" target="_blank">http://guide.macports.org/#installing.x11</a></p>
<p>- Install Xcode tools <a title="Installing XCode tools on Mac OSx Leopard" href="http://guide.macports.org/#installing.xcode" target="_blank">http://guide.macports.org/#installing.xcode</a></p>
<p>- Install MacPorts <a title="Installing MacPorts on Mac OSx Leopard" href="http://guide.macports.org/#installing.macports" target="_blank">http://guide.macports.org/#installing.macports</a></p>
<p>- Make sure the paths are configured in your shell profile <a title="Installing MacPorts on Mac OSx Leopard" href="http://guide.macports.org/#installing.shell" target="_blank">http://guide.macports.org/#installing.shell</a></p>
<p>- Restart your shell, and follow the next commands :</p>
<p>1- Install Python</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python25</pre></div></div>

<p>2- Install Python select</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python_select</pre></div></div>

<p>3- Activate our installed python version</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> python_select python25</pre></div></div>

<p>4- Install pygtk</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> py25-gtk</pre></div></div>

<p>5- Install some gnome themes and engines</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gnome-themes
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-nodoka-engine
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-smooth-engine
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-aurora
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-clearlooks
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-extra
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-industrial
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-murrine</pre></div></div>

<p>6- Install theme switch</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-theme-switch</pre></div></div>

<p>7- Select which theme to be used by your applications by running the theme switch</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">switch2</pre></div></div>

<p>Now you can have the applications you develop using python and pygtk running smoothly on mac os leopard.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/' rel='bookmark' title='Permanent Link: How to Add &#038; Subtract time code in Python'>How to Add &#038; Subtract time code in Python</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How to publish your iCal to Google Calendar</title>
		<link>http://www.php-architect.com/blog/2008/08/22/how-to-publish-your-ical-to-google-calendar/</link>
		<comments>http://www.php-architect.com/blog/2008/08/22/how-to-publish-your-ical-to-google-calendar/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 22:25:12 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[Calendar Exchange]]></category>
		<category><![CDATA[Google Calendar]]></category>
		<category><![CDATA[iCal]]></category>
		<category><![CDATA[iCalx]]></category>
		<category><![CDATA[Publish Calendar]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=88</guid>
		<description><![CDATA[Well, to mark your events in iCal and have them published to your google calendar, first you need to make an account in www.icalx.com Then from iCal right click on your calendar, and choose Publish, and enter your iCalx calendar information. after that you can take the link from iCalx and add it as a [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Well, to mark your events in iCal and have them published to your google calendar, first you need to make an account in <a title="www.icalx.com" href="http://www.icalx.com/" target="_blank">www.icalx.com</a></p>
<p>Then from iCal right click on your calendar, and choose Publish, and enter your iCalx calendar information.</p>
<p>after that you can take the link from iCalx and add it as a calendar in your Google Calendar account.</p>
<p>when you do that, every event you mark in your iCal, will be published to your iCalx account and then Google will pull it to your Google Calendar account,</p>
<p>Little tricky but it does the job <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/08/22/how-to-publish-your-ical-to-google-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert DAA disk images to ISO on Mac osX</title>
		<link>http://www.php-architect.com/blog/2008/06/26/convert-daa-disk-images-to-iso-on-mac-osx/</link>
		<comments>http://www.php-architect.com/blog/2008/06/26/convert-daa-disk-images-to-iso-on-mac-osx/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 13:51:09 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MacBook]]></category>

		<guid isPermaLink="false">http://www.abdelaliem.com/?p=63</guid>
		<description><![CDATA[DAA Converter for OS X Access DAA disk images on your Mac Direct Access Archive (DAA) is a disk image format that&#8217;s currently unsupported on OS X. DAA Converter is a free utility which allows you to access the contents of a DAA image file by converting it to ISO disk image format; The converted [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<div class="image-left"><img class="imageStyle" src="http://www.twilightedge.com/mac/daaconverter/files/daaconverter_icon.png" alt="DAA Converter icon" width="73" height="61" /></div>
<p><img class="imageStyle" src="http://www.twilightedge.com/mac/daaconverter/files/spacer.png" alt=" " width="1" height="30" /><span style="font-size: 23px; font-weight: bold;">DAA Converter for              OS X</span><span style="font-size: 24px; font-weight: bold;"><br />
</span><strong><img class="imageStyle" src="http://www.twilightedge.com/mac/daaconverter/files/spacer.png" alt=" " width="1" height="1" /></strong><span style="font-size: 18px; font-weight: bold;">Access DAA disk              images on your Mac</span><span style="font-size: 17px;"><br />
</span><span style="font-size: 15px;"><br />
</span><span style="font-size: 14px;">Direct Access Archive (DAA) is a              disk image format that&#8217;s currently unsupported on OS              X.<br />
DAA Converter is a free utility which allows you to access         the contents of a DAA image file by converting it to ISO         disk image format; The converted ISO disk image can be         mounted as a readable volume on your Mac by double-clicking         it.</p>
<p>DAA Converter is a native OS X GUI application which wraps         the command-line tool,</span> <span style="font-size: 14px;"><a rel="self" href="http://aluigi.org/mytoolz.htm">daa2iso</a></span><span style="font-size: 14px;">, by</span> <span style="font-size: 14px;"><a rel="self" href="http://aluigi.org/">Luigi Auriemma</a></span><span style="font-size: 14px;">.<br />
It runs on OS X 10.3 Panther or later, and does not         currently support password-protected DAA files.</p>
<p></span></p>
<div class="image-left"><img class="imageStyle" src="http://www.twilightedge.com/mac/daaconverter/files/download_arrow.png" alt="Download:" width="144" height="49" /></div>
<p><img class="imageStyle" src="http://www.twilightedge.com/mac/daaconverter/files/spacer.png" alt=" " width="1" height="36" /><span style="font-size: 17px; font-weight: bold;"><a rel="self" href="http://www.twilightedge.com/downloads/DAAConverter1.0.dmg.zip">DAA Converter v1.0</a></span><span style="font-size: 14px;"><br />
</span><span style="font-size: 17px;"><br />
</span><span style="font-size: 13px;"><br />
DAA Converter is free software, distributed under the GNU         General Public License (GPL).<br />
Download</span> <span style="font-size: 13px;"><a rel="self" href="http://www.twilightedge.com/downloads/DAAConverter1.0.Sources.zip">DAA Converter&#8217;s source            code</a></span><span style="font-size: 13px;">.</span></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/06/26/convert-daa-disk-images-to-iso-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing a Subversion (SVN) server on Mac OS X</title>
		<link>http://www.php-architect.com/blog/2008/06/23/installing-a-subversion-svn-server-on-mac-os-x/</link>
		<comments>http://www.php-architect.com/blog/2008/06/23/installing-a-subversion-svn-server-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 13:02:06 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS]]></category>

		<guid isPermaLink="false">http://www.abdelaliem.com/?p=62</guid>
		<description><![CDATA[I use my Mac OS X laptop (a MacBook Pro) almost exclusively these days, often working in a library or coffee shop, but I still want the power of a version control system with me. I finally decided to install a Subversion (SVN) server on my MacBook, and it was surprisingly easy. (I say &#8220;surprisingly&#8221; [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><span class="msg_description">I use my <a href="http://www.apple.com/macosx/">Mac OS X</a> laptop (<a href="http://www.apple.com/macbookpro/">a MacBook Pro</a>) almost exclusively these days, often working in a library or coffee shop, but I still want the power of a version control system with me. I finally decided to install a <a href="http://subversion.tigris.org/">Subversion (SVN)</a> server on my MacBook, and it was surprisingly easy. (I say &#8220;surprisingly&#8221; because the few links I&#8217;ve found online led me to believe it would be much harder to install SVN on Mac OS X.)</p>
<p>Rather than write a full-blown SVN installation tutorial or SVN installation manual, I&#8217;m just going to put my notes out here. Hopefully they&#8217;ll be sufficient to help you get Subversion/SVN installed on your Mac as well.</p>
<ol>
<li>Open a Terminal, and run <code>fink install svn</code>. (The SVN package is the SVN server.) Supply the password when prompted.</li>
<li>This installs <code>svnserve</code>, and nine other supporting packages. There&#8217;s more <a href="http://pdb.finkproject.org/pdb/package.php/svn">fink svn information here</a></li>
<li>That&#8217;s all you need to do to get the server installed on your system. You still have to configure it and start it up, but before doing that I downloaded the SVN command line client.</li>
<li>Type <code>fink install svn-client</code> to install the SVN client.</li>
<li>Type <code>fink install svn-doc</code> to install the documentation.</li>
<li>I want to create a repository out of my home directory (to make it easier for backups), so I created it like this: <code>svnadmin create /Users/al/svnrepo</code></li>
<li>I edited the <code>conf/svnserve.conf</code> file to change a few lines. If you want to use SVN without user accounts this isn&#8217;t 100% needed, but I do want to have my name on all those check-ins, so I made a few changes. See the &#8220;svnserve.conf configuration file&#8221; section later on this page for details.</li>
<li>I also edited the <code>conf/passwd</code> file at this time. This is also discussed below.</li>
<li>Technically I started <code>svnserve</code> at this time, but quickly ran into a permission problem on my first check-in. Reading the docs it looks like the repo needs to be owned by the &#8220;www&#8221; user (as that&#8217;s the owner of the <code>svnserve</code> process), so I ran this command from the directory just above my repo: <code>find svnrepo -exec chown www.www {} \;</code>. That gave me a warning/deprecated message, but still changed all the repo files to be owned by the &#8220;www&#8221; owner and group. (Break this into two separate commands if you need to.)</li>
<li>I started the SVN server like this: <code>sudo -u www /sw/bin/svnserve -d -r /Users/al/svnrepo</code></li>
<li>I haven&#8217;t looked back since. <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ol>
<h2>svnserve.conf configuration file</h2>
<p>With Subversion you have a configuration file named <code>conf/svnserve.conf</code>. Here&#8217;s what my <code>conf/svnserve.conf</code> configuration file looks like, with my comments still included:</p>
<pre>[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = read
auth-access = write

### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd

### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
realm = Laptop Realm</pre>
<p>Here&#8217;s what my <code>conf/passwd</code> file looks like:</p>
<pre>[users]
al = al</pre>
<p>So if you want to bust into the SVN server on my MacBook Pro that should make it pretty easy. <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span class="msg_description"></p>
<h2>The end</h2>
<p>That was all I had to do to install a Subversion server on my Mac. After this I started using normal SVN commands and everything worked as advertised.</p>
<p>As mentioned, from my research it sounded like it was going to be hard to get an SVN server running on my Mac, but I didn&#8217;t have any real problems, other than I&#8217;d never installed an SVN server before, so this was my first time. I&#8217;m sure I&#8217;ll learn more as I go on, but hopefully that will help you get started using SVN on your Mac as well.</p>
<h2>Reference</h2>
<p>Here&#8217;s a little more help &#8230; it&#8217;s the output from one of the commands I ran early on:</p>
<pre>Type 'fink describe svn' to get usage help.

Type 'svnserve --help', 'man svnserve', 'svnadmin help', or 'man svnadmin'
for usage.
Some tools (e.g. hook and back-up scripts) and examples are stored in
/sw/share/svn/tools and /sw/share/svn/contrib
.
You can start the Subversion server manually using a command similar to
'/usr/bin/sudo -u www /sw/bin/svnserve -d -r /sw/var/svn' or you can
run 'daemonic enable svnserve' as root to create a StartupItem for it.
.
'svnserve' is run as user 'www' in order that apache and svnserve can
access the same repositories at the same time under '/sw/var/svn'
.
You could install the repositories under the preconfigured directory
/sw/var/svn
which should have the correct permissions. Make sure that all files
in the new repository have the correct permissions for svnserve (and apache)
to read and write. E.g. run 'chown -R www /sw/var/svn/yourrepos' and
'chmod -R go-rwx /sw/var/svn/yourrepos'.</pre>
<p>I didn&#8217;t know you could run <code>chown</code> like that; learn something new every day. I didn&#8217;t run the <code>chmod</code> command, and haven&#8217;t had any problems, but I&#8217;ll do that next. It makes the ownership for &#8220;group&#8221; and &#8220;other&#8221; on all files to be &#8220;rwx&#8221;, or 777.</p>
<p></span></p>
<p></span></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/06/23/installing-a-subversion-svn-server-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Samba printers in Leopard</title>
		<link>http://www.php-architect.com/blog/2008/01/21/add-samba-printers-in-leopard/</link>
		<comments>http://www.php-architect.com/blog/2008/01/21/add-samba-printers-in-leopard/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 20:02:58 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[leopard printer windows shared sharing ip address samba]]></category>

		<guid isPermaLink="false">http://www.abdelaliem.com/2008/01/21/add-samba-printers-in-leopard/</guid>
		<description><![CDATA[Putting together a couple of other web resources, here is a step-by-step guide to adding Samba printers in Leopard. Our Windows print server is on a different subnet from many of our users, so the printers don&#8217;t show up automatically. This method also passes user credentials to the print server. Next step: to automate this [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Putting together a couple of other web resources, here is a step-by-step guide to adding Samba printers in Leopard. Our Windows print server is on a different subnet from many of our users, so the printers don&#8217;t show up automatically. This method also passes user credentials to the print server. Next step: to automate this process so that we can add multiple printers in one step.</p>
<p>1. Open System Preferences -&gt; Print &amp; Fax.</p>
<p><img src="http://www.kassblog.com/media/1/20071205-print-syspref.png" alt="system preferences" title="system preferences" height="67" width="76" /></p>
<p>2. Select to add a new printer.</p>
<p><img src="http://www.kassblog.com/media/1/20071205-print-add.png" alt="add" title="add" height="20" width="23" /></p>
<p>3. The first time you do this, add the Advanced button to the add printer toolbar. Ctrl-click on the toolbar, select &#8220;Customize Toolbar&#8230;&#8221;, and then drag the Advanced button onto the toolbar.</p>
<p><img src="http://www.kassblog.com/media/1/20071205-print-toolbar.png" alt="toolbar" title="toolbar" height="128" width="187" /></p>
<p><img src="http://www.kassblog.com/media/1/20071205-print-advanced.png" alt="advanced" title="advanced" height="57" width="61" /></p>
<p>4. Select Advanced then specify the following printer settings.</p>
<p>Type: Windows</p>
<p>Device: Another Device</p>
<p>URL: smb://username:password@domain/printserver/printername, where username is your network username, password is your password, domain is your Windows domain, printserver is the name of your print server, and printername is the name of the printer share.</p>
<p>Name: the printer name</p>
<p>Location (optional): the physical location of the printer, e.g. &#8220;Vollum common space&#8221;</p>
<p>Print Using: Select a driver to use -&gt; search for the correct model.</p>
<p>Select the Add button to save this printer. If prompted, select Duplexing. That should do it!</p>
<p><img src="http://www.kassblog.com/media/1/20071205-print-details.png" alt="details" title="details" height="294" width="288" /></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/01/21/add-samba-printers-in-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix the MySQL PHP issue in Leopard (mysql.sock file)</title>
		<link>http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/</link>
		<comments>http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 13:39:25 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[arabic]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://www.abdelaliem.com/blog/?p=20</guid>
		<description><![CDATA[This is a known issue in Leopard, basically the system is looking for the mysql.sock file in the wrong place. Just need to create a symlink and you should be in business: sudo mkdir /var/mysql/ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><span class="postbody">This is a known issue in Leopard, basically the system is looking for the mysql.sock file in the wrong place. Just need to create a symlink and you should be in business:</p>
<p>sudo mkdir /var/mysql/<br />
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock </span></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/01/07/fix-the-mysql-php-issue-in-leopard-mysqlsock-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MySQL on Mac OS X (Tested on Leopard)</title>
		<link>http://www.php-architect.com/blog/2008/01/07/installing-mysql-on-mac-os-x-tested-on-leopard/</link>
		<comments>http://www.php-architect.com/blog/2008/01/07/installing-mysql-on-mac-os-x-tested-on-leopard/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 13:37:03 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abdelaliem.com/blog/?p=19</guid>
		<description><![CDATA[Found it very useful, hope you will too What follows are instructions for building and installing MySQL 5 on Mac OS X. These instructions should work perfectly on both Tiger and Leopard. If you’re a pro at this type of thing already, if you’re impatient, or just feeling lucky, you can download the basic install [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Found it very useful, hope you will too</p>
<p class="entry-content">What follows are instructions for building and installing MySQL 5 on Mac <span class="caps">OS X</span>. These instructions should work perfectly on both Tiger and Leopard.</p>
<p>If you’re a pro at this type of thing already, if you’re impatient, or just feeling lucky, you can <a onclick="javascript:pageTracker._trackPageview ('/outbound/hivelogic.com');" href="http://hivelogic.com/downloads/hivelogic_mysql_setup.sh">download the basic install steps as a shell script</a> and give that a go. Just make sure you’ve installed Xcode and set your path correctly (if that doesn’t make sense, you should keep reading).</p>
<h3>Why You Might Want to Build MySQL Yourself</h3>
<p>So why would you want to compile your own version of MySQL when the MySQL team releases a Mac <span class="caps">OS X</span> build that you can download and install in one step? There are a few reasons:</p>
<ol>
<li>As of today (2007-11-09) there isn’t a MySQL package-installer for Leopard, and the Tiger one has a few issues</li>
<li>You’ll have a stand-alone, easy-to-update version of MySQL that you control and understand</li>
<li>When a new version of MySQL comes out, you won’t have to wait for the MySQL team to release a package for Mac <span class="caps">OS X</span> (or for <em>your version</em> of Mac <span class="caps">OS X</span>) … just download the latest source and follow the steps – they never change</li>
<li>You can easily uninstall MySQL yourself at any time</li>
<li>Compiling software yourself lets you learn how Mac <span class="caps">OS X</span> and the software you use really work behind the scenes</li>
</ol>
<p>But … there are some downsides, too:</p>
<ol>
<li>You won’t get a Preference Pane to start/stop MySQL (unless <a onclick="javascript:pageTracker._trackPageview ('/outbound/manton.org');" href="http://manton.org/">Mantorg</a> agrees to build us one. Idea: email him and tell him you want him to)</li>
<li>It takes about 20 minutes to build and install</li>
</ol>
<p>In the end, compiling and installing MySQL this way is well worth the effort, as the end result delivers an easy-to-upgrade, system-independent, stand-alone development platform that is impervious to potential problems that can be caused by system updates, operating system upgrades, etc.</p>
<p>By rolling our own from source this way, we also have full control over our environment. We know what’s installed and where, what version we’ve used, where it came from, and there’s no dependence on an external ports system and the breakage or issues that come from relying on others to manage our software.</p>
<p>These issues and additional background information about <em>why</em> one might roll their own tools in this fashion are detailed in the article, <a onclick="javascript:pageTracker._trackPageview ('/outbound/hivelogic.com');" href="http://hivelogic.com/narrative/articles/using_usr_local">Using /usr/local/</a>, which could be considered a prerequisite for this task.</p>
<h3>A Quick Warning</h3>
<p>While it’s unlikely anything we do here might do any kind of damage to the system, it’s good advice to have a current backup of everything, just in case. I don’t take any responsibility for anything that results from following these instructions. You’re following these instructions at your own risk.</p>
<h3>Prerequisites</h3>
<p>You’ll need to install Xcode. Xcode can be found in the <em>Optional Installs</em> folder of the installation <span class="caps">DVD</span>. You can also download the latest version from Apple by getting a (free) membership from the <a onclick="javascript:pageTracker._trackPageview ('/outbound/developer.apple.com');" href="http://developer.apple.com/">Apple Developer Connection</a>.</p>
<p>Just double click the Xcode installer package, take the defaults, and you’ll be ready to roll.</p>
<h3>A Note About Existing MySQL Installations</h3>
<p>If you already have MySQL installed and used the package installer from MySQL to install it, you need to remove a single file (actually a <a onclick="javascript:pageTracker._trackPageview ('/outbound/en.wikipedia.org');" href="http://en.wikipedia.org/wiki/Symlink">symlink</a>) to disable it:</p>
<pre>sudo rm /usr/local/mysql</pre>
<p>If you also installed the StartupItem package, you’ll want to remove it as well. Keep in mind that if you ever want to auto-start the <em>old</em> version of MySQL later on, you’ll need to re-download the package installer and reinstall the StartupItem.</p>
<pre>sudo rm -rf /Library/StartupItems/MySQLCOM/</pre>
<p>Exporting or migrating your old data isn’t difficult, but it is beyond the scope of this article. I may write something up to handle this in a subsequent article if it’s something people want.</p>
<h3>Terminal</h3>
<p>We’re going to be typing archaic commands into a window using a <a onclick="javascript:pageTracker._trackPageview ('/outbound/dejavu.sourceforge.net');" href="http://dejavu.sourceforge.net/wiki/index.php/Main_Page">monospaced font</a>, just like <em>in a movie!</em> And if things go well, later, your life-sized avatar will learn kung-fu.</p>
<p>Open the Terminal application. It can be found in the <code>/Applications/Utilities</code> folder.</p>
<p>Each of the lines below appearing in monospaced type should be entered into Terminal, and be followed by the Return key. But you knew that already.</p>
<h3>Setting the Path</h3>
<p><strong><em>Do not skip this step! Most everything else will fail if you do.</em></strong></p>
<p>Mac <span class="caps">OS X</span>, like other <span class="caps">UNIX</span> systems, uses something called a <em>path</em> to determine where it should look for applications on the command line (that is, when you’re using the Terminal app). The path is actually an environment variable, set by a special file that’s automatically executed when you open a new Terminal window.</p>
<p>To see if the path has been set properly, we can check the contents of the <code>.bash_login</code> file (the special file hidden in our home folder) for a <code>PATH</code> line using a text editor.  <a onclick="javascript:pageTracker._trackPageview ('/outbound/macromates.com');" href="http://macromates.com/">TextMate</a>, <a onclick="javascript:pageTracker._trackPageview ('/outbound/www.barebones.com');" href="http://www.barebones.com/products/textwrangler/index.shtml">TextWrangler</a>, <a onclick="javascript:pageTracker._trackPageview ('/outbound/www.barebones.com');" href="http://www.barebones.com/products/bbedit/index.shtml">BBEdit</a>, and <a onclick="javascript:pageTracker._trackPageview ('/outbound/en.wikipedia.org');" href="http://en.wikipedia.org/wiki/Vi">vi</a> are all perfectly good options. To open the file with TextMate, for example, we can type:</p>
<pre>mate ~/.bash_login</pre>
<p>This will open the file if it already exists, or open a blank file if it doesn’t.  Add the following line <strong>at the very end of the file</strong>:</p>
<pre>export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"</pre>
<p>Now save and close the file.</p>
<p>It doesn’t matter how many other lines there are in the file, or what they say or do. Just make sure that this line comes <em>last</em> and you should be fine.</p>
<p>To make sure the changes are picked up correctly, we now need to execute the file with the following command:</p>
<pre>. ~/.bash_login</pre>
<p>It’s likely there will be no response from the shell here, just the prompt, but that’s OK, the changes have been picked up and we’re ready to move on.</p>
<p>You can also close your Terminal and open a new one instead if you’d like.</p>
<h3>Setting Up</h3>
<p>I like to create a folder to contain the MySQL source code file and build folder. This way, I can later <em>uninstall</em> MySQL easily, as well as download and compile new versions, all in one place.</p>
<p>For these examples, we’ll create a folder called <code>src</code> in our home folder, and change directories into that folder. It will be our workspace for everything we do here:</p>
<pre>mkdir -p ~/src
cd ~/src</pre>
<p>You’ll download and compile everything in this new folder.</p>
<h3>Download, Extract, Etc.</h3>
<p>Now we’re ready to start the real work. Just type (or cut-n-paste) each one of the following lines into Terminal, one by one. When one line finishes (some will take a while and dump a lot of information to the screen), enter the next one.</p>
<p>This will first download and then expand the MySQL source code distribution:</p>
<pre>curl -O http://mysql.he.net/Downloads/MySQL-5.0/mysql-5.0.45.tar.gz
tar xzvf mysql-5.0.45.tar.gz
cd mysql-5.0.45</pre>
<p>You then need to configure MySQL:</p>
<pre>CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc \
CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors \
-fno-exceptions -fno-rtti" \
./configure --prefix=/usr/local/mysql \
--with-extra-charsets=complex --enable-thread-safe-client \
--enable-local-infile --enable-shared</pre>
<p>When that process completes, you can initiate the actual compilation process:</p>
<pre>make</pre>
<p>This part can take a while. Now is a good time to go and get yourself a tasty beverage.</p>
<p>The last part of the build process is where MySQL actually gets installed. <strong>You’ll be prompted for your password here</strong>, because this is where files actually get written to their actual locations:</p>
<pre>sudo make install</pre>
<p>Next, we need to setup the initial databases and privileges. You may be prompted for your password again:</p>
<pre>cd /usr/local/mysql
sudo ./bin/mysql_install_db --user=mysql
sudo chown -R mysql ./var</pre>
<p>That’s it, MySQL is installed. But you’re not done yet.</p>
<h3>Auto-Starting MySQL</h3>
<p>Now that the install is done, you need to have MySQL auto-start every time you start or reboot your Mac. The easiest way to do this is using <a onclick="javascript:pageTracker._trackPageview ('/outbound/developer.apple.com');" href="http://developer.apple.com/macosx/launchd.html">launchd</a>.</p>
<p>I’ve prepared a launchd plist file that will manage MySQL, starting it at boot and stopping it cleanly at shutdown. Create a file named <code>com.mysql.mysqld.plist</code> using the text-editor of your choice, and save it to your Desktop. Enter the following text into the file:</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
    &lt;key&gt;KeepAlive&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;com.mysql.mysqld&lt;/string&gt;
    &lt;key&gt;Program&lt;/key&gt;
    &lt;string&gt;/usr/local/mysql/bin/mysqld_safe&lt;/string&gt;
    &lt;key&gt;RunAtLoad&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;UserName&lt;/key&gt;
    &lt;string&gt;mysql&lt;/string&gt;
    &lt;key&gt;WorkingDirectory&lt;/key&gt;
    &lt;string&gt;/usr/local/mysql&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;</pre>
<p>Now we need to move the file into place and set the permissions on it. You may be prompted for your password again:</p>
<pre>sudo mv ~/Desktop/com.mysql.mysqld.plist /Library/LaunchDaemons
sudo chown root /Library/LaunchDaemons/com.mysql.mysqld.plist</pre>
<p>With the file in place, the last step is to tell launchd to load and startup MySQL. You may be prompted for your password again:</p>
<pre>sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist</pre>
<p>If things go well, you won’t see anything special happen, but MySQL will have started up. You can verify this, again back in Terminal:</p>
<pre>mysql -uroot</pre>
<p>This will initiate MySQL’s command-line monitor. If everything went well, you should see something like this:</p>
<pre>Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.45 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql&gt;</pre>
<p>If you see that, that’s it, you’re done! Type <code>exit</code> to quit the MySQL monitor.</p>
<p>If you see something else, verify that your paths are set correctly and try the command again. If things still don’t work, it’s likely that something didn’t work and the compile didn’t finish. Try going through the steps once more and see if you can catch any error messages.</p>
<h3>Starting and Stopping MySQL Manually</h3>
<p>If you ever want to stop MySQL manually, use this command in Terminal, entering you password when prompted:</p>
<pre>sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist</pre>
<p>To start it manually, use this command in Terminal, entering you password when prompted:</p>
<pre>sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist</pre>
<h3>A Note about Security</h3>
<p>The easiest way to secure your MySQL installation without affecting the way you (or your applications) will need to communicate with it is to limit anything but local connections to your MySQL server. In other words, only you and the apps you run on your own Mac will be able to connect. You won’t need to enter passwords when interacting with MySQL locally, and won’t need to tweak the default <code>database.yml</code> files that Rails creates, for example.</p>
<p>We can limit access by creating (or editing) the <code>/etc/my.cnf</code> file. If you have TextMate installed, you can enter the following command to create (or edit) the file:</p>
<pre>mate /etc/my.cnf</pre>
<p>If you use BBEdit, you’d use this command:</p>
<pre>bbedit /etc/my.cnf</pre>
<p>The handy bit about using TextMate (or BBEdit) for this task is that it will handle authentication and setting permissions for you.</p>
<p>Enter the following text into the file save it and close it, authenticating as needed:</p>
<pre>[mysqld]
bind-address = 127.0.0.1</pre>
<p>Thanks to my friend <a title="Show me all the blueprints" onclick="javascript:pageTracker._trackPageview ('/outbound/clarkware.com');" href="http://clarkware.com/cgi/blosxom">Mike Clark</a> for this tip.</p>
<p>If limiting access isn’t enough for you, you can read about setting a root access password for MySQL in <a onclick="javascript:pageTracker._trackPageview ('/outbound/dev.mysql.com');" href="http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html">this article</a>.</p>
<h3>Baking-In the MySQL Bindings</h3>
<p>You can gain some bigtime Rails-to-MySQL speed improvements by building the MySQL C bindings for Ruby.</p>
<p>If you have an Intel Mac, just run the following command (entering your password when prompted):</p>
<pre>sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</pre>
<p>If you have a <span class="caps">PPC</span> Mac (I hear some still exist), you’d enter:</p>
<pre>sudo env ARCHFLAGS="-arch ppc" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</pre>
<p>You’ll see a prompt asking you which gem to install:</p>
<pre>Select which gem to install for your platform (universal-darwin9.0)
 1. mysql 2.7.3 (mswin32)
 2. mysql 2.7.1 (mswin32)
 3. mysql 2.7 (ruby)
 4. mysql 2.6 (ruby)
 5. Skip this gem
 6. Cancel installation</pre>
<p>Pick the option closest to the top that ends in “(ruby)”. In the example above, we’d want to select option 3.</p>
<h3>Uninstalling MySQL</h3>
<p>In case you one day decide that you’d like to remove MySQL, it’s easy to do when building from source:</p>
<pre>cd ~/src/mysql-5.0.45
sudo make uninstall
sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist
sudo rm /Library/LaunchDaemons/com.mysql.mysqld.plist</pre>
<h3>That’s It</h3>
<p>So, you’re done. What are you waiting for? Go create the next Google or something.</p>
<p>Special thanks to <a onclick="javascript:pageTracker._trackPageview ('/outbound/www.therailsway.com');" href="http://www.therailsway.com/">Koz</a>, <a onclick="javascript:pageTracker._trackPageview ('/outbound/clarkware.com');" href="http://clarkware.com/cgi/bloxsom">Mike Clark</a>, <a onclick="javascript:pageTracker._trackPageview ('/outbound/ryanschwartz.net');" href="http://ryanschwartz.net/">Ryan Schwartz</a>, and <a onclick="javascript:pageTracker._trackPageview ('/outbound/railsenvy.com');" href="http://railsenvy.com/">Jason Seifer</a> for their tips and suggestions.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/01/07/installing-mysql-on-mac-os-x-tested-on-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with PHP 5 in Mac OS X 10.5 (Leopard)</title>
		<link>http://www.php-architect.com/blog/2008/01/07/working-with-php-5-in-mac-os-x-105-leopard/</link>
		<comments>http://www.php-architect.com/blog/2008/01/07/working-with-php-5-in-mac-os-x-105-leopard/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 13:35:12 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[leopard mac arabic os php php5 mysql enable developer t]]></category>

		<guid isPermaLink="false">http://www.abdelaliem.com/blog/?p=18</guid>
		<description><![CDATA[I found these steps very useful, hope you will too. Mac OS X is a great development platform for working with PHP. Leopard comes with Apache, PHP and many other development tools, such as subversion already installed. Leopard brings a much needed upgrade from Tiger&#8217;s tired PHP 4 to a very modern version of PHP [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I found these steps very useful, hope you will too.</p>
<p>Mac OS X is a great development platform for working with PHP. Leopard comes with Apache, PHP and many other development tools, such as subversion already installed. Leopard brings a much needed upgrade from Tiger&#8217;s tired PHP 4 to a very modern version of PHP 5.2.4. This is a guide for setting up a PHP development environment under 10.5 using the version of PHP that ships with leopard.</p>
<p>You may prefer to use one of the 3rd party distributions of PHP, such as <a href="http://www.mamp.info/en/index.php">MAMP</a>, <a href="http://www.apachefriends.org/en/xampp-macosx.html">XAMPP</a> or <a href="http://www.entropy.ch/software/macosx/php/">Marc Liyanage</a>.  This is a guide to using the version of PHP that comes with 10.5.</p>
<h3>Enable Developer Tools</h3>
<p>These steps may not be strictly necessary for this process, but I find it useful to do them.<br />
First, <a href="http://docs.info.apple.com/article.html?artnum=106290">enable your root password</a>.<br />
You may also want to install XCode Tools from your Leopard disk (or grab the latest from <a href="http://developer.apple.com/tools/">Apple developer tools</a>).  The tools are required is you are going to compile any extensions for PHP.</p>
<h3>Editing Configuration Files</h3>
<p>We will have to edit several configuration files that exist as part of the unixy underpinnings of OS X. I&#8217;m going to recommend the free text editor, <a href="http://www.barebones.com/products/textwrangler/">TextWrangler</a> for this purpose. Normally, the finder hides the configuration files from view. However, in the finder, you can use the &#8220;Goto Folder&#8230;&#8221; option under the &#8220;Go&#8221; menu to view these files. This option if available via command-shift-G. Actually, this option is available in any file open dialog in OS X via command-shift-G. In addition, Text Wrangler will allow you to browse these files with its &#8220;open hidden&#8230;&#8221; option. But, the much easier option is selecting &#8220;Open file by name&#8230;&#8221; (command-D) and just typing the full path and filename. To save many of these files, you will need to enter your root password. Be Careful.</p>
<h3>Enabling PHP</h3>
<p>PHP is installed in Mac OS X by default, but not enabled. To enable it, we must edit the apache 2 configuration file, which is located at <samp>/etc/apache2/httpd.conf</samp>.  Find the line which loads the PHP 5 module, which looks like this:<br />
<code><br />
#LoadModule php5_module        libexec/apache2/libphp5.so<br />
</code><br />
The line is currently commented out.  All we have to do is remove the comment symbol, <samp>#</samp>, so the line looks like this:<br />
<code><br />
LoadModule php5_module        libexec/apache2/libphp5.so<br />
</code><br />
Save.</p>
<h3>Starting Apache</h3>
<p>Go to the sharing panel in system preferences and enable &#8220;Web Sharing.&#8221;  This will start the apache server.<br />
<a href="http://www.procata.com/blog/wp-content/uploads/2007/10/web-sharing.png" rel="lightbox[22]" title="Sharing Panel"><img src="http://www.procata.com/blog/wp-content/uploads/2007/10/web-sharing.png" alt="Sharing Panel" /></a><br />
Another way to do this is to type the following in the Terminal application:<br />
<code><br />
sudo apachectl start<br />
</code><br />
You will be prompted to enter your root password. After that, your apache server should now be running. If you need to restart the server from the terminal, you can type this:<br />
<code><br />
sudo apachectl restart<br />
</code><br />
If you find this tedious to type, there is a script that you can download to do this later in this post.</p>
<h3>Visiting our Web Site</h3>
<p>Now, lets check our work. In the sharing panel, you can click on the URL under &#8220;Your computer&#8217;s website.&#8221; Alternatively, in the web browser, go to the url <a href="http://localhost/">http://localhost/</a>. localhost is a special name that means &#8220;My computer.&#8221; If your web server is working, you should see a page titled &#8220;Test Page for Apache Installation.&#8221; If you go to <a href="http://localhost/manual/">http://localhost/manual/</a>, you can read an Apache 2.2 manual, hosted from your own server.  But, this don&#8217;t tell you that PHP is working.<br />
For that, we&#8217;ll have to create a very simple php program.  Create a new file in TextWrangler and type the following:</p>
<pre class="php">
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/01/07/working-with-php-5-in-mac-os-x-105-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
