Install PHP on RedHat

Posted by John R on Server Fault See other posts from Server Fault or by John R
Published on 2011-11-19T15:28:03Z Indexed on 2011/11/19 17:56 UTC
Read the original article Hit count: 389

Filed under:
|
|

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

© Server Fault or respective owner

Related posts about linux

Related posts about php