In order to use PHP in the web server, you have to install PHP.
As root perform:
$ yum install php $ service httpd restart
The last line is to restart the Apache server loading the newly installed module.