To activate php support in html files

I am using this “tutorial” (i put only steps without descriptions) .but it still not work for me :frowning:

cd /usr/local/hestia/data/templates/web/apache2/php-fpm/
sudo nano default.tpl
sudo nano default.stpl
    <Directory %docroot%>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
        Require all granted
	AddType application/x-httpd-php .html .htm
    </Directory>
sudo service apache2 restart
cd /usr/local/hestia/data/templates/web/nginx/php-fpm/

sudo nano default.tpl
sudo nano default.stpl

location ~ \.html$ {
    fastcgi_pass 127.0.0.1:9000; 
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

sudo service nginx restart

And on view source i still see this :frowning:

<!-- test.html -->
<?php
phpinfo();
?>

So … i found way how to do that on forum: PHP in HTML (again, but for 1 site only) - #2 by sahsanu