Aug 252008

A few short notes about upgrading to Apache 2.2 from Apache 1.3.

I did the install. Then found all websites gave this:


You don’t have permission to access /commit.php
on this server.

The issue there was this set of standard directives in /usr/local/etc/apache22/httpd.conf:

<Directory />
    AllowOverride None
    Order deny,allow
    Deny from all

I changed the last line from “Deny from all” to “Allow from all”.

I recomplied php5 for Apache 2.2:

portupgrade -f php5

I then had to add PHP5 directives into httpd.conf with these lines:

LoadModule php5_module        libexec/apache22/
AddModule mod_php5.c
<IfModule mod_php5.c>
   AddType application/x-httpd-php .php .php3
   AddType application/x-httpd-php-source .phps

I’m pretty sure I don’t need the .php3, but I’m not about to play around with that now.

I had a problem that set me back for several hours. I finally had to reconfigure my virtual hosts to look like this (shown in severely abbreviated form):



        Redirect        permanent /


Now I think I have everything running…

Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive