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.
Huawei P10 review
1995-2015: How technology has changed the world in 20 years
An overview: What leading creative agencies are doing to improve diversity
New iPad, iPhone SE & Red iPhone 7 on sale now
Synology invites you to visit them at Insomnia on 26th – 29th August. Book your tickets now and visit Synology.