<?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>Sam Pierson&#039;s Blog &#187; php</title>
	<atom:link href="http://sampierson.com/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://sampierson.com/blog</link>
	<description>Augmentation of an Imperfect Memory.</description>
	<lastBuildDate>Wed, 21 Jul 2010 01:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting PHP working in Apache2 on Mac OS X Leopard</title>
		<link>http://sampierson.com/blog/system-administration/getting-php-working-in-mac-os-x-leopard/</link>
		<comments>http://sampierson.com/blog/system-administration/getting-php-working-in-mac-os-x-leopard/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 16:42:38 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=97</guid>
		<description><![CDATA[As with OS X Leopard Server, the OS X Leopard standard OS is missing Apache config statements to enable PHP support.  Of course with standard Leopard, you don&#8217;t get the fancy Server Admin tool to let us fix it via a GUI, so we do it by hand:
In /etc/apache2/httpd.conf:
Uncomment the php LoadModule statement:

LoadModule php5_module [...]]]></description>
			<content:encoded><![CDATA[<p>As with OS X Leopard Server, the OS X Leopard standard OS is missing Apache config statements to enable PHP support.  Of course with standard Leopard, you don&#8217;t get the fancy Server Admin tool to let us fix it via a GUI, so we do it by hand:</p>
<p>In /etc/apache2/httpd.conf:</p>
<p>Uncomment the php LoadModule statement:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">LoadModule php5_module libexec/apache2/libphp5.so</pre></div></div>

<p>Then within the &lt;IfModule mime_module&gt; section, add:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps
AddType application/x-httpd-php3 php3
AddHandler php5-script php</pre></div></div>

<p>Start or restart apache via the check box System Preferences -&gt; Sharing -&gt; Web Sharing</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/getting-php-working-in-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting PHP working in Apache2 on Mac OS X Server</title>
		<link>http://sampierson.com/blog/system-administration/getting-php-working-in-apache2-on-mac-os-x-server/</link>
		<comments>http://sampierson.com/blog/system-administration/getting-php-working-in-apache2-on-mac-os-x-server/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 18:00:00 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">urn:uuid:c451c870-5b9d-4de2-9b59-ffe39a37928e</guid>
		<description><![CDATA[In OS X Leopard, out of the box (at least on the System I got access to) Apache2 is missing an AddHandler statement for PHP, so PHP won’t work if you just enable the module.  Here is how to fix that through Server Admin:
Check  -&#62; Web -&#62; Settings -&#62; Modules, php5_module is enabled.
In Settings -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>In OS X Leopard, out of the box (at least on the System I got access to) Apache2 is missing an AddHandler statement for PHP, so PHP won’t work if you just enable the module.  Here is how to fix that through Server Admin:</p>
<p>Check  -&gt; Web -&gt; Settings -&gt; Modules, php5_module is enabled.</p>
<p>In Settings -&gt; MIME Types, check the following is present:</p>

<div class="wp_syntax"><div class="code"><pre class="foo" style="font-family:monospace;">application/x-httpd-php      php</pre></div></div>

<p>In Settings -&gt; MIME Types -&gt; Content Handlers, add the following:</p>

<div class="wp_syntax"><div class="code"><pre class="foo" style="font-family:monospace;">php5-script      php</pre></div></div>

<p>The resulting PHP entries in /etc/apache2/httpd.conf should look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">$ grep php httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
AddHandler php5-script php
AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps
AddType application/x-httpd-php3 php3</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/getting-php-working-in-apache2-on-mac-os-x-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
