I had to re-install ColdFusion 9 on my MacOS today and having installed CF approx. a million times before, I thought it would only take few minutes.

Here is what I did :-

1) Went to /Applications/ -> Moved existing “ColdFusion 9” folder to Trash.
2) Ran the CF Installer and everything went well. But finally, the installer got stuck at “Installing WebServer Connectors” – I waited a few minutes but then gave up.
3) Repeat Steps 1 and 2.
4) I then decided to try the installation with the in-built webserver. That worked, but I could not load any pages at all in browser. Basically, Apache was not working.
5) I opened Terminal. Ran the command “sudo apachectl start” – It says “Already running”. At this point, I was wondering whats wrong.
6) Ran the command “sudo apachectl restart” and it appeared as if it got restarted. No changes.
7) Did some Search and ran this command. “sudo apachectl configtest” to make sure the Apache config was fine. Turns out it was throwing this error.

httpd: Syntax error on line 241 of /private/etc/apache2/httpd.conf: /private/etc/apache2/httpd.conf:241: <Files> was not closed.

I think this surely must have been done by the CF Installer. I opened the httpd.conf file and sure enough, it was broken.

<Files "rsrc">
Order allow,deny
Deny from all
Satisfy All
<DirectoryMatch ".*\.\.namedfork">
Order allow,deny
Deny from all
Satisfy All


Once I fixed this by closing the </Files> tag, Apache and CF both started working again.

Anyone else seen this before? I have seen this first time and its hard to believe that CF Installer actually messes up the Apache Config file.

Tagged with:  

6 Responses to Installing ColdFusion 9 on MacOSX with Apache : Broken Apache Config

  1. I remember that I have reported this in early CF9 versions.

    It only happens on uninstall/reinstall.

  2. Anuj Gakhar says:

    Thanks for confirming this problem, @Oguz.

  3. John Campos says:

    Thanks for the helpful info, this is what I had been looking for.

  4. Had this happen to me today after an unistall/reinstall. So still an issue. Thanks for having the fix posted!

  5. Stan says:

    @Stephen I agree with Stephen, this was very helpful. I’m not big on modifying the config files on my own, but felt a little better following these instructions.

  6. Ray Faddis says:

    I just ran into this on an uninstall/reinstall as well, and this was with version 9.02 so it’s still an issue. I’d be curious if this happens with CF10 as well.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2011 Anuj Gakhar