Install PHP on RedHat
- by John R
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 & Redhat