# vi /etc/httpd/conf.d/php.conf
~省略~
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php .html ←追加
AddType text/html .php
I also added an additional “AddType application/x-httpd-php .html” to my httpd.conf file so that inline php would work with files ending with an extension of “.html” on my server. http://php.net/manual/ja/install.windows.apache2.php#80994
コメント
Xamppではどうするのかな?Xampp5.6.3でローカル環境の場合を教えてくれるとありがたい
中村さん
コメントありがとうございます。
私のほうではXAMP環境は用意していないので参考になるかと思うWebページを紹介させて頂きます。
上記によると
「AddType application/x-httpd-php .html」
の記述をhttpd.conf(もしくはIncludeされている設定ファイル)に追記するといいと書かれていました。
お試しいただけますでしょうか。