Skip to main content
CF_CayuseDev
Known Participant
March 21, 2018
Answered

CF11 Install on Mac OSX (Sierra)

  • March 21, 2018
  • 1 reply
  • 1953 views

I'm trying to get CF11 installed on my local MacBook running OSX.

After running the installer, and selecting to use an Apache as the external web server - I'm able to get to the CF Administrator.

127.0.0.1/CFIDE/administrator/index.cfm  (OK)

I've confirmed that this is pointing to:

/Applications/ColdFusion11/cfusion/wwwwoot/CFIDE/

Created a test page at

/Applications/ColdFusion11/cfusion/wwwwoot/CFIDE/test.cfm   (works fine)

127.0.0.1/CFIDE/test.cfm (OK)

However .... any other directory EXCEPT for CFIDE either shows no permissions or file not found.

/Applications/ColdFusion11/cfusion/wwwwoot/some_other_directoy/test.cfm

127.0.0.1/some_other_directoy/test.cfm

127.0.0.1/wwwroot/test.cfm

Both show what I'm guessing is the Apache page for a 404.

Not Found

The requested URL /test.cfm was not found on this server.

********

I 've tried:

updating httpd.conf located at: /etc/apache2/httpd.conf with various suggested settings for CF

create "mappings" via the CF admin (they don't work)

------------

How can I tell why any other directory besides

/Applications/ColdFusion11/cfusion/wwwwoot/CFIDE/ won't load in a browser?

I've stopped and started both apache and CF a dozen times, each time with a slightly different httpd.conf - but still no joy.

Any ideas are appreciated.

Thanks

This topic has been closed for replies.
Correct answer Dave Watts

Rather than ask to how to do something that might not be what I want, I'll rephrase the question.

I have CF11 installed on Mac OSX (sierra), configured to use CF's internal "web server".

After installation, I'm able to access:

http://127.0.0.1:8500/CFIDE/administrator/

which is pointing to

/Applications/ColdFusion11/cfusion/wwwroot/ on my local machine

What I'd like is to be able to have it set up such that when I navigate to:

http://127.0.0.1/some_directory/index.cfm

ColdFusion knows that I want to load the page located:

/Users/<user_name>/Documents/some_directory/index.cfm

I know it's possible with CF, as I've done this for years on windows machines without any problem.
Well documented, easy to set up, takes less time than writing this post.

How can I go about that?


First, it's not ColdFusion's job to find what page to run, exactly. The web server tells it that. In your example just now, you have one URL that looks like http://127.0.0.1:8500/ (that's using the built-in web server) and another URL that looks like http://127.0.0.1/some_directory (that's using the external web server). In both cases, it's the web server's job to convert the URL to a file path, and give the resulting file path to CF. In Windows, you'd have to create that web root directory in IIS. In Apache, you'd do that in the httpd.conf file. If you have one virtual server, you'd simply change the DocumentRoot.

Mapping URLs to Filesystem Locations - Apache HTTP Server Version 2.4

If you have more than one, you'd need to create a Virtual Host:

https://httpd.apache.org/docs/2.4/vhosts/examples.html

It's easier to do that in Windows because of the web server configuration, not because of CF. With Apache, you'll have to look at the lines CF added to httpd.conf, see which of those need to be included in your Virtual Host and which need to be in the rest of httpd.conf.

Dave Watts, Fig Leaf Software

1 reply

Community Expert
March 21, 2018

If you configured CF to work with Apache, you'll have to put those other files in the Apache webroot, which will be somewhere else. I'm not sure where it'll be on OS X, but you should be able to look in httpd.conf and figure out where. The reason that /CFIDE works is because it's automatically set up as a virtual directory so you can run CF Administrator.

Dave Watts, Fig Leaf Software

Dave Watts, Eidolon LLC
CF_CayuseDev
Known Participant
March 21, 2018

Is there any documentation on how ColdFusion expects to have the httpd.conf file configured?

What normally takes 5 minutes on a windows box is basically undocumented for a Mac installation.

Thanks Adobe,. you suck.

Dave WattsCorrect answer
Community Expert
March 21, 2018

Rather than ask to how to do something that might not be what I want, I'll rephrase the question.

I have CF11 installed on Mac OSX (sierra), configured to use CF's internal "web server".

After installation, I'm able to access:

http://127.0.0.1:8500/CFIDE/administrator/

which is pointing to

/Applications/ColdFusion11/cfusion/wwwroot/ on my local machine

What I'd like is to be able to have it set up such that when I navigate to:

http://127.0.0.1/some_directory/index.cfm

ColdFusion knows that I want to load the page located:

/Users/<user_name>/Documents/some_directory/index.cfm

I know it's possible with CF, as I've done this for years on windows machines without any problem.
Well documented, easy to set up, takes less time than writing this post.

How can I go about that?


First, it's not ColdFusion's job to find what page to run, exactly. The web server tells it that. In your example just now, you have one URL that looks like http://127.0.0.1:8500/ (that's using the built-in web server) and another URL that looks like http://127.0.0.1/some_directory (that's using the external web server). In both cases, it's the web server's job to convert the URL to a file path, and give the resulting file path to CF. In Windows, you'd have to create that web root directory in IIS. In Apache, you'd do that in the httpd.conf file. If you have one virtual server, you'd simply change the DocumentRoot.

Mapping URLs to Filesystem Locations - Apache HTTP Server Version 2.4

If you have more than one, you'd need to create a Virtual Host:

https://httpd.apache.org/docs/2.4/vhosts/examples.html

It's easier to do that in Windows because of the web server configuration, not because of CF. With Apache, you'll have to look at the lines CF added to httpd.conf, see which of those need to be included in your Virtual Host and which need to be in the rest of httpd.conf.

Dave Watts, Fig Leaf Software

Dave Watts, Eidolon LLC