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 </Directory>
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/libphp5.so AddModule mod_php5.c <IfModule mod_php5.c> AddType application/x-httpd-php .php .php3 AddType application/x-httpd-php-source .phps </IfModule>
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):
NameVirtualHost 188.8.131.52:80 NameVirtualHost 184.108.40.206:443 LISTEN 220.127.116.11:443 <VirtualHost 18.104.22.168:80> ServerName papers.bsdcan.org Redirect permanent / https://papers.bsdcan.org/ </VirtualHost> <VirtualHost 22.214.171.124:443> ServerName papers.bsdcan.org </VirtualHost>
Now I think I have everything running…