Copy link to clipboard
Copied
I've installed CF9 (because it matches what my host uses) on my ubuntu14.04 machine, along with Apache web server and MySQL.
I know Apache works because HTML (and PHP) pages get served up fine. MySQL and phpmyadmin both come up fine.
ColdFusion starts and runs:
Starting ColdFusion 9...
The ColdFusion 9 server is starting up and will be available shortly.
======================================================================
ColdFusion 9 has been started.
ColdFusion 9 will write logs to /var/www/html/cfusion/logs/cfserver.log
======================================================================
But when I view a CFM page I just see raw code.
What have I done wrong?
Copy link to clipboard
Copied
This sounds like a MIME type issue. Check MIME types and ensure that .cfm's are handled correctly. Sounds like the install did not fully work. Ensure that the CF installer properly modified the apache config files and created the proper script mappings.
Copy link to clipboard
Copied
One potential problem is that the current apache uses apache2.conf and CF9 still uses httpd.conf.
This vaguely reminds me that I had to do something to a dummy httpd.conf (like make a symlink or something) to tie it to apache2.conf, but I don't remember what. Maybe that's my problem.
Copy link to clipboard
Copied
Yes some threads on CF installs for Linux/Apache mention that before running the CF installation you need to symlink your apxs binary file to the location the CF installation will look in e.g. sudo ln -s /usr/bin/apxs2 /usr/lib/apache2/mpm-workers/apxs. Looks like that's the issue.