Have you installed PHP? – If so do the following:
-
Start off by trying a simple script – call it say info.php:
-
Ensure (assuming Apache) that you have it the web server configured – see http://php.net/manual/en/install.php
If all this works then there is a problem with the script.
solved Cannot run a simple PHP file on the server [closed]