'PHP not working in Firefox on ubuntu 20.04

In firefox I repeatedly tried to get PHP working, but no luck

My code is as follows:

<!DOCTYPE html>
    <html>
        <body>

            <h1>My first PHP page</h1>

            <?php
                echo "Hello World!";
            ?>

        </body>
    </html> 

I used PHP format, but it wanted to save the script again. XML threw a boatload of errors. HTML did not show the PHP



Sources

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

Source: Stack Overflow

Solution Source