I have Flash Media Server installed on my Centos OS. Everything is working well except I cannot use php files. When I call a php file inside of my webroot it just displays the php code as plain text. If I search in my httpd.conf file the only reference to php is the following:
DirectoryIndex index.html index.html.var index.php index.php3 index.php4 index.\ php5 index.py index.pl index.rb
Do I need to install php for it to work? How would I go about doing that?
Use command php -v
and if does'nt show you php version then you have to install PHP. Do
yum install php
yum install php-pear
then
sudo service httpd restart