Join David Gassner for an in-depth discussion in this video Installing ColdFusion 9 on Windows, part of ColdFusion 9 Essential Training.
You can download the most recent version of ColdFusion 9 from the Adobe website at www.adobe.com/go/coldfusion. From there, follow the prompts to download the evaluation version of ColdFusion. When you've downloaded the software, start up the executable. The ColdFusion installer is fairly simple and easy to use. You'll first see the security warning. Click the Run button to continue. It might take a few moments for the installer to unpack all of the files onto your hard disk.
While that's happening, you can go get a cup of coffee, and then come back and it'll be ready to go. When the process of unpacking the files onto your disk is done, you'll see this welcome message: 'Welcome to the Installation Wizard for Adobe ColdFusion 9'. Click the Next button. Then review the license agreement and if you agree with it, click the appropriate radio button, and then click Next. On this screen, you're asked for a serial number. If you have a ColdFusion serial number, you can enter it now, but more likely, you'll want to choose either the 30-day trial or the Developer Edition.
If you choose the 30-day trial, you'll have complete enterprise ColdFusion capabilities for 30 days. And after that it will turn into the Developer Edition, which has all of the features of the enterprise product, but only allows up to three connections at a time to your ColdFusion server, one from your own computer, and two from other computers. If you choose the Developer Edition from the beginning, as I'm doing, then you'll be working with this limited version from the start. But either way, it's free and you don't have to register the software. Click the Next button.
On this screen, you're asked to choose a configuration. There are three configurations available: the server configuration, which is the one I'll use, includes the ColdFusion Server plus an embedded underlying Java Enterprise Edition Server, specifically it's Adobe's JRun server. You can also install the Enterprise Multiserver configuration. In that case, you get a full copy of JRrun 4, and ColdFusion 9 is installed on a single default instance of the JRun 4 Server. If you have a good understanding of Java Enterprise Edition Application servers, you might choose that architecture.
Finally, the J2EE configuration lets you package ColdFusion as either an EAR file or a WAR file, that is either an Enterprise Application Archive or a Web Application Archive. Once again, if you're familiar with those architectures, you can choose that option. If on the other hand, you're new to Java servers, you should choose the Server configuration. I'll choose that configuration and then click Next. On this screen, you're asked which subcomponents you want to install. You only need ODBC Services, if you're going to use an ODBC compatible database, such as Microsoft Access.
Throughout this video series, I'll be using a Java-based database called Apache Derby. So I won't need the ODBC Services, but I'll install them anyway just in case I need to use an ODBC compatible database in the future. There are two search services included with ColdFusion 9. The one labeled ColdFusion 9 Search Services is called Verity. Verity has been a part of the ColdFusion product for a long time. It allows you to do full text indexing and you can apply that indexing to either documents or the contents of database queries.
The Solr Services are new to ColdFusion 9 and they offer similar functionality to Verity, but Solr is available on all platforms whereas Verity was limited to certain operating systems. Because you're installing on Windows, you can install the .NET Integration Service. This is a feature that's been a part of ColdFusion since Version 8. And finally, ColdFusion 9 Documentation. You'll definitely want to choose this option for this video series because by installing the documentation, you get sample databases and a bunch of sample code. If you're installing ColdFusion on a production server though, I recommend that you don't install the documentation because it includes a lot of files that just aren't needed in a production environment.
I'll select all of the options and click Next. Now I select the directory where I want to install ColdFusion 9. I'll use the default, C, colon, backslash ColdFusion9 and click Next. On this screen, you indicate which web server you want to bind ColdFusion to. My system has Internet Information Services, or IIS, installed. That's Microsoft's web server that comes with certain versions of Windows. I'm not going to use it for this video series though, because not everybody will have it available. Instead, I'll use the built-in web server.
This is a web server that's bundled with ColdFusion, designed for development use only, which listens, by default, on port 8500. I'll talk a lot more about that in later videos. I'll click Next and go to the next screen. Now I'm asked for a password. Choose a password that you'll remember and enter it twice. And then click Next. On this screen, you're asked whether you want to enable RDS. RDS is the Remote Development Service. It's a protocol that lets ColdFusion and your development environment, ColdFusion Builder, communicate with each other.
Many of the tutorials in this video series will depend on using RDS. So I'll enable it, and once again, type in a password twice. Then I'll click Next. On this summary screen, I can check out all of the options and then click the Install button. The install process will take quite a few minutes. But when the process is done, you'll see a screen that asks you whether you want to finalize your installation and then go into the ColdFusion Administrator. I'll end this video here, clicking the Install button, and in a later video you'll see what happens in the last part of the installation.
- Using ColdFusion Builder to define a default page template
- Defining a data source with ColdFusion Administrator
- Creating data access ColdFusion Components (CFCs) in ColdFusion Builder
- Using ColdFusion ORM (Object Relational Mapping)
- Applying dynamically developed URLs to datasets
- Validating data entry forms and defining client-side validation rules
Skill Level Beginner
Q: While trying to build a dynamic site as instructed in the ColdFusion 9 Essential Training title, an error occurred when setting up the Date & Services > Data Sources page as shown in the "Defining a data source in ColdFusion Administrator" movie:
Connection verification failed for data source: dw_bookstore. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Also, attempts to connect to the database using phpMyAdmin were not successful. Is there a fix to this problem?
A: If the connection to phpMyAdmin is not working, starting over with the installation of MySQL is the best bet. Uninstall WampServer, then reinstall and set up the database again. If that software is not working, the connection to the database from will not be possible from ColdFusion.