I have an apache httpd 2.2 installation on windows 8 (using the installer, installed to C:/Program Files (x86)/Apache Software Foundation/Apache2.2) and a php 5.2 installation (using the .zip, installed to C:/php). None my php files are parsing - they just show up as plain text.
<?php
// Stop PHP from killing itself
set_time_limit(0);
// Log error messages
ini_set('display_errors', 'On');
ini_set('log_errors', 'true');
ini_set('error_log', 'error_log');
...etc.
My httpd.conf has all the necessary lines (I think)
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
(and at the bottom:)
PHPIniDir "C:/php"
LoadModule php5_module "C:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
And just to be safe, this is in mime.types:
application/x-httpd-php php
application/x-httpd-php-source phps
I've also edited the php.ini (Only the extension_dir though) properly (I think). What am I missing?