I am trying to set up httpd/PHP on my laptop (so that I can tinker with PHP websites locally).
I have followed the instructions here:
Web Development > httpd (Apache)
including Enabling PHP support
I have created an index.php test file in /var/www:
<html>
<body>
<h1>Welcome to PHP</h1>
<?php
phpinfo();
?>
</body>
</html>
When I go to http://localhost/index.php, I just see Welcome to PHP, none of the phpinfo (i.e. the server isn't processing the file as a php file).
I guess I'm missing something obvious. Any guidance appreciated.