'PHP is installed and running but not loading on page [closed]

I have recently installed Apache, MySQL and PHP, but the page is not loading the PHP code, it's interpreted as HTML comment. All services are enabled but haven't got a clue what's going on. Obviously is not possible to reproduce my localhost environment.

I am on Linux Mint 20 and latest Apache/MySQL/PHP.

Does anyone know how to make PHP work?

enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source