I had the same issue and it was because I forgot to enable PHP in Apache when I rebuilt the server. To test it out create a file named test.php...
Separate names with a comma.