Installing ColdFusion on IIS 7 + Configure IIS for ColdFusion in Windows Vista and Windows Server 2008
When installing ColdFusion on Vista or on Windows Server 2008 you may receive HTTP 404.3 Error, similar to this one:
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
Additionally if you run ColdFusion Web Server Configuration Tool, you will see a message saying that IIS components are being installed and could take between 2 to 5 minutes of time.
You can resolve this error by making sure that the two required components of IIS are installed on your system. Namely:
- ISAPI Extensions
- IIS Metabase and IIS 6 configuration compatibility.
First, start the program called Windows Features. You will find Windows Features under Control Panel –> Programs and Features.
When the Windows Features starts, navigate through the features hierarchy under Internet Information Services and select the two features: (a) ISAPI extensions and (b) IIS Metabase and IIS 6 configuration compatibility.
ColdFusion is now ready to run from IIS. However, IF you’ve ALREADY installed ColdFusion before following the above steps, continue to follow the steps mentioned under ‘Configuring IIS for ColdFusion’:
Configuring IIS for ColdFusion
If you followed the above steps after having installed ColdFusion 8 or 9, you will have to run Web Server Configuration Tool that comes with ColdFusion to configure IIS7 so that all .CFM files are mapped to be handled by ColdFusion.
The following text is directly from ColdFusion installation guide:
- Start the Web Server Configuration Tool by selecting Start > Programs > Adobe > ColdFusion 9 > Web Server Configuration Tool.
- Click Add.
- In the Server pop-up menu, select the host name and the server or cluster name to configure. In the ColdFusion server configuration, the server name is always coldfusion. Clustering support is not available on the server configuration.
Note: The server or cluster does not have to reside on the web server computer. - In the Web Server Properties area, select IIS and specify the website. For IIS, you typically specify All.
- Select the Configure web server for ColdFusion applications option, and click OK.
Note: Omitting the previous step causes your web server to serve ColdFusion source code. - Copy the CFIDE and cfdocs directories from cf_root/wwwroot to your web server root directory. In addition, copy your application’s CFM pages from cf_root/wwwroot to your web server root directory. In the multiserver configuration, these files are under the jrun_root/servers/cfusion/cfusion-ear/cfusion-war directory.
ColdFusion is now ready to serve pages on the Web ;)
I'm a bit disappointed. Quite a few of us requested that CF9 use the Native Module capability of IIS7 rather than the ISAPI. The feature request was even marked as completed. Yet CF9 still appears to be using the legacy ISAPI connectors. Aside from the performance gains that this would have offered, it would have also eliminated this confusing and lengthy install process.
ReplyDelete@TJ, yes it is quite a disappointment. May be we will see that in ColdFusion 10. ;)
ReplyDeleteThanks so much for this article. I agree, it seems that native integration with IIS7 would be preferred. I ran CF9 in the Multiserver mode as a J2EE app, but prefer the managability of IIS7; mostly for the purposes of running multiple sites on teh same Coldfusion server. So this last step here caused me a few hours of headache.
ReplyDeleteBy following this, were all of your application mappings properly configured? .cfm, .cfml, .cfc, .cfswf, .cfr, .jsp, and .jws? After installing the required portions to IIS and restarting my Vista Ultimate (x64) machine, and then running the configuration tool, it seems as though ColdFusion is unable to locate any of my websites from IIS. I haven't created/configured any as I was going to use the default root, but I don't think that should make a difference...
ReplyDeleteAny ideas?
Brendon, if you have installed the two components mentioned in the article then just make sure you have downloaded x64 bit edition of CF9 and not running a 32bit edition on a 64bit Vista.
ReplyDeleteThings you can try:
1. Run ColdFusion Web Configuration with Admin rights i.e. in elevated mode. (Right click Run as Administrator)
2. It is not tricky to add mappings manually. ColdFusion configurator adds one Wildcard Script map and 8 scrip map for: *.jsp, *.jws, *.cfm, *.cfml, *.cfc, *.cfr, *.cfswf, *.hbmxml.
You should add the above "handler mappings" at root node manually.
Wildcard script map extension points to: C:\ColdFusion9\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll
All other Script map extensions: C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll
3. Under IIS7 management root node, you will see "ISAPI and CGI Restrictions" icon. Go in there and make sure both the above mentioned dlls are listed and are Allowed and not restricted.
4. If you want to try allowing your IIS7 to run 32bit applications, you can enable it under Application Pools. Right click on an application pool name & go to advanced settings. And set Enable 32-bit applications to true.
Hope this helps!
You are freaking fantastic! A very well-written article that helped me install CF9 Developer onto my Win7 Pro x64 installation.
ReplyDeleteCF is up and running now thanks to you! You have a great instructional approach to the article, and coupled with the images, this was better than most videos I've seen that teach the same thing!
Thanks for your kind words, Aaron.
ReplyDeleteWhen I run the Add Web Server Configuration tool I get a DoIISListWebSites(OpenKey): ERROR_ACCESS_DENIED and the selections in the wizzard are ghosted. How do I grant access to this ??
ReplyDeleteSorry, I'm new to Windows 7
If you're getting error that says "ERROR_ACCESS_DENIED", you should try running Web Server Configuration tool in elevated mode - Just right click on its icon and select "Run as Administrator". And I hope you've installed the components I've mentioned in the article.
ReplyDeleteI've resolved the issue. Went into JRun4/bin/wsconfig.exe and set it to run as administrator. after running this file as adminstrator the error went away.
ReplyDeleteDang Sameer Your fast, I didn't even see your reply. Yeah, that's what I did. Thank you so much your help is much appreciated. Very good step by step with screen grabs. VERY HELPFUL!
ReplyDeleteThanks again,
@scott, I'm just as fast as you are. :)
ReplyDeleteYes, Sameer, as others have said, thanks so much. Was installing CF9 today on a new laptop with Windows 7 and hit the error. Searched and found your entry first, and problem solved. Great job.
ReplyDeleteGreat solution, thanks for saving my time!
ReplyDeleteHi Sameer,
ReplyDeleteI've been having problems with connecting IIS:
http://forums.adobe.com/thread/556900?tstart=0
I thought I'd try your instructions for connecting IIS manually, but neither the file jrun_iis6_wildcard.dll or jrun_iis6.dll exists after installing coldfusion.
The only file in wsconfig is jrunwin32.dll
Do you have any suggestions?
Thanks
Hi Gareth,
ReplyDeleteTry to find those dll files. In standard installation, files must be stored at: C:\ColdFusion9\runtime\lib\wsconfig\
Wildcard script map extension points to: C:\ColdFusion9\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll
All other Script map extensions: C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll
Follow the instructions I gave to Brendon in comments above. If your server is 64bit then you must install 64bit edition of CF.
Hi Sameer,
ReplyDeleteThat's very wierd, I've searched the hard-drive, and those 2 files (jrun_iis6_wildcard.dll and jrun_iis6.dll) aren't there at all!
I had a look at a different CF9 server I installed back in December, and those files are there this time.
I've checked the CF download from Adobe I used for each server:
both are called ColdFusion_9_WWE_win64.exe and come in at 443,876kb, so it's not obvious if they've updated the installer in the last few weeks.
I'll try again using December's installer, and see if that makes a difference.
Thanks
As an update to the last post, I tried the installer I download in December, and it didn't make any difference. Obviously they're the same file.
ReplyDeleteI have however figured out why those two files aren't there. I noticed the file C:\ColdFusion9\runtime\lib\wsconfig\wsconfig.log which has the following content:
# Created by JRun on 01/20 20:31:33
01/20 20:31:33 info Macromedia JRun 4.0 (Build 108795)
01/20 20:31:33 debug Created file C:\ColdFusion9\runtime\lib\wsconfig\jrunwin32.dll
01/20 20:31:54 error Could not connect to any JRun/ColdFusion servers on host localhost.
Possible causes:
o Server not running
-Start Macromedia JRun4 or ColdFusion 9 server
o Server running
-JNDI listen port in jndi.properties blocked by TCP/IP filtering or firewall
on server
-host restriction in security.properties blocking communication with server
jrunx.connectorinstaller.NoServerException: Could not connect to any JRun/ColdFusion servers on host localhost.
Possible causes:
o Server not running
-Start Macromedia JRun4 or ColdFusion 9 server
o Server running
-JNDI listen port in jndi.properties blocked by TCP/IP filtering or firewall
on server
-host restriction in security.properties blocking communication with server
at jrunx.connectorinstaller.CIJndi.findServers(CIJndi.java:475)
at jrunx.connectorinstaller.CIJndi.(CIJndi.java:139)
at jrunx.connectorinstaller.CIJndi.(CIJndi.java:145)
at jrunx.connectorinstaller.ConnectorInstaller.parseArgs(ConnectorInstaller.java:228)
at jrunx.connectorinstaller.ConnectorInstaller.(ConnectorInstaller.java:56)
at jrunx.connectorinstaller.ConnectorInstaller.main(ConnectorInstaller.java:760)
I compared it to wsconfig.log on the 'good' server, and whatever process makes this log file, it should copy the other dlls over too.
It looks like I'm back to trying to figure out why the connector can't see coldfusion...
Thanks totally helped me get going on my new Win7 box
ReplyDeleteI've got CF9 setup on win server2008 64bit and the Web Server Configuration tool won't let me "Remove". It give me a message that says "error deleting IIS application extensions .jps, jws, .cfm, ,cfml,....ect. from web site. Any ideas on how to update these manually or get this working.
ReplyDeleteHave you tried removing those extensions manually from IIS?
ReplyDeleteRead this: http://www.codecurry.com/2010/01/coldfusion-manual-configuration-issues.html
Hi Sam,
ReplyDeleteI'm new to coldfusion, but found your article in so many sites & was very interesting going through this article. It will really help me if you can provide me with the installation steps for this cold fusion
Hi Sam: Thank you for writing this awesome article. it helps me a lot. Please be aware that some pictures are not working.. just for the record!! Good job sam!!
ReplyDeleteExcellent content well written. Thank you.
ReplyDeleteWhen I open the web server configuration control panel, configure and click ok, i get an error that says "version 7.0 is installed. supported versions are 4.x, 5.x, 6.x"
ReplyDeletemy environment is
Windows 2008
running CFML 7
Thanks for the helpful article. I'm setting up Win 2008 and IIS 7 for the first time and everything is so different it's making muy head spin :)
ReplyDeleteThanks very helpful! I had the issue with CF9 and IIS7 on vista.
ReplyDeleteMany thanks for this clear and effective tutorial. After following the steps you outline, ColdFusion ran perfectly on Windows 7.
ReplyDeleteWhile I applaud that you've provided this tutorial, this is really something that Adobe should have made clear as I honestly would not have expected to have to manually enable the ISAPI aspects nor select IIS 6 console compatibility.
Again, thank you very much!
Yeah!
ReplyDeleteThanks.. It works for me..
ReplyDeleteThank you for this post, saved my Friday!
ReplyDeleteThanks for the post! Worked like charm :)
ReplyDeleteThank you thank you thank you!!!!!! I had gone through a dozen websites both ASP and ColdFusion related trying to get this issue resolved but only yours had the steps which included adding the configuration through the Web Server Configuration Tool. I took it for granted thinking that this was already configured since I had added IIS as a web server during the CF9 installation process.
ReplyDeleteThanks again!
Ben Forta, best-selling ColdFusion author is coming to India this August at India's largest Adobe Flash Platform Conference. Ben Forta will conduct a visionary keynote on the opening day of the summit. For more information and to register log on to adobesummit.com
ReplyDeleteThanks Sameer, this has been very helpful indeed. Guys, ensure you run the web server configuration as an administrator, you may encounter permission issues as a result of not doing so. Daniel Godinez
ReplyDeleteAbsolutely AWESOME instructions!
ReplyDeleteWorked perfectly!
Thank you! Running it as admin solved the problem of my installation of CF8 on Windows 7x64!! So complicated!
ReplyDeleteTHANK YOU for your clear instructions. Been trying to figure this out and other sites were just more confusing. I've used CF6/7 with IIS6 and now have been given CF 9 with IIS 7 on Sever 2008 with short turn-around deadline and it was making me crazy. THANKS AGAIN!!!
ReplyDeleteThanks for your clear instrucions sameer
ReplyDeleteI know this is an old thread...but it just made my life easier :)
ReplyDeleteWindows 7 64bit, IIS7.5, Coldfusion9(dev ed)
Thanks!
Maybe an old thread, it's still working! Really clear post, thank you. Also worked for my Windows 7 64 Bit as above.
ReplyDeleteAll I have to say is, 'Thank you!'
ReplyDeleteIf you have not heard it enough before, THANK YOU for posting these instructions. Clear, concise, and correct! There were a couple of things that were different in Step 6 on my system: I did not have a cfdocs directory, and I did not find a cf_root directory either. But the CF pages seem to be serving correctly, so I am a happy camper. Thanks again.
ReplyDeleteAs an update to those finding this great resource, please do note that as of CF 9.0.1 (CF 9 Updater 1) you no longer need to enable IIS 6 compatibility. Indeed, 9.0.1 is the first release that formally supports IIS 7, without need of all the monkey business above. :-)
ReplyDeleteSameer did go on to right about it in a couple of entries, when it came out months after this one here, so check them out starting at:
http://www.codecurry.com/2010/07/coldfusion-901-update-now-available.html
Note that those who may download CF 9 even after that update comes out will STILL have to apply the update separately. Adobe did NOT recreate the CF 9 installer to incorporate this updater.
So if you're having trouble with IIS on CF 9, please first just try installing the updater. If you did also do some of this stuff above, and then you install the updater, you may want to (or need to) remove some of the IIS 6 compatibility that you enabled. Sameer discusses that in yet another blog entry, linked from the comments of the one I offered above.
Hope that's helpful.
I get an error that says "version 7.0 is installed. supported versions are 4.x, 5.x, 6.x"
ReplyDeletemy environment is
Windows 2008
running CFMX 7
Any help please???
Hi, Sameer,
ReplyDeleteI have a static html site and 3 cf sites. I upgraded CF to v9. I followed your instructions on removing ISAPI Extensions and IIS Metabase and IIS 6 configuration compatibility.
But after that not only the static html site didn't work, but also the cf sites became inaccessible. They are all down. Do you have any idea? Any pointer is appreciated.
Nathan Chen
Please download and use the CF 9.0.1 installer. Follow the steps at: http://www.codecurry.com/2010/07/installing-coldfusion-901-update.html
ReplyDelete@Anonymous:
ReplyDeleteCFMX 7 is not available for 64-bit machines. In all probability your Win 2008 is running 64 bit. So you should configure IIS to run 32 bit applications.
Thank you. This worked!!
ReplyDeleteThanks a lot mate that helped me a lot
ReplyDeleteColdfusion 8 (32 bit)
Windows 2008 R2 (64 Bit)
Sameer, You are awesome! Thank You, Sir!
ReplyDeleteIt was really helpful and to the point.
ReplyDeleteThanks Sameer
Hi,
ReplyDeleteIs it a must to put your coldfusion codes in C:\inetpub\wwwroot\cfdocs?
As I am thinking of putting the coldfusion code on another location like d:\mywebsite\ and uses the inetmgr for II7 to map the virtual site to d:\mywebsite\
Thanks.
After installing CF on my laptop with no errors, I was concerned when I ran accross this error when I got to the point where I had to open CF Administrator. Luckily, yours was the first page returned in my search for an answer. Thank you. You did a good job. I was able to easily follow your instructions, and got running in no time. Again, thanks.
ReplyDeleteI am trying to install ColdFusion 7 on Windows 2008 64bit. I have set the Default App Pool to 32 bit applications and run the CF Connector again but it keeps saying that id does not support IIS 7.5.
ReplyDeleteIt appears above that some people have gotten it to work. What tricks do I need to know?
Works perfectly .. Thanks a lot
ReplyDeleteThank you...That was a great help.
ReplyDeleteThis was the most important webpage of my day. Exactly what I needed. Thanks.
ReplyDeleteThanks a ton!! this was a great help.
ReplyDeleteTHANK YOU!
ReplyDeleteThanks
ReplyDeleteThis was exactly the solution that I needed! Thanks for the very clear instructions. :)
ReplyDeleteThis problem seems to have re-appeared with the ColdFusion 9.0.2 installer without Verity - when you downgrade a CF10 license to CF9. Installing the ASP.NET and .NET Extensibility Role Services solved the issue though. I had to uninstall and reinstall CF after adding those Role Services though.
ReplyDeleteThis works but has anyone seen a problem with 9.02 and windows server 2008 64bit with the charting not working? i have everything else working but that. Thanks,
ReplyDeleteGreat solution mate. Fixed my problem. Thanks
ReplyDeleteThank you! This resolved hours of frustration!
ReplyDeleteHi,
ReplyDeleteI have installed coldfusion 9 on windows home premium with built in server and it's working fine. But when I run web configuration tool I get error 'DoIISListWebSites(OpenKey): ERROR_ACCESS_DENIED'. I tried running it as administrator though it did not work.
Please help
Thank you! I had to reload my IIS config.
ReplyDeleteThis helped me get my CF server back without re-install.
Hi,
ReplyDeleteI installed ColdFusion 8 on IIS 7.5 , but when I am running Webserver Configuration tool I am getting an error saying
C:/ColdFusion8/runtime/lib/wsconfig/1/jrun_iis6_wildcard.dll(The system cannot find the path specified)
So I went to specified pathh to identify this file. But I am not able to. I didnt see that file in the specified location. Can anyone please suggest me to resolve this issue?
No matter what I seem to do I cannot get CF9 or 10 to finish the install and open the CFIDE/Admin. I get this error message: "http://127.0.0.1/CFIDE/administrator/index.cfm" "HTTP Error 404. The requested resource is not found." I have a 2008 x32 machine that I loaded CF10 x32 on without any issues at all. The 2008 R2 x64 machine...forget it. I have installed and uninstalled so many times it is freaking me out. I tried all of the things above and still am unable to get the thing to work. It is so frustrating. I am a senior tech at a govmt agency and no one is able to get this blasted thing running. Any ideas...anyone?
ReplyDeleteYou've made a tedious process a little less painful. I don't like going through all of the steps required to install anything on my computer.
ReplyDeleteI don't like learning that such and such software is required as a prerequisite before I can put what I really want on the system. However, the images you used helped a lot.
I hope the project managers at Adobe die in a car fire. Adobe products are the most overpriced garbage software. I am happy to use cracked versions of all their software. I refuse to buy their buggy software, and happily give away copies of cracked software.
ReplyDeleteAny one who works for Adobe, I would rather kick in the head, than even look at you.
It's so sad that the only support that is helpful, comes from individuals.
Adobe CF team. I hate you. I hope you get hit by a bus.
Why can't CF just install like it used to?
Because Adobe programmers are the lowest form of scum.
Well, time to go slash more tires at the Seattle headquarters.
Good bye ColdFusion, .... its been a nice ten years, but Adobe has raped CF into a pile of shit.
"Insightful" is the perfect word to describe this wonderful writing of yours. The artistic blend of this subject with your tone of writing made this a great read. Much love 😘.
ReplyDeleteHow to bottom
iso 9001 certification in Delhi
ReplyDeleteiso 27001 certification services
ISO 9001 Certification in Noida
iso 22000 certification in Delhi
iso certification in noida
ReplyDeleteiso certification in delhi
ce certification in delhi
iso 14001 certification in delhi
iso 22000 certification cost
iso consultants in noida
we have provide the best fridge repair service.
ReplyDeleteWashing Machine Repair In Faridabad
LG Washing Machine Repair In Faridabad
Bosch Washing Machine Repair In Faridabad
Whirlpool Washing Machine Repair In Faridabad
Samsung Washing Machine Repair In Faridabad
Washing Machine Repair in Noida
godrej washing machine repair in noida
whirlpool Washing Machine Repair in Noida
IFB washing Machine Repair in Noida
LG Washing Machine Repair in Noida
we have provide the best ppc service.
ReplyDeleteppc company in gurgaon
website designing company in Gurgaon
PPC company in Noida
seo company in gurgaon
PPC company in Mumbai
PPC company in Chandigarh
Digital Marketing Company
Rice Bags Manufacturers
ReplyDeletePouch Manufacturers
fertilizer bag manufacturers
Lyrics with music
Great Article IoT Projects for Students
ReplyDeleteDeep Learning Projects for Final Year
JavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training