Wasn't sure whether to re post here or start a new thread, also there is a similar thread (same problems) over at
software/server
My httpd.conf had no mention of php anywhere so I have added
LoadModule php5_module /usr/lib/apache-extramodules/mod_php5.so
and
AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-php-source .phps
I also have added index.php to list under the heading
<ifModule mod_dir.c>
DirectoryIndex
</IfModule>
as that was suggested in a tutorial
I have also tried using
<IfModule mod_php5.so>
AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-php-source .phps
</IfModule>
AND
AddType application/x-httpd-php5 .php .phtml .html
AddType application/x-httpd-php5-source .phps
Nothing seems to work, I have been stopping and restarting Apache after each change. The furthest I have got was firefox asking what I wanted index.php opened with, but I can't remember which version of the httpd.conf I had for that.
There seem to be a lot tutorials out there none of those I have followed result in working php. Most of them go from not having Apache/Php installed so I wonder if this is my problem. I have a fresh install of Mandriva 2006 and selected the Apache and php packages.
Any help very welcome. Thanks