To execute ‘php’ code inside ‘html’ or ‘htm’,
for ‘apache version 2.4.23’
Go to ‘/etc/apache2/mods-enabled’
edit ‘@mime.conf’
Go to end of file and
add the following line:
"AddType application/x-httpd-php .html .htm"
BEFORE tag ‘< /ifModules >’
verified and tested with ‘apache 2.4.23’
and ‘php 5.6.17-1’
under ‘debian’