Just a quick note on getting PHP5 to work with Apache 2.2: make sure the LoadModule
and <IfModule>
sections are in place. The LoadModule
line should be added when you install using the ports collection but I was missing the <IfModule>
section but after manually adding this I was fine:
[code]
DirectoryIndex index.php index.html
Addtype application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
It’s sort of described here
but it’s a little bit out of date it seems. You don’t need the AddModule line anymore and can just reference php5_module directly.