When I run a basic 'hello world' php script from the command line, running the command
php test.php, it returns a valid html page. However, when I try to access it by a browser, I get the text of the php script returned, rather than valid html.
The php script "test.php" is as follows:
<html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html>
I am running Apache on Raspbian.