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

Can't see folders @ http://localhost:8300/

Explorer ,
May 28, 2009 May 28, 2009

Hi,


I just installed CF8 Enterprise Edition as multiserver and I have this problem: After I created a new folder in Applications>ColdFusion8>wwwroot I try to see it in Safari @ http://localhost:8300/ but I just can't see my new folder.


Any one has a clue about this?


Your replies are much appreciated.


Thanks!


JC

Picture 2.png

TOPICS
Getting started
2.4K
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

correct answers 1 Correct answer

Advocate , May 29, 2009 May 29, 2009

Sorry, JC. I should have said to shut down CF first, otherwise it doesn't work. No biggie on using Apache. If you're good with port 8300, you should be able to just use /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/ as your web root. Just create a folder/site there with DW and give it a wgirl. Sounds like your basic setup is good!

Translate
Advocate ,
May 29, 2009 May 29, 2009

JC,

During the install did you configure CF8 (since you're on a Mac, make sure you used CF 8.0.1) for Apache via web server connection/configuration? If not, you may want to reinstall and do this. This will configure CF8 to run on port 80 (integrated with Apache) so that you access your sites at http://localhost/. I've had better luck with CF on my Mac when I installed CF on top of JRun4 (option when installing).

Mark Drew has a good post with screen shots of this install type:

http://www.markdrew.co.uk/blog/post.cfm/running-coldfusion-8-on-leopard

Back to your OP, it looks from the screen shot like you don't have the folder in your path (but it certainly should show up in the list). Under the current setup, can you add an index.cfm (or any CFM file) file to /Applications/ColdFusion/wwwroot? Then load that in your browser to see if CFM files are being processed. It'll at least tell us whether or not CF is 'working'.

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
Explorer ,
May 29, 2009 May 29, 2009

Hi Craig,

First of all, thank you for your reply.

I forgot to mention that I have a folder in the Applications named JRun4, and in that folder I also have servers>cfusion>cfusion-ear>cfusion-war.

It is in that last folder, that I just discovered, that I can see the folders @ http://localhost:8300/ i.e. CFIDE, cfdocs, WEB-INF.

I've created the index.cfm page as you suggested, with this code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">

<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>My First ColdFusion Page</title> </head> <body> <h1>My First ColdFusion Page </h1> <cfset firstname="Juan Carlos"> <cfoutput>My name is #firstname#</cfoutput> </body> </html>

Seems like the CF server works; This is the output:

Picture 1.png

So far so good, I'm tempted to say...

Do you think the results are correct?

Thanks again.

JC

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
Valorous Hero ,
May 29, 2009 May 29, 2009

Yes, the JRun4/servers/{servername}/cfusion-ear/cfusion-war/ is the first place ColdFusion configured in Multi-home configuration will look for coldFusion files.

But to server up non-cfml content you must run the web-server connector tool to connect each server instance to one or more websites configured via your web server, Apache I presume on an os-x system.  The web root of these web sites would then be the second place ColdFusion will search for cfml files.

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
Advocate ,
May 29, 2009 May 29, 2009

No problem, JC! As Ian notes, you'll want to get the connector to Apache setup (and you may already have that in place!).

Ultimately, you'll probably want to start using the Apache web root (default: /Users/juancarlos/Sites/) for your work. And we can test if you're already setup for it.

To see if you CF & Apache are connected:

  1. Create a folder in /Users/juancarlos/Sites/, perhaps just name it 'cf' to keep it simple. Now you should have /Users/juancarlos/Sites/cf
  2. Create an index.cfm file there, just like you did earlier
  3. Open Terminal
  4. Type sudo sudo /Applications/JRun4/bin/jrun -start cfusion
  5. DO NOT CLOSE TERMINAL!!!!! This will kill the server (i.e., stop the process)
  6. Enter your Mac password when prompted
  7. Open Activity Monitor and watch to see if a process named jrun starts moving up the 'chart'
  8. Open Safari and go to http://localhost/cf/index.cfm

If you see CF output and not the CFML code, you're already setup with Apache!

To close/stop JRun/CF, go back to Terminal and press ctrl+c

If that works, let me know and I can post an easy-to-use AppleScript to start/stop CF w/o using Terminal. If it doesn't, you may want to consider running the web server connector (reinstalling is annoying but the easiest way to do it with 8.0.1 being built for Leopard, so-to-speak ).

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
Explorer ,
May 29, 2009 May 29, 2009

Hi Craig,

This is what I got from the Terminal:

Last login: Fri May 29 10:35:22 on console

Welcome to Darwin!

juan-carlos-tudoses-powerbook-g4-15:~ JuanCarlos$ sudo sudo /Applications/JRun4/bin/jrun -start cfusion

Password:

Starting Macromedia JRun 4.0 (Build 108673), cfusion server

cfusion could not be started because it is already running.

juan-carlos-tudoses-powerbook-g4-15:~ JuanCarlos$

Maybe because I had previously started CF with ColdFusionLauncher...

And trying in Safari http://localhost/cf/helloworld.cfm I got a 404 error.
In the Activity Monitor jrun is active, though a bit slow, maybe due to not much traffic...
I don't know if I'm going to use the Apache server though: All this is for trying to build active pages with DW and setting up a database on remote servers that support CF, so Apache is not a priority.
I tried to build a database with FileMaker, but DW can't recognize it, so CF is my best option here.
JC
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
Advocate ,
May 29, 2009 May 29, 2009

Sorry, JC. I should have said to shut down CF first, otherwise it doesn't work. No biggie on using Apache. If you're good with port 8300, you should be able to just use /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/ as your web root. Just create a folder/site there with DW and give it a wgirl. Sounds like your basic setup is good!

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
Explorer ,
May 29, 2009 May 29, 2009
LATEST

Thanks again Craig, I appreciate your help!

JC

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