<?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>Haig Armen &#187; open Source</title>
	<atom:link href="http://www.haigarmen.com/tag/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haigarmen.com</link>
	<description>a play by play commentary</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:54:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Install Apache/PHP/MySQL on Snow Leopard</title>
		<link>http://www.haigarmen.com/install-apachephpmysql-on-snow-leopard/</link>
		<comments>http://www.haigarmen.com/install-apachephpmysql-on-snow-leopard/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 06:19:22 +0000</pubDate>
		<dc:creator>Haig</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[open Source]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.haigarmen.com/?p=104</guid>
		<description><![CDATA[If you design &#038; develop websites and use a mac you&#8217;ll most definitely need to test code locally. A large percentage of today&#8217;s open source content management systems are built on Apache, PHP, MySQL and there are two common ways to make those three things work in Os X. The first method is by using [...]]]></description>
			<content:encoded><![CDATA[<p>If you design &#038; develop websites and use a mac you&#8217;ll most definitely need to test code locally. A large percentage of today&#8217;s open source content management systems are built on Apache, PHP, MySQL and there are two common ways to make those three things work in Os X.</p>
<p>The first method is by using MAMP, which a lot of people do but most of the code ninjas I know all insist on running the versions of Apache and PHP that come with Os X and installing MySQL by hand. Here&#8217;s how to do it:</p>
<p><P><strong>1. Apache</strong><br />
Start Apache</P><br />
<code>sudo apachectl start</code></p>
<p><P>Check to see if it&#8217;s working: <a href="http://localhost/">http://localhost/</a></P></p>
<p><strong>2. PHP</strong></p>
<p>
In /etc/apache2/httpd.conf, uncomment this line:</P><br />
<code>LoadModule php5_module        libexec/apache2/libphp5.so</code></p>
<p><P>Restart Apache</P><br />
<code>sudo apachectl restart</code></p>
<p><P>Fix a warning appearing in phpinfo()<br />
Create /etc/php.ini and make it writable</P><br />
<code>cd /etc<br />
sudo cp php.ini.default php.ini<br />
sudo chmod 666 php.ini<br />
</code></p>
<p><P>In php.ini, find this line:</P><br />
;date.timezone =</p>
<p><P>Uncomment it and insert your time zone (http://php.net/manual/en/timezones.php)</P><br />
<code>date.timezone =America/Vancouver</code></p>
<p><P>Restart Apache</P><br />
<code>sudo apachectl restart</code></p>
<p><strong>3. MySQL</strong><br />
<P><a href="http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg">Download the MySQL package</a> for Mac OS X.5 (32 or 64 bits depending on your machine)</P><br />
<P><br />
Install everything in the package in this order: mysql, the startup item, the preference pane.</P><br />
Start MySQL in the preference pane.</p>
<p><P>Test it&#8217;s working:</P><br />
<code>/usr/local/mysql/bin/mysql</code><br />
<P><br />
Fix mysql.sock location in php.ini<br />
In /etc/php.ini, replace the three occurences of /var/mysql/mysql.sock by /tmp/mysql.sock<br />
</P><br />
<code>pdo_mysql.default_socket=/tmp/mysql.sock<br />
mysql.default_socket = /tmp/mysql.sock<br />
mysqli.default_socket = /tmp/mysql.sock<br />
</code></p>
<p><P>Restart Apache</P><br />
<code>sudo apachectl restart</code></p>
<p><strong>Activate PHP short tags</strong><br />
<P>In /etc/php.ini, under Language Options, change</P><br />
<code>short_open_tag = On</code></p>
<p><P>Restart Apache</P><br />
<code>sudo apachectl restart</code><br />
<BR></p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/install-apachephpmysql-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Rails on Leopard</title>
		<link>http://www.haigarmen.com/installing-rails-on-leopard/</link>
		<comments>http://www.haigarmen.com/installing-rails-on-leopard/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 17:53:53 +0000</pubDate>
		<dc:creator>Haig</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[open Source]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[RubyOnRails]]></category>

		<guid isPermaLink="false">http://blog.haigarmen.com2007/01/21/and-one-more-posting/</guid>
		<description><![CDATA[I&#8217;ve been working with RubyOnRails for about a year now. Now that I&#8217;ve got a new MacBookPro I&#8217;ve got to reinstall Rails on Leopard. Although there&#8217;s a fair bit online about the subject it&#8217;s still a pretty counter intuitive process for designer types like myself. Getting answers once you hit a barrier can be difficult. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with <a href="http://www.rubyonrails.org/">RubyOnRails</a> for about a year now. Now that I&#8217;ve got a new MacBookPro I&#8217;ve got to reinstall Rails on Leopard. Although there&#8217;s a fair bit online about the subject it&#8217;s still a pretty counter intuitive process for designer types like myself.<br />
<span id="more-16"></span><br />
Getting answers once you hit a barrier can be difficult. Programmers are sometimes the worse people that you could possibly ask about this stuff. Most don&#8217;t seem to want to share their &#8216;open source&#8217; knowledge and the ones that do are willing to share aren&#8217;t the teaching types. Of course, the best place to look for answers is usually google and an account at <a href="http://www.lynda.com">Lynda.com</a>.</p>
<p>Installing Rails on Leopard was easier than on Panther. Leopard actually comes with PHP, MySQLite &#038; Rails and just needs some configuring.</p>
<p>A good place to start is here:<br />
<a href="http://developer.apple.com/tools/developonrailsleopard.html">http://developer.apple.com/tools/developonrailsleopard.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/installing-rails-on-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

