From time to time, php on cPanel servers gets a bit messed up, and wants to download the php file itself. here's how to fix this
Login to WHM
Click on Service Configuration
Click on Apache Configuration
Click on Configure PHP and Suexec
Save configuration (no changes necessary)
This will test the configuration and run it.
Retest the site you were having a problem with and you should see it working.