I just ran yum install php
in the command prompt. Everything went fine ('complete!') as per the dialogue. I then uploaded a file that does not use short tags and is named with the proper extension (i.e., the name is test.php).
<?php print "hello world"; ?>
When I navigate my browser to test.php it just prints each of the characters shown above; i.e., PHP is not interpreting it.
What might be the problem? Also, if there is a configuration file that needs to be updated, please tell me what directory path I am likely to find that file.
Edit: Apache2 & Red Hat Enterprise 5.5
Try
This will load the php module for Apache.
Check apache (I presume you are running apache) is actually loading the php module, and has the correct handlers setup for .php files.
Sounds like a web server issue rather than a php issue.