PHP code not recognised

I have installed apache2 and php5. My trial page index.html displays OK in Firefox except that the script <?php echo "This is John page" ?> isn’t rendered.
The result of a2query -m php5 is php5(enabled by maintainer script)
Any ideas on what’s wrong and how to correct the problem

Php only executes for php extensions, run thru the server.

You need to change the .html to .php

Sponsor our Newsletter | Privacy Policy | Terms of Service