argh, just realised that file is only partial config so I changed the httpd.conf to include that 'so called' broken config and when i do a 'httpd -t' i now get the real error message below :
Syntax error on line 30 of /etc/httpd/conf.d/php.conf:
Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration
So inside php.conf I have :
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#LoadModule php4_module modules/libphp4.so
LoadModule php5_module /home/httpd/libexec/libphp5.so
# Use for PHP 4.x
#AddHandler php-script php
# Cause the PHP interpreter handle files with a .php extension.
# Ref: http://bugs.php.net/bug.php?id=22881
# Since 4.3.2RC the default Apache 2 sapi is the apache2handler and is no
# longer filter based. Therefor you should use
#AddType application/x-httpd-php php
#AddType application/x-httpd-php-source phps
# Add index.php to the list of files that will be served as directory
So i don't know why it's complaining about that. Is it possible that the Include conf/*.conf line in the main httpd.conf is in a bad spot which is loading before a number of required modules are not loaded???
I might just move the line down a fair bit and see what happens........