<?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>hocuspokus &#187; apache</title>
	<atom:link href="http://hocuspokus.net/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://hocuspokus.net</link>
	<description>the life and times of a code monkey</description>
	<lastBuildDate>Tue, 01 Jun 2010 16:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Building Apache and Mod Perl on Mac OS&#160;X</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F03%2Fbuilding-apache-and-mod-perl-on-mac-os-x&amp;seed_title=Building+Apache+and+Mod+Perl+on+Mac+OS%26%23160%3BX</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F03%2Fbuilding-apache-and-mod-perl-on-mac-os-x&amp;seed_title=Building+Apache+and+Mod+Perl+on+Mac+OS%26%23160%3BX#comments</comments>
		<pubDate>Sat, 07 Mar 2009 09:45:16 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=331</guid>
		<description><![CDATA[I&#8217;ve finally had my work laptop upgraded to Leopard!!! As such, I&#8217;ve just spent the last couple of days getting things all set-up nicely so that I can get on with my work. Most of the work that I do &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F03%2Fbuilding-apache-and-mod-perl-on-mac-os-x&#38;seed_title=Building+Apache+and+Mod+Perl+on+Mac+OS%26%23160%3BX">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally had my work laptop upgraded to Leopard!!! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>

<p>As such, I&#8217;ve just spent the last couple of days getting things all set-up nicely so that I can get on with my work.  Most of the work that I do is web development orientated, and mainly using <a href="http://www.perl.org/">Perl</a> and <a href="http://www.catalystframework.org/">Catalyst</a>, so an install of Apache and mod_perl is needed.</p>

<p>OS X does come with a complete install of Apache (even with mod_perl!) out of the box and ready to go (info on using this set-up can be found <a href="http://bixsolutions.net/forum/thread-11.html">here</a>), but I&#8217;m also working on another project that may involve the use of <a href="http://www.aptana.com/jaxer">Jaxer</a>, and this requires a newer build of Apache than the one shipped with Leopard. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-sad.png' alt=':(' class='wp-smiley' /> </p>

<p>Thankfully building these tools isn&#8217;t too complicated, here&#8217;s a quick dump of my notes on getting this done.  Note, I&#8217;m installing them into <a href="http://hivelogic.com/articles/2005/11/using_usr_local">/usr/local</a> so that I don&#8217;t mess with any of the OS X internals that I shouldn&#8217;t be touching - this is completely removable.</p>

<p>First, make a work area for building:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chgrp</span> admin <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">775</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src</pre></div></div>


<h4>Apache</h4>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">curl <span style="color: #660033;">-O</span> http:<span style="color: #000000; font-weight: bold;">//</span>apache.mirror.infiniteconflict.com<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>httpd-2.2.11.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf httpd-2.2.11.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> httpd-2.2.11</pre></div></div>


<p>Now here&#8217;s the big one - the Apache configuration.  This compiles a heap of modules I probably don&#8217;t need, but it&#8217;s nice to have them there in case I do ever need them&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">CFLAGS</span>=<span style="color: #ff0000;">&quot;-O3&quot;</span> <span style="color: #007800;">CXXFLAGS</span>=<span style="color: #ff0000;">&quot;-O3&quot;</span> \
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2 \
<span style="color: #660033;">--enable-autoindex</span> \
<span style="color: #660033;">--enable-cache</span> \
<span style="color: #660033;">--enable-cgi</span> \
<span style="color: #660033;">--enable-deflate</span> \
<span style="color: #660033;">--enable-dir</span> \
--enable-disk_cache \
<span style="color: #660033;">--enable-fastcgi</span> \
--enable-file_cache \
<span style="color: #660033;">--enable-headers</span> \
<span style="color: #660033;">--enable-include</span> \
<span style="color: #660033;">--enable-info</span> \
--enable-log_config \
--enable-log_forensic \
<span style="color: #660033;">--enable-logio</span> \
--enable-mem_cache \
<span style="color: #660033;">--enable-mime</span> \
--enable-mime_magic \
<span style="color: #660033;">--enable-negotiation</span> \
<span style="color: #660033;">--enable-perl</span> \
<span style="color: #660033;">--enable-proxy</span> \
<span style="color: #660033;">--enable-proxy-balancer</span> \
<span style="color: #660033;">--enable-proxy-http</span> \
<span style="color: #660033;">--enable-rewrite</span> \
<span style="color: #660033;">--enable-speling</span> \
<span style="color: #660033;">--enable-status</span> \
<span style="color: #660033;">--enable-suexec</span> \
<span style="color: #660033;">--enable-userdir</span> \
<span style="color: #660033;">--enable-usertrack</span> \
<span style="color: #660033;">--enable-version</span> \
--enable-vhost_alias \
<span style="color: #660033;">--enable-so</span> \
<span style="color: #660033;">--enable-mods-shared</span>=all</pre></div></div>


<p>Then the standard make and install:</p>


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


<p>Now to add some configuration so that Apache starts on system boot, first we need to create a startup script:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>StartupItems<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> Apache
<span style="color: #7a0874; font-weight: bold;">cd</span> Apache
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> Apache
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x Apache
mate Apache</pre></div></div>


<p>Paste this content into the file:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #666666; font-style: italic;">##</span>
<span style="color: #666666; font-style: italic;"># Apache HTTP Server</span>
<span style="color: #666666; font-style: italic;">##</span>
&nbsp;
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.common
&nbsp;
StartService <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	ConsoleMessage <span style="color: #ff0000;">&quot;Starting Apache web server&quot;</span>
	<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl start
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
StopService <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	ConsoleMessage <span style="color: #ff0000;">&quot;Stopping Apache web server&quot;</span>
	<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl stop
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
RestartService <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	ConsoleMessage <span style="color: #ff0000;">&quot;Restarting Apache web server&quot;</span>
	<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl restart
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
RunService <span style="color: #ff0000;">&quot;$1&quot;</span></pre></div></div>


<p>Then a configuration file:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> StartupParameters.plist
mate StartupParameters.plist</pre></div></div>


<p>Paste this content into the file:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span>
  Description     = <span style="color: #ff0000;">&quot;Apache web server&quot;</span>;
  Provides        = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;Web Server&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
  Requires        = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;DirectoryServices&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
  Uses            = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;Disks&quot;</span>,<span style="color: #ff0000;">&quot;Network Time&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
  OrderPreference = <span style="color: #ff0000;">&quot;None&quot;</span>;
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>


<p>Then reboot and open up <a href="http://localhost">http://localhost</a> to make sure things have worked.</p>

<h4>Mod Perl</h4>

<p>This is a lot more straight forward:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
curl <span style="color: #660033;">-O</span> http:<span style="color: #000000; font-weight: bold;">//</span>perl.apache.org<span style="color: #000000; font-weight: bold;">/</span>dist<span style="color: #000000; font-weight: bold;">/</span>mod_perl-<span style="color: #000000;">2.0</span>-current.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf mod_perl-<span style="color: #000000;">2.0</span>-current.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> mod_perl-2.0.4
<span style="color: #c20cb9; font-weight: bold;">perl</span> Makefile.PL <span style="color: #007800;">MP_AP_PREFIX</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #7a0874; font-weight: bold;">test</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>


<p>Now all you have to do is add the following line to your Apache httpd.conf (/usr/local/apache2/conf/httpd.conf) with all of the LoadModule entries:</p>


<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">LoadModule perl_module modules/mod_perl.so</pre></div></div>


<p>All done! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F03%2Fbuilding-apache-and-mod-perl-on-mac-os-x&amp;seed_title=Building+Apache+and+Mod+Perl+on+Mac+OS%26%23160%3BX/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Install phpPgAdmin on Ubuntu&#160;7.10</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F11%2Finstall-phppgadmin-on-ubuntu-710&amp;seed_title=Install+phpPgAdmin+on+Ubuntu%26%23160%3B7.10</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F11%2Finstall-phppgadmin-on-ubuntu-710&amp;seed_title=Install+phpPgAdmin+on+Ubuntu%26%23160%3B7.10#comments</comments>
		<pubDate>Wed, 14 Nov 2007 20:14:32 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2007/11/14/install-phppgadmin-on-ubuntu-710/</guid>
		<description><![CDATA[Update: These instructions have been tested and work fine in the latest version of Ubuntu (8.04, Hardy Heron). phpPgAdmin is a web based GUI for administrating a PostgreSQL database server. Here&#8217;s some quick notes on getting it installed easily on &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F11%2Finstall-phppgadmin-on-ubuntu-710&#38;seed_title=Install+phpPgAdmin+on+Ubuntu%26%23160%3B7.10">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="alert"><strong>Update:</strong> These instructions have been tested and work fine in the latest version of Ubuntu (8.04, Hardy Heron).</p>

<p><a href="http://www.phppgadmin.org/">phpPgAdmin</a> is a web based GUI for administrating a <a href="http://www.postgresql.org/">PostgreSQL</a> database server.</p>

<p>Here&#8217;s some quick notes on getting it installed easily on Ubuntu 7.10&#8230;</p>

<p>In the terminal enter the following:</p>

<pre><code>$ sudo apt-get install phppgadmin
</code></pre>

<p>This will set up and install all of the phpPgAdmin packages.  It will also set-up and configure Apache and php5 for you too if you haven&#8217;t installed these already.</p>

<p>Next we need to create a symlink to phpPgAdmin so that Apache can find it:</p>

<pre><code>$ sudo ln -s /etc/phppgadmin/apache.conf /etc/apache2/conf.d/phppgadmin.conf
</code></pre>

<p>Now if you navigate to <a href="http://localhost/phppgadmin">http://localhost/phppgadmin</a> you should be greeted with the phpPgAdmin screen.  If your user account has a PostgreSQL account however, you will be logged in automagically.</p>

<p>Optionally, if you would like to be able to use the phpPgAdmin interface as the default &#8216;postgres&#8217; administration account,<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> you will need to do the following<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup>&#8230;</p>

<pre><code>$ sudo gedit /usr/share/phppgadmin/conf/config.inc.php
</code></pre>

<p>Now find and change the following line</p>

<pre><code>$conf['extra_login_security'] = true;
</code></pre>

<p>to</p>

<pre><code>$conf['extra_login_security'] = false;
</code></pre>

<p>Save and close gedit.  Now all you need to do is restart Apache.</p>

<pre><code>$ sudo /etc/init.d/apache2 reload
</code></pre>

<p>Now if you head on over to <a href="http://localhost/phppgadmin">http://localhost/phppgadmin</a> all should be ready for you.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>I am assuming here that you have set-up your PostgreSQL server using my <a href="http://hocuspokus.net/2007/11/05/install-posgresql-on-ubuntu-710/">set-up instructions</a> and therefore have a password protected &#8216;postgres&#8217; account and that logins require passwords.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:2">
<p>Please make sure you have read the above footnote and understand the security implications of allowing this type of access to your database server - if you have not secured your administration accounts, do it now!&#160;<a href="#fnref:2" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F11%2Finstall-phppgadmin-on-ubuntu-710&amp;seed_title=Install+phpPgAdmin+on+Ubuntu%26%23160%3B7.10/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Installing Apache and PHP&#160;Troubles</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F11%2Finstalling-apache-and-php-troubles&amp;seed_title=Installing+Apache+and+PHP%26%23160%3BTroubles</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F11%2Finstalling-apache-and-php-troubles&amp;seed_title=Installing+Apache+and+PHP%26%23160%3BTroubles#comments</comments>
		<pubDate>Tue, 13 Nov 2007 21:29:18 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2007/11/13/installing-apache-and-php-troubles/</guid>
		<description><![CDATA[I just recently set Apache up on my home server (more on the server at some point in the future), but I was having problems serving up php pages. Every time I tried to access a php based page, Firefox &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F11%2Finstalling-apache-and-php-troubles&#38;seed_title=Installing+Apache+and+PHP%26%23160%3BTroubles">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just recently set Apache up on my home server (more on the server at some point in the future), but I was having problems serving up php pages.  Every time I tried to access a php based page, Firefox came up asking if I wanted to download a &#8216;.PHTML&#8217; file!!! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-sad.png' alt=':(' class='wp-smiley' /> </p>

<p>Thankfully the answer (like most things with Ubuntu) was found on the <a href="http://ubuntuforums.org/showthread.php?t=209120">Ubuntu Forums</a>&#8230;</p>

<p>Simply edit the file <code>/etc/apache2/apache2.conf</code> by adding the following line:</p>

<pre><code>AddType application/x-httpd-php .php .phtml
</code></pre>

<p>Now php files should be handled by the server in the way that they were intended.</p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F11%2Finstalling-apache-and-php-troubles&amp;seed_title=Installing+Apache+and+PHP%26%23160%3BTroubles/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->