2017-11-08
拡張子が.htmlのファイルでPHPを動作させる
参考URL
やったこと
- httpd.confに許可の文言を追記する
やりかた
# vi /etc/httpd/conf/httpd.conf
- 末尾に以下を追記
<Files ~ "\.html$"> AddType application/x-httpd-php .php .html </Files>
# systemctl restart httpd
# vi /etc/httpd/conf/httpd.conf
<Files ~ "\.html$"> AddType application/x-httpd-php .php .html </Files>
# systemctl restart httpd