This happened to me on Windows - I fixed it when I realised I had not associated .php with the PHP script.
If this is the same for you, you need to add:
AddType application/x-httpd-php .php
Hope this helps.
Amazon Prime Day 2018: Best Deals & Launches
Say aloha to the summertime vibes of artist Kim Sielbeck
The best Amazon Prime Day Apple deals 2018
Les meilleures séries Amazon Prime Video (2018)