After installing ColdFusion 8 and Apache successfully you may still see an “HTTP 500 Internal Server Error” when navigating to a ColdFusion page. All is not lost, you simply need to configure, or check the configuration of Apache.
Apache requires very little post installation modification, but it is always good practice to check the httpd.conf file to ensure that the ColdFusion “install” scripts did what they were supposed to do.
If you haven’t confirmed that Apache is running, open your browser and point it to http://localhost/ (unless you specified a real URL during installation). You should see the Apache test page. If you see an error, review the Apache installation steps to make sure you followed all the steps correctly, and/or check your log files for more detailed errors.
Now we know Apache is running, but how about ColdFusion? Point your browser to the ColdFusion Administrator found commonly at http://localhost/CFIDE/administrator/index.cfm and see what happens. One of three possible failures could occur:
- Your browser prompts you to save the .cfm file to your computer. There a couple of possible resolutions to this. Firstly restart the Apache service. If this does not resolve the issue you will need to check the httpd.conf file to ensure that the ColdFusion module is being loaded. The file can typically be found in the C:\Program Files\Apache Software Foundation\Apache2.2\conf\ directory.
Make sure that theDirectoryIndexhas a reference to theindex.cfmfile (i.e. the default file):
Ensure that the LoadModule jrun_module "C:/ColdFusion8/runtime/lib/wsconfig/1/mod_jrun22.so"is also present:
If you need to edit this file, restart the Apache service after you have saved the changes.
- You get a message that the CFIDE folder cannot be found. This is more likely to be a problem with where you placed the ColdFusion application during install. The default location is in the Apache directory (C:\Program Files\Apache Software Foundation\Apache2.2\htdocs), so check in the http.conf file to ensure the DocumentRoot is pointing correctly. Alternatively, copy this folder to your localhost webroot (e.g. C:\WebRoot) ensuring that the DocumentRoot points to your webroot (see the yellow box in the second screen-shot).
- You get another message which probably means that you need to reinstall ColdFusion, and/or Apache!
And that is it, you can start using ColdFusion and developing applications.
Tags: Adobe, Apache, ColdFusion, configuration, errors, howto, httpd.conf, installation, trouble shooting, webserver




















2 comments
Comments feed for this article
Trackback link
http://www.simonwhatley.co.uk/configuring-coldfusion-8-with-apache/trackback
19 December 2007 at 9:06 pm
Louis Galipeau
You may also find the steps illustrated here really helpful with setting up Apache:
http://blog.cutterscrossing.com/index.cfm/2007/7/23/Local-Development-Setup-Pt-1-Apache-and-ColdFusion-7-or-8
Also something to consider while setting up Apache (for performance) is to setup mod_deflate and setting “FileETag none” as displayed here.
14 June 2008 at 9:57 am
RJT
OMG THANK YOU! I’ve been fustrated by my browser trying to download the cfm file for ages! Your entry helped me solve it! Thank you!