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.
Fujitsu Lifebook P727 laptop review
Lightwell software lets you create mobile apps without using code
Best value Mac: Which is the best £1249 Mac to buy
Comment désactiver les programmes qui s'exécutent au démarrage de Windows 10 ?