Skip to main content
BreakawayPaul
Inspiring
April 27, 2014
Question

Coldfusion/Linux Apache running but won't parse pages

  • April 27, 2014
  • 1 reply
  • 729 views

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?

    This topic has been closed for replies.

    1 reply

    Legend
    April 27, 2014

    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.

    BreakawayPaul
    Inspiring
    April 27, 2014

    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.

    Legend
    April 28, 2014

    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.