CF8/9 and MAMP (Leopard only)
Hi,
There’s been many a post about getting Coldfusion installed on MAMP. None, seem to describe the issue I have had, and none gave me the solution I needed. So if you’re having the same issue as me, feel free to see below on how I managed to finally get it installed.
Please note, I am installing Coldfusion 9 Alpha but this seems to occur with CF8 installation. This is for Leopard only, for Snow Leopard view this post. (You may need some of the settings below though).
So, install Coldfusion as a Multiserver installation, installing to the /Applications/JRun4/ folder. When it comes to selecting the Web Server, use the following settings:
Config Directory: /Applications/MAMP/conf/apache
Server Binary: /Applications/MAMP/bin/apache2/bin/httpd (search for this, don’t enter it)
Server Control Script: /Applications/MAMP/bin/apache2/bin/apachectl
Continue to the end of the installation where it will advise that Coldfusion has installed however there was an issue. If you try and view a .cfm file now, dependant on which browser you’re using it will try and download the .cfm file as a .cfm.class file (such as index.cfm.class).
The issue is that there seems to be a permission issue when installing the JRun module. So…..
Go into the /Applications/JRun4/lib/ directory.
Open the jrun.jar and start the cfusion server.
Now right click the wsconfig folder, click Get Info and ensure that the admin permission is Read and Write.
Now open the wsconfig.jar and make sure localhost and cfusion is entered in the top half of the window. Then enter the following into the config directory:
/Applications/MAMP/conf/apache
Click Advanced and enter the following again:
Server Binary: /Applications/MAMP/bin/apache2/bin/httpd (search for this, don’t enter it)
Server Control Script: /Applications/MAMP/bin/apache2/bin/apachectl
Click Ok and the Web Server connector should now be setup properly.
Now go to Terminal, go to the /Applications/MAMP/conf/apache directory and pico httpd.conf. Ensure index.cfm is entered in the DirectoryIndex. You will also need to find the JRun LoadModule (search for JRunConfig) content and ensure that the following file extensions are displayed, if not add them.
JRunConfig jrun-handler .jsp .jws .cfm .cfml .cfc .cfswf .cfr
Save httpd.conf and restart Apache and you should be there. You will then need to go back to Coldfusion Administrator and finish the installation.
Hope that helps.
3 comments

Thanks Paul,
I know this post is old but it saved me a lot of time.
l8r
-C
I can’t re-start apache after I set the wsconfig.jar configuration
Might be worth trying Stefan Richter’s site. He has done an update:
http://www.flashcomguru.com/index.cfm/2009/11/2/cf9-mamp-snowleopard
Rgds
Paul