Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • Last Modified:

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
0
ecpeel
Asked:
ecpeel
  • 5
  • 4
1 Solution
 
Brijesh ChauhanStaff IT EngineerCommented:
What web-server are you using ? In-build CF JRUN or some other ?
0
 
Brijesh ChauhanStaff IT EngineerCommented:
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)...
0
 
ansudhindraCommented:
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.
0
[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

 
ecpeelAuthor Commented:
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>
0
 
ecpeelAuthor Commented:
and here's my address to the test dir:
http://127.0.0.1:8500/test/index.cfm
0
 
Brijesh ChauhanStaff IT EngineerCommented:
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 ?
0
 
ecpeelAuthor Commented:
Sorry no go. yes, var is a scope. apologies. just a blank screen.
0
 
Brijesh ChauhanStaff IT EngineerCommented:
what is the path of your CFIDE directory ? is your test directory in the same folder as CFIDE ? Like for me I am on Windows and my CFIDE directory is C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war <-- SO THIS is my WEB ROOT, I need to put everything in there...

0
 
ecpeelAuthor Commented:
Apologies for the delay. We lost our power due to storms last night. I will reply soon.
0
 
ecpeelAuthor Commented:
Ahhhh, a reboot did the trick! I should have known!

Thanks for your assistance in keeping my sanity.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now