Forum Moderators: coopster & phranque

Message Too Old, No Replies

cfm with Apache

coldfusion pages aren't displaying in browser with apache server

         

justa

11:47 pm on Nov 26, 2001 (gmt 0)

10+ Year Member



Hello everyone,

I have just purchased a new server for work, using Apache, ColdFusion5 and
MS SQL 2000.

To save us some money (and because I want to learn) I'm going to do all
the administration on the box. At the moment I've been trying to get
everything up and working on a small scale on my laptop, and I'm guessing
(and hoping) if I can do that then the server will configure just as
easily.

The Problem: I've installed CF5 Professional, but when I run look for
[localhost...] I get a message asking me to save or open
the file. Both Apache and CF are running, and I've tried to change the
file association *.cfm with out any luck. I remember when I added PHP4 I
had to put in

LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps

to the httpd.conf file. Do I have to do something similar here? I have already added

LoadModule coldfusion_module c:/cfusion/bin/ApacheModuleColdFusion.dll

but it still isn't working

It is probably a simple answer but I have no clue.

Any help is appreciated, and any links to good apache administration tute's would be great also.

Cheers
Justin.

sugarkane

10:20 pm on Nov 27, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've never used CF, but from what I can gather it runs as a module under Apache and as such shouldn't need the Addtype directive

The problem could well be in your LoadModule directive - Apache expects a path relative to the server root and you're passing an absolute path. Try copying the dll into Apache's modules directory and changing the line to

LoadModule coldfusion_module modules/ApacheModuleColdFusion.dll

and see if that works.

spremji

9:34 pm on Dec 7, 2001 (gmt 0)



Make sure that LoadModule coldfusion_module c:/cfusion/bin/ApacheModuleColdFusion.dll is added as the last item in the AddModules section.

seriesint

10:34 pm on Dec 7, 2001 (gmt 0)



The only mention I've found on addtype for CF was for some hacking at the cf module(on UNIX/Apache) where it mentions that CF tries to handle the filetype for apache which on the surface makes no sense. But here's the lines they used...

AddType application/x-httpd-coldfusion .cfm
AddHandler type-coldfusion .cfm

- OR -

AddType application/x-httpd-coldfusion .cfm
AddHandler type-coldfusion .cfm

course those look the same... here's the url the site's DOA but google has a cached copy

[google.com...]

No promises that this has any direct bearing on what you're looking at or for, and I'm of a mind to agree that those shouldn't be necessary as the total lack of mention on the web in general leads me to believe the problems elsewhere. (Think I could have stated that more circuitously? ;) )