PHP is shown in browser as text on FMS apache
We have several small websites, some with limited php and some with small mysql databases and we are planning on running Flash Media Server as well all on one RedHat server.
I have installed the FMS and apache as per default installation and all is working ok I see the sample videos and have added some of my own videos. I have added some content under /opt/adobe/fms/webroot and this appears ok.
I have 2 flat sites called mysite1 and mysite2
Apache is installed as the default install on linux under /opt/adobe/fms/Apache2.2.
I have installed php
php -v
PHP 5.1.6 (cli) (built: Feb 26 2009 07:01:12)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
I have the following in my httpd.conf file and this seems to work ok for the virtual hosts in apache as I can see these sites
NameVirtualHost *:8134
<VirtualHost *:8134>
DocumentRoot "/opt/adobe/fms/webroot"
ServerName myservername
ErrorLog /var/log/httpd/error.myservername.log
CustomLog /var/log/httpd/access.myservername.log combined
</VirtualHost>
<VirtualHost *:8134>
ServerName www.mysite1.com
CustomLog logs/access.mysite1.com.log combined
ErrorLog logs/error.mysite1.com.log
DocumentRoot "/home/websites/mysite1"
</VirtualHost>
<VirtualHost *:8134>
ServerName www.mysite2.com
CustomLog logs/access.mysite2.com.log combined
ErrorLog logs/error.mysite2.com.log
DocumentRoot "/home/websites/mysite2"
</VirtualHost>
But when I go to look at a php page all I saw was the php text
So for example I go to www.mysite1.com/index.html page appears fine, when I go to www.mysite2.com/index.php all I see is the php text.
I looked at the php.conf file from another server and I noticed that it used modules/libphp5.which is not available on this copy of Apache so I am not sure what I need to do to get php running on the server.
Mitch
