Forum Moderators: phranque
Just to breifly go over the setup..I have a Spankin brand new Fedora 7 install (already configured). I had setup PHP on the system and apache was serving those pages without hickup. I then proceeded to install Coldfusion 8 on this box. Install went without hickups...Now i am having the following issues:
1) Apache is not serving PHP or CFM
2) When a page is called via browser that does not have <head> or <body> tags contained within the file (ie, php and cfm files), instead of serving the page, the browser is asking me to download the file instead. When i add the <head> and <body> tags to the page, the page is displayed but is completely white and when the source is viewed, the php or cfm code is visible...(<---not suppopsed to be right?...
The only manual changes i had to make was to add index.cfm to the DirectoryIndex variable in httpd.conf (not sure why the install didnt do this for me...).
Apache otherwise is serving html without hickup...
Any ideas? Thanks in advance!
**UPDATE**
I was able to get PHP running again but CFM is still an issue. I needed to add the following line in httpd.conf for PHP to function again..is this the correct approach? should this not be in there for a reason? I noticed the file /etc/httpd/conf.d/php.conf exists but the AddType are all # out...in that file it is not using x-httpd-php but instead php5-script..?
AddType application/x-httpd-php .php
I performed the following to fix this issue...in case anybody else has a problem
For PHP
inside the dir /etc/httpd/conf.d there is a file php.conf...I uncommented the lines relating to Type and Handler. I then removed all references of PHP from httpd.conf as they are being pulled from php.conf....all is well and apache is serving PHP files
for CFM
For whatever reason, the installation of CF8 on Fedora7 is not configured correctly to install the apache connector properly. Within the /opt/coldfusion8/bin/connectors directory is an apache_connector.sh file. This is the script that will create the apache connector for coldfusion. The directories in this file DO NOT correspond to the directories for a normal apache install on Fedora 7. To resolve the issue, change the directories within the SH file and then run it... (./apache_connector.sh)
PM me if you have any questions