ColdFusion 8 and Apache on Windows XP
July 22, 2008
A quick and painless guide to setting up ColdFusion 8, Apache and MySQL on a Windows XP workstation.
Download XAMPP
http://www.apachefriends.org/en/xampp.html
Install XAMPP
Destination Folder: c:\xampp\
You can choose to install Apache as a service if you want (I didn't, but you can add it later).
Once installation completes fire up XAMPP Control Panel and stop Apache if it is running
Download ColdFusion 8.0.1
http://www.adobe.com/cfusion/tdrc/index.cfm?product=coldfusion
Install Coldfusion 8.0.1
Tick the "developer edition" option
Choose the "Server configuration" option
Select the subcomponents you want to install. You don't need any of them to run ColdFusion code, so unless you want them I'd untick them.
Destination Folder: c:\Coldfusion8\
When you get to the "Configure web server connector for ColdFusion" screen, click the "add" button.
Select "Apache" from the dropdown list
Enter "C:\xampp\apache\conf" as your Configuration Directory
Enter "C:\xampp\apache\bin\apache.exe" as your server binary path
Click "OK"
Click "Next"
Change the directory for the Administrator Location to: "C:\xampp\htdocs"
The rest is pretty straight forward. You can turn RDS on if you want to use CFEclipse or Dreamweaver to connect to your database for code generatation, otherwise you can leave it off.
Once ColdFusion has finished installing, you need to start Apache. If you closed the XAMPP Control Panel you can find it in your start menu.
Fire up a browser and enter "http://127.0.0.1/CFIDE/administrator/index.cfm" into you address bar. Hopefully you should see a nice ColdFusion admin screen!
MySQL
XAMPP also installs MySQL and the phpMyAdmin tool for maintaining you MySQL databases.
PHP
If you do need to run PHP on your local box then XAMPP will set this all up for you. I have had to tweak the ini files to get some thing to run. Here is a quick guide:
cURL
This is a pain (but it makes you appreciate ColdFusion!),
- search for the following files in your C:\xampp\ directory: php4ts.dll, ssleay32.dll, php_curl.dll. Copy them into your C:\WINDOWS\system32\ directory.
- edit C:\xampp\apache\bin\php.ini and uncomment the "extension=php_curl.dll" line and save it
- restart Apache.
You can find out more about Apache by downloading the free ACME ebook from http://www.acidlabs.org/public-speaking/goodies/
- Posted in:
- ColdFusion
- Apache
25 comments
Leave a comment
If you found this post useful, interesting or just plain wrong, let me know - I like feedback :)





Comment by Ralphie – August 19, 2008
You do also get the benefit of (dare I say it) having phpMyAdmin for administering your MySQL databases.
Comment by John Whish – August 19, 2008
Thanks for any help you could provide me...I'm a newbie to coldfusion.
Comment by Frank Franckx – September 03, 2008
Welcome to ColdFusion :)
I'm guessing that you already had ColdFusion installed (with the standalone server running on port 8500) before you put XAMPP on. You should be able to change ColdFusion's configuration files to point to Apache but it is not going to be simple and I wouldn't recommend it!
I'd suggest uninstalling ColdFusion and then following the guide above.
If you've got a bunch of settings in the CFIDE you want to keep then have a look at the Packaging & Deployment > ColdFusion Archives screen in your CFIDE to backup and deploy settings.
Good luck! Let me know how it goes.
Comment by John Whish – September 03, 2008
Thoughts?
Comment by Jaime – September 29, 2008
You can change the default file in your virtual hosts file by adding this line:
DirectoryIndex index.cfm index.html
Comment by John Whish – September 30, 2008
the comment about PHP reads:
If you do need to run PHP on your local box then XAMPP will set this all up for you. I have had to tweak the ini files to get some thing to run. Here is a quick guide:
The trailing ':' implies that there is something to follow. But if I have understood your article correctly whatever it is is not there. Could you please help me out here because I am a real newcomer to Xampp & CF and I would like to get things right from the beginning.
many thanks
Michael
Comment by Michael Message – October 27, 2008
My additional information was about setting up cURL which isn't part of the standard XAMPP setup. But if you don't need cURL then you don't need to do anything. XAMPP sets everything up to be a good development environment (don't use it on your production webserver) so most things should run without any issues.
Comment by John Whish – October 28, 2008
The instructions were simple enough for me!
Andy
Comment by Andy – January 27, 2009
Thanks
Comment by John – February 02, 2009
www.simonwhatley.co.uk/configuring-coldfusion-8-with-apache
www.danvega.org/blog/index.cfm/2007/8/3/Installing-ColdFusion-8-amp-Apache-224-HTTP-Server
Comment by John Whish – February 02, 2009
I'm having a problem with the FORM variables.
When I use localhost and I submit a form. the form variables are correctly set in the action cfm.
But if I load the page using an URL other than localhost the form variables are not being set. I dump "form" in the action cfm and it's empty.
I suspect that it's somehow related with the restrictions of the developer edition of coldfusion. But it's supposed to work with the localhost AND 2 other computers.
Any thoughts? Is there a way to workaround this.
Thans
Comment by Julian – March 21, 2009
Comment by John Whish – March 23, 2009
Thanks! Having trouble all day with CF & MySQL. I've used XAMPP before and just when I thought I was ready for therapy, I finally decided to search for all 3, your article popped up and installed like a dream. Thanks, Greg Smith
Comment by Greg Smith – March 26, 2009
Comment by John Whish – March 27, 2009
Comment by dany – May 17, 2009
Comment by Mark Boast – June 28, 2009
Comment by John Whish – June 29, 2009
Thanks again for the steadying hand and if you know of any good learning tools, tutorials or forums for a total novice using just that combination of dev tools, please let me know.
Comment by Adam – July 20, 2009
Glad the guide was useful. A server side language is definitely what you need to build an online shop. As for tutorials, then I can't think of any specific ones off the top of my head but the Adobe livedocs are pretty good. I think this might be a good place to start; livedocs.adobe.com/coldfusion/8/htmldocs/sql_01.html
Good luck!
Comment by John Whish – July 21, 2009
Back in March I installed Cf & XAMPP and evrything's been working fine for months, then all of a sudden, it says the website encountered an error and can't be shown. I don't even know where to begin to get help, do you have a solution or can you point me in the right direction? Thanks,
Greg
Comment by Greg Smith – August 15, 2009
Comment by John Whish – August 17, 2009
This is kind of strange, but when I disabled my firewall, I still had problems, then on a whim, I uninstalled my firewall and everything went normal again. Thanks,
G
Comment by Greg Smith – September 04, 2009
I loaded CF 8 - got it working on local host.
I started adding virtual hosts in Apache
Went to set up website in CF the admin page would not come up. Page not found
I tried using the IP address of the webserver instead of 127.0.0.1 /
No luck
Uninstalled CF and tried again.
Now when I select Apache
I get to the setup of the "Directory for Binary" in apache/bin/
There is no apache.exe file
there is "apache_monitor.exe"
Or
"httpd.exe"
files.
I now get an error that CF8 does not support this version of apache.
It is apache 2.1 which is listed by CF as supported.
Any help greatly appreciated
Comment by Terrymod – November 25, 2009
Comment by John Whish – November 26, 2009