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

wwwroot, mamp and virtual hosts

Explorer ,
Oct 12, 2009 Oct 12, 2009

Hi,

I  am using MAMP pro for my PHP (unfortunately I do still do some)  sites. Now this means I can setup a virtualhost, http://mysite.localhost.com and have the folder anywhere on my harddrive.

Now the problem is I would like to do the same thing with coldfusion to be able to setup virtual hosts, but localhost:8500 always list my Applications/Coldfusion 8/wwwroot.

To resolve this I would like to either

(i) get coldfsuion and apache running on the same port or use apache to run CF - is this possible?

(ii) if no 1 will not work I would like to change the root folder of my CF setup.

Thanks for any help,

H.

666
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 ,
Oct 12, 2009 Oct 12, 2009
LATEST

Hi, Hulfy,

This is definitely possible. I've run my Mac setup this way for a couple years now: ColdFusion 8 running off my Apache server. With ColdFusion 8.0.1, Leopard support was added, meaning that Adobe shipped the correct Apache connector with 8.0.1.

The key will be telling Apache where to find the connector for ColdFusion. If you look at your Apache's httpd.conf file, you'll see a series of modules being loaded (i.e., LoadModule version_module modules/mod_version.so -- I just pulled this one from my httpd.conf file at random). Basically, you need a module for JRun.

It's easiest, I think, to just uninstall and reinstall CF (exporting your settings from your CF admin before you uninstall, of course!). The reason I think it's easier is that you don't have to find, compile and manually install the Apache module, mod_jrun22.

If reinstalling doesn't work, check out Aaron West's blog post on how to manually configure CF to work with Apache (links to other, related issues and all that):

http://www.trajiklyhip.com/blog/index.cfm/2008/1/14/ColdFusion-8-Apache-22x-and-OS-X-105-Leopard

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