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

CF9 not connected to MAMP Apache in Snow Leopard

Explorer ,
Nov 23, 2010 Nov 23, 2010

I am trying to set up a MAMP/CF9 multi-site development environment on my local MacBook Pro.

I found this article and followed it as my guide with one exception.

http://www.ryanjeffords.com/blog/entry/setting-up-a-solid-local-development-environment-using-coldfu...

Where it talks about editing the hostd.conf file for the multiple local sites, I instead installed VirtualHostX app.

So I installed MAMP (Mac Apache MySQL PHP) on my MacBook Pro.  It started up and runs serving web pages.  I then installed VirtualHostX and defined a couple local sites I have for development. I then installed CF9 (32 bit).  I specified CF in /Applications and I specified the CFIDE to go into my (user)/Sites/www directory. My local sites are each in their own directory under (user)/Sites/.  It said it all ran fine but when I went to /localhost/CFIDE/administrator/index.cfm it gives a 404 error. I try to go to one of the dev sites and it displays the page but as text, not CF rendered code.

I looked in the wsconf.log file and found this one error msg:

11/21 20:31:04 error Configuring 32 bit connector is not allowed.

jrunx.connectorinstaller.ConnectorInstallerException: Configuring 32 bit connector is not allowed.

at jrunx.connectorinstaller.WebServerInfo.getResourcePath(WebServerInfo.java:809)

at jrunx.connectorinstaller.WebServerInfo.getResourcePath(WebServerInfo.java:759)

at jrunx.connectorinstaller.ApacheInstaller.copyFiles(ApacheInstaller.java:1124)

at jrunx.connectorinstaller.ApacheInstaller.installConnector(ApacheInstaller.java:225)

at jrunx.connectorinstaller.ConnectorInstaller.installConnector(ConnectorInstaller.java:338)

at jrunx.connectorinstaller.ConnectorInstaller.doIt(ConnectorInstaller.java:272)

at jrunx.connectorinstaller.ConnectorInstaller.main(ConnectorInstaller.java:762)

It suggests that the CF install step where it tries to set up the connector between Apache and CF9 failed.  I don't know where to go from here to resolve this issue.  I've looked and looked on the web and can't find anything yet.  I've spent hours and hours.
Any guidance to resolve this would be much appreciated.

1.8K
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
Community Expert ,
Nov 23, 2010 Nov 23, 2010

OK, let me preface this by saying I know practically nothing about OS X (despite typing this from a Mac right this second).

Snow Leopard is a 64-bit OS. If you're using a 64-bit version of Apache, you'll need to use the 64-bit version of CF.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Read this before you post:

http://forums.adobe.com/thread/607238

Dave Watts, Eidolon LLC
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 ,
Nov 23, 2010 Nov 23, 2010

I have just found out that the MAMP (free version) download is a 64 bit architecture. I also know I was trying to install CF9 32 bit based on the assumptions that a.) it didn't matter b.) that MAMP had a 32 bit Apache.  Apparently both are false from what I'm learning.

Now the question is, can/should I configure Apache to run in 32 bit mode or should I just get CF9 64 bit and install it?

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
Community Expert ,
Nov 23, 2010 Nov 23, 2010

Download the 64-bit version. There's no reason to stick with 32-bit on OS X (or other platforms either, usually).

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Read this before you post:

http://forums.adobe.com/thread/607238

Dave Watts, Eidolon LLC
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 ,
Nov 23, 2010 Nov 23, 2010

I downloaded the 64bit version of CF9 Developers edition. I uninstalled the 32bit version of CF9 I had and renamed my MAMP directory. I installed a new /Applications/MAMP directory and configured it and started it. This has a 64bit Apache 2.0.63 web server. It started up fine once again. I then installed CF9 and once again it completed but does not serve up .cfm pages rendered but they show only as text or trigger a download. I checked the /Applications/ColdFusion9/runtime/lib/wsconfig/wsconfig.log file and AGAIN, it has the error:

# Created by JRun on 11/23 19:42:33

11/23 19:42:33 info Macromedia JRun 4.0 (Build 108795)

11/23 19:42:33 debug Found JRun server coldfusion at 127.0.0.1:2932

11/23 19:42:34 debug Using Apache binary /Applications/MAMP/Library/bin/httpd

11/23 19:42:34 info Server version: Apache/2.0.63

11/23 19:42:34 debug Using Apache control script /Applications/MAMP/Library/bin/apachectl

11/23 19:42:34 debug Parsing Apache configuration file /Applications/MAMP/conf/apache/httpd.conf

11/23 19:42:35 debug Exec'ing chmod 777 /Applications/ColdFusion9/runtime/lib/wsconfig/1

11/23 19:42:35 debug Set permission to 777 on /Applications/ColdFusion9/runtime/lib/wsconfig/1

11/23 19:42:35 error Configuring 32 bit connector is not allowed.

jrunx.connectorinstaller.ConnectorInstallerException: Configuring 32 bit connector is not allowed.

at jrunx.connectorinstaller.WebServerInfo.getResourcePath(WebServerInfo.java:809)

at jrunx.connectorinstaller.WebServerInfo.getResourcePath(WebServerInfo.java:759)

at jrunx.connectorinstaller.ApacheInstaller.copyFiles(ApacheInstaller.java:1124)

at jrunx.connectorinstaller.ApacheInstaller.installConnector(ApacheInstaller.java:225)

at jrunx.connectorinstaller.ConnectorInstaller.installConnector(ConnectorInstaller.java:338)

at jrunx.connectorinstaller.ConnectorInstaller.doIt(ConnectorInstaller.java:272)

at jrunx.connectorinstaller.ConnectorInstaller.main(ConnectorInstaller.java:762)

This is very frustrating!

In the ColdFusionLauncher  I select Webserver Connector Utility but it asks for a password that is impassible ( I try every relevant password I can think of and NONE of them work so I don't know how to get past that. What p/w does it want?  How can I reset it?)

DIrectives on what to try or where to go next with this would be greatly appreciated!!!

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 ,
Nov 24, 2010 Nov 24, 2010

There is a bug in the Web Server Config tool on OS X; it always installs the 32 bit connector.

I blogged about this back in January:

http://www.andyallan.com/blog/post.cfm/issue-with-wsconfig-on-64-bit-os-x

Basically you just need to manually extract the relevant mod_jrunX.so file.

Cheers

Andy

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 ,
Nov 27, 2010 Nov 27, 2010
LATEST

I have since confirmed that the Apache in the MAMP I downloaded is 2.0.63 and it is NOT 64 bit but 32 bit architecture. I was able to get it working with my 64 bit install of CF9 but only after I manually extracted the 32 bit .so file from the .war that came with the CF9 installer. I also had to change some permissions on it before it would work. I also had to hack the httpd.conf file to include stuff that never made it in the file, regarding the jrun awareness of CF file types.

I'm up and running now. I tried so many things I'm not 100% sure what was the fix but changing the .so file, it's permissions and the httpd.conf were key. I haven't ready Andy's post but I suspect he has some key info too.  Besides Andy's blog post I would suggest others also use this blog post as well:

http://www.ryanjeffords.com/blog/entry/setting-up-a-solid-local-development-environment-using-coldfusion-9-apache-and-mysql-on-mac-os-x

and this help on the Adobe site

http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf363a5d-7ffb.html

For help on using MAMP and VirtualHostX (but no mention of CF) see this one:

http://seansperte.com/entry/Setting_Up_a_Killer_Local_Web_Development_Environment_on_a_Mac_with_MAMP_an/

This post may be of help too. It is for CF8 but should be applicable for CF9. It may hold the key for getting the httpd.conf file rewritten automatically instead of the hack I had to do.

http://www.oxalto.co.uk/blog/post.cfm/cf8-mamp-on-osx-step-by-step

Another good post on the subject from Adobe:

http://blogs.adobe.com/samwong/2009/10/installing_coldfusion9_mamp_sn.html

Hope this thread helps others out.

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