/etc/html/conf.d/php.info

/etc/mime.typesをまずみること

[root@cent5-64b-40 conf.d]# pwd
/etc/httpd/conf.d
[root@cent5-64b-40 conf.d]# cat php.conf 
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  # Use of the "ZTS" build with worker is experimental, and no shared
  # modules are supported.
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .html
[root@cent5-64b-40 conf.d]# 
[root@cent5-64b-40 html]# cat phpinfo.html 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>Example</title>
    </head>
    <body>

        <?php
            phpinfo();
        ?>

     </body>
</html>
[root@cent5-64b-40 html]# 

大前提で

AddType application/x-httpd-cgi .cgi

をどこかにいれないと前提から崩れるかな?

たとえば.htaccessの最後の行の後ろで改行しておくのを忘れないよう