2016-03-03 Apache htmlファイルで、<?php ?>が動かない 環境 CentOS Linux release 7.0.1406 (Core) Apache/2.4.6 (CentOS) 原因と対策 htmlファイル上でphpが実行可能な設定がされていないため、 <?php include("../include.html"); ?>でinclude.htmlがインクルードされなかった。 Apacheのconfに下記の2行を追加する AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .html .htm 参考:htmlファイルでもphpを実行させる - 3割の働きアリ