<?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>Ben Atkin&#039;s Self-Hosted Blog &#187; php</title>
	<atom:link href="http://benatkin.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://benatkin.com</link>
	<description>My true voice on the Internet.</description>
	<lastBuildDate>Wed, 23 May 2012 13:55:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>PHP and MySQL on Mac OS X Lion with Homebrew</title>
		<link>http://benatkin.com/2011/09/10/php-and-mysql-on-mac-os-x-lion-with-homebrew/</link>
		<comments>http://benatkin.com/2011/09/10/php-and-mysql-on-mac-os-x-lion-with-homebrew/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 04:32:39 +0000</pubDate>
		<dc:creator>Ben Atkin</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[localdev]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://benatkin.com/?p=865</guid>
		<description><![CDATA[I got PHP and MySQL working together on my MacBook Pro with Mac OS X Lion tonight. I&#8217;m using the MySQL server that I installed with Homebrew. Homebrew doesn&#8217;t come with Apache or PHP due to its policy of avoiding &#8230; <a href="http://benatkin.com/2011/09/10/php-and-mysql-on-mac-os-x-lion-with-homebrew/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got PHP and MySQL working together on my MacBook Pro with Mac OS X Lion tonight. I&#8217;m using the MySQL server that I installed with <a href="https://github.com/mxcl/homebrew">Homebrew</a>. Homebrew doesn&#8217;t come with Apache or PHP due to its policy of avoiding including packages that are already installed on OS X. Because of that, I&#8217;m using the included <em>Web Sharing</em>, which I enabled in the <em>Sharing</em> Preference Pane under System Preferences.</p>
<p>I&#8217;m posting what I did below. I found a <a href="http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/">more thorough guide</a> when I got stuck on a step. Please consider using that, as it covers much more, including getting PEAR set up.</p>
<p>Here are the steps that I remember taking, to get WordPress running locally:</p>
<ul>
<li>Install MySQL using Homebrew (<code>brew install mysql</code>)</li>
<li>Since I added something to my <code>/etc/apache2/httpd.conf</code> that caused Web Sharing to fail to start, I copied <code>/etc/apache2/original/httpd.conf</code> to <code>/etc/apache2/httpd.conf</code>, and that fixed it.</li>
<li>Turn on Web Sharing in the <em>Sharing</em> Preference Pane</li>
<li>Uncomment the line that starts with <code>LoadModule php5_module</code> in <code>/etc/httpd/httpd.conf</code>
</li>
<li>Since I didn&#8217;t want all of my files in <code>~/Sites</code>, I enabled redirects in my user php file, <code>/etc/apache2/users/bat.conf</code>, by adding <code>FollowSymlinks to the <em>Options</em>.</code>
</li>
<li>Add a symlink to the WordPress directory (<code>~/Sites/blog</code> in my case) and set up the database</li>
<li>Go to the directory in the browser (<code>http://localhost/~bat/blog/</code> in my case)</li>
<li>My database connection didn&#8217;t work despite my username, password, and hostname being correct. After some googling I <a href="http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/">found</a> that I needed to change all instances of <code>/var/mysql/mysql.sock</code> in <code>/etc/php.ini</code> to <code>/tmp/mysql.sock</code>
</li>
<li>Fix the WordPress site url in the database</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benatkin.com/2011/09/10/php-and-mysql-on-mac-os-x-lion-with-homebrew/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://benatkin.com/2009/07/16/438/</link>
		<comments>http://benatkin.com/2009/07/16/438/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 23:24:54 +0000</pubDate>
		<dc:creator>Ben Atkin</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[graphics programming]]></category>
		<category><![CDATA[microblog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://benatkin.com/weblog/?p=438</guid>
		<description><![CDATA[I&#8217;m going to experiment with doing microblog summaries and putting content in a directory. For now I&#8217;m putting them on twitter tagged with #blog, copying the content, and expanding them just a bit. The full articles will simply be directories &#8230; <a href="http://benatkin.com/2009/07/16/438/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><i>I&#8217;m going to experiment with doing microblog summaries and putting content in a directory. For now I&#8217;m putting them on twitter tagged with #blog, copying the content, and expanding them just a bit. The full articles will simply be directories containing an index.php or index.html file. That way I can play around with the layout of individual posts, or make the pages dirt simple if I so desire.</i></p>
<p><a href="http://benatkin.com/slimtimer-fluid-icon/"><span style="font-size: 140%">Image editing with php &amp; GD is simple and fun. I removed text from a SlimTimer Fluid icon I found on flickr with it.</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://benatkin.com/2009/07/16/438/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

