Link to home
Start Free TrialLog in
Avatar of ecpeel
ecpeel

asked on

Coldfusion pages won't run on Mac OSX

I've installed CF9 on MAC OSX using the built in web-server, port 8500.
under the cfroot/www i've created a test folder. In this directory I have index.cfm adn index.html.
the HTML file runs the .cfm file displays nothing.
The CF admin/cfide... is running fine. Even the derby db's are ok.
No debugging info or anything will show.

New to cf on a mac, please assist.

thanks
Avatar of Brijesh Chauhan
Brijesh Chauhan
Flag of India image

What web-server are you using ? In-build CF JRUN or some other ?
Sorry about the first post, please ignore.


>>The CF admin/cfide... is running fine
that is also .cfm, so your files should run... what do you have in your index.cfm ??

Also can you paste your admin / CFIDE URL and the index.cfm file URL .... (I know it is internal, just want to check the paths)...
Hi,
Html files are not processed by CFM server.
You can include an html file inside a cfm file.
Hence please access your file like http:\\localhost:8500\test\index.cfm

or

set default page to run as index.cfm in the webserver.

If you are still confused let me know what is the content of your index.html or how index.html runs index.cfm.

Thanks.
Avatar of ecpeel
ecpeel

ASKER

Built-in CF JRUN.

http://127.0.0.1:8500/CFIDE/administrator/index.cfm

and for test code in index.cfm
<cfparam name="var" default="hello">
<cfoutput>#var#</cfoutput>
Avatar of ecpeel

ASKER

and here's my address to the test dir:
http://127.0.0.1:8500/test/index.cfm
var is actually used to define variable scope inside a function and is a keyword, but it is NOT illegal to use it the way you have,

can you try

<cfset test = 'hello'>
<cfoutput> #test# </cfoutput>

Open in new window


and see if that works ?
Avatar of ecpeel

ASKER

Sorry no go. yes, var is a scope. apologies. just a blank screen.
ASKER CERTIFIED SOLUTION
Avatar of Brijesh Chauhan
Brijesh Chauhan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ecpeel

ASKER

Apologies for the delay. We lost our power due to storms last night. I will reply soon.
Avatar of ecpeel

ASKER

Ahhhh, a reboot did the trick! I should have known!

Thanks for your assistance in keeping my sanity.