Calling php from html

Hi,
before migrating to new control panel I had webpage with many php sections inside.
Now after migration even simplest index.html with following content doesn’t work (doesn’t execute php). How to bring back behavior of wepages as on old control panel?

<?php echo "My first PHP script!"; ?>

Regards

Tags are being cut by forum engine, hope picture would work

Having the same problem after migrating… Hope for a fix :slight_smile:

The same issue discussed here

This is similar but not the same, this other thread is from 2013 where new CPanel hadn’t existed yet. Someone was using Website builder that was adding comment in php tags like that: <!–?php…
On old CPanel calling php from html file worked even yesterday before I migrated…

you just need to add this line to .htaccess file:

AddType application/x-httpd-php .php .html .htm

tested and it works

1 Like

Yes it works, thank you

1 Like