<?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; apache</title>
	<atom:link href="http://sampierson.com/blog/tag/apache/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>Apache server redirects using MacOS Server Admin</title>
		<link>http://sampierson.com/blog/system-administration/apache-server-redirects-using-macos-server-admin/</link>
		<comments>http://sampierson.com/blog/system-administration/apache-server-redirects-using-macos-server-admin/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 20:16:09 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[MacOS]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=347</guid>
		<description><![CDATA[Note to self before I delete this entry.
This will redirect an entire site:
Server Admin -&#62; Your server -&#62; Web -&#62; Your site -&#62; Aliases -&#62; Url Aliases and Redirects
Type = RedirectMatch
Pattern = .*
Path = http://example.com
]]></description>
			<content:encoded><![CDATA[<p>Note to self before I delete this entry.<br />
This will redirect an entire site:</p>
<p>Server Admin -&gt; <em>Your server</em> -&gt; Web -&gt; <em>Your site</em> -&gt; Aliases -&gt; Url Aliases and Redirects</p>
<p>Type = RedirectMatch<br />
Pattern = .*<br />
Path = http://example.com</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/apache-server-redirects-using-macos-server-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ServerAdmin wipes changes to apache2/site/* files</title>
		<link>http://sampierson.com/blog/system-administration/serveradmin-wipes-changes-to-apache2site-files/</link>
		<comments>http://sampierson.com/blog/system-administration/serveradmin-wipes-changes-to-apache2site-files/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 21:49:37 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=196</guid>
		<description><![CDATA[If you change the configuration for any site using the Mac OS X Server Admin tool, it will rewrite every single site file in the /etc/apache2/site/ folder.   Do not change these by hand if you use this tool.
This is somewhat braindead as for example to use pretty permalinks in Wordpress you need AllowOverride FileInfo [...]]]></description>
			<content:encoded><![CDATA[<p>If you change the configuration for <strong>any</strong> site using the Mac OS X Server Admin tool, it will rewrite every single site file in the /etc/apache2/site/ folder.   Do not change these by hand if you use this tool.</p>
<p>This is somewhat braindead as for example to use <a href="http://codex.wordpress.org/Using_Permalinks">pretty permalinks in Wordpress</a> you need AllowOverride FileInfo for that &lt;Directory&gt;.  However the only choice that Server Admin gives you is AllowOverride All.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/serveradmin-wipes-changes-to-apache2site-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Installing mod_rails in Apache2</title>
		<link>http://sampierson.com/blog/system-administration/installing-mod_rails-in-apache2/</link>
		<comments>http://sampierson.com/blog/system-administration/installing-mod_rails-in-apache2/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 23:00:00 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">urn:uuid:459c8e16-fc07-42de-aada-e06d417a6dcf</guid>
		<description><![CDATA[Phusion Passenger, a.k.a. mod_rails, is a Ruby on Rails server integrated tightly with apache.  Here is what I did to get it working on Mac OS X.
 Make sure you have gcc &#8211; on my Mac OS X system, the easiest way to get this is to install XCode tools.

sudo gem install passenger

Per the install instructions [...]]]></description>
			<content:encoded><![CDATA[<p>Phusion Passenger, a.k.a. mod_rails, is a Ruby on Rails server integrated tightly with apache.  Here is what I did to get it working on Mac OS X.</p>
<p> Make sure you have gcc &#8211; on my Mac OS X system, the easiest way to get this is to install XCode tools.</p>

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

<p>Per the install instructions for Passenger, edit httpd.conf and add the following.  For neatness’ sake, I added the IfModule statements:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so
# Adding declarations for mod_rails (a.k.a. Passenger).
&lt;IfModule mod_passenger.c&gt;
        PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.0.3
        PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
&lt;/IfModule&gt;</pre></div></div>

<p>Then to get mod_rails to notice your rails application, inside the VirtualServer statement for your site, if you want the whole site to be served by Rails, just point the DocumentRoot at the ‘public’ folder of your Rails application.  If you want your Rails application to be at a sub-URI of the main site, symlink that sub-URI to your Rails application (which can be completely outside the site content folders), then add the following for that URI (e.g. /blog):</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">RailsBaseURI /blog</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/installing-mod_rails-in-apache2/feed/</wfw:commentRss>
		<slash:comments>1</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>
		<item>
		<title>Apache &#8220;can&#8217;t reliably establish hostname&#8221;</title>
		<link>http://sampierson.com/blog/system-administration/apache-cant-reliably-establish-hostname/</link>
		<comments>http://sampierson.com/blog/system-administration/apache-cant-reliably-establish-hostname/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 21:13:00 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">urn:uuid:8b8dcbdd-5696-4375-ac18-4481e685a2e5</guid>
		<description><![CDATA[To shut up apache when it’s complaining about &#8220;cant reliably establish hostname&#8221;, the response from /bin/hostname must match the first entry on the 127.0.0.1 line in /etc/hosts.
]]></description>
			<content:encoded><![CDATA[<p>To shut up apache when it’s complaining about &#8220;cant reliably establish hostname&#8221;, the response from /bin/hostname must match the <strong>first</strong> entry on the 127.0.0.1 line in /etc/hosts.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/apache-cant-reliably-establish-hostname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
