Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Coldfusion/Linux Apache running but won't parse pages

Contributor ,
Apr 27, 2014 Apr 27, 2014

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?

675
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 27, 2014 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 27, 2014 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 28, 2014 Apr 28, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources