Macromedia ColdFusion - MX 7.0 Installation Manual

COLDFUSION®MX 7
Installing and Using ColdFusion MX
Trademarks
1 Step RoboPDF, ActiveEdit, ActiveTest, Authorware, Blue Sky Software, Blue Sky, Breeze, Breezo, Captivate, Central, ColdFusion, Contribute, Database Explorer, Director, Dreamweaver, Fireworks, Flash, FlashCast, FlashHelp, Flash Lite, FlashPaper, Flex, Flex Builder, Fontographer, FreeHand, Generator, HomeSite, JRun, MacRecorder, Macromedia, MXML, RoboEngine, RoboHelp, RoboInfo, RoboPDF, Roundtrip, Roundtrip HTML, Shockwave, SoundEdit, Studio MX, UltraDev, and WebHelp are either registered trademarks or trademarks of Macromedia, Inc. and may be registered in the United States or in other jurisdictions including internationally. Other product names, logos, designs, titles, words, or phrases mentioned within this publication may be trademarks, service marks, or trade names of Macromedia, Inc. or other entities and may be registered in certain jurisdictions including internationally.
This product includes code licensed from RSA Data Security.
Third-Party Information
This guide contains links to third-party websites that are not under the control of Macromedia, and Macromedia is not responsible for the content on any linked site. If you access a third-party website mentioned in this guide, then you do so at your own risk. Macromedia provides these links only as a convenience, and the inclusion of the link does not imply that Macromedia endorses or accepts any responsibility for the content on those third-party sites.
Copyright © 1999–2005 Macromedia, Inc. All rights reserved. U.S. Patents Pending. This manual may not be copied, photocopied, reproduced, translated, or converted to any electronic or machine-readable form in whole or in part without written approval from Macromedia, Inc. Notwithstanding the foregoing, the owner or authorized user of a valid copy of the software with which this manual was provided may print out one copy of this manual from an electronic version of this manual for the sole purpose of such owner or authorized user learning to use such software, provided that no part of this manual may be printed out, reproduced, distributed, resold, or transmitted for any other purposes, including, without limitation, commercial purposes, such as selling copies of this documentation or providing paid-for support services. Part Number ZCF70M100
Acknowledgments
Project Management: Randy Nielsen
Writing: Anne Sandstrom
Editing: Linda Adler, Noreen Maher
Production Management: Patrice O’Neill,
Media Design and Production: John Francis, Adam Barnett
Special thanks to Sawako Gensure, Seungmin Lee, Takashi Koto, Nozomi Kugita, Masayo Noda, Hiroshi Okugawa, Bowne Global Solutions
First Edition: January 2005 Macromedia, Inc.
600 Townsend St. San Francisco, CA 94103

CONTENTS

INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
CHAPTER 1: Preparing to Install ColdFusion MX 7 . . . . . . . . . . . . . . . . . . . . . . . . . 7
About the ColdFusion MX 7 installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ColdFusion MX 7 product editions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Installation considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Gathering information necessary to install ColdFusion MX 7 . . . . . . . . . . . . . . . . 13
CHAPTER 2: Installing the Server Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 15
Installing ColdFusion MX 7 using the server configuration. . . . . . . . . . . . . . . . . . 15
Installing the ColdFusion Report Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Installing the Verity search server separately. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
ColdFusion MX 7 server configuration directory structure . . . . . . . . . . . . . . . . . . 20
Using the built-in web server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Uninstalling ColdFusion MX 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
CHAPTER 3: Installing the Multiserver Configuration . . . . . . . . . . . . . . . . . . . . . . 25
About multiserver configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Installing ColdFusion MX 7 using the multiserver configuration . . . . . . . . . . . . . 26
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Installing the ColdFusion Report Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Installing the Verity search server separately. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Uninstalling ColdFusion MX 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
CHAPTER 4: Installing the J2EE Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 31
J2EE application servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Preparing to install using the J2EE configuration . . . . . . . . . . . . . . . . . . . . . . . . . 34
Installing an EAR file or WAR files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Installing the ColdFusion Report Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Installing the Verity search server separately. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
ColdFusion MX 7 J2EE deployment and configuration . . . . . . . . . . . . . . . . . . . . 39
Undeploying ColdFusion MX 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3
CHAPTER 5: Configuring Your System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Overview of configuration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Managing ColdFusion MX 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Configuring web servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Installing Verity Locales. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Enabling CORBA support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Disabling Remote Development Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Disabling JSP functionality (server configuration only) . . . . . . . . . . . . . . . . . . . . . 60
Changing the ColdFusion MX 7 user account in Windows. . . . . . . . . . . . . . . . . . 61
Connecting to an external JDBC Type 4 data source. . . . . . . . . . . . . . . . . . . . . . . 61
CHAPTER 6: Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Common installation problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Data source problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Migration problems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
J2EE configuration problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Post-install problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Uninstall problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
4 Contents

INTRODUCTION

Installing and Using ColdFusion MX is intended for anyone who needs to install and configure Macromedia ColdFusion MX 7.

About ColdFusion MX 7 documentation

The ColdFusion MX 7 documentation is designed to provide support for the complete spectrum of participants.

Documentation set

The ColdFusion MX 7 documentation set includes the following titles:
Book Description
Installing and Using ColdFusion MX
Configuring and Administering ColdFusion MX
ColdFusion MX Developer’s Guide
Getting Started Building ColdFusion MX Applications
CFML Reference Provides descriptions, syntax, usage, and code examples for all ColdFusion
CFML Quick Reference Provides a brief guide that shows the syntax of ColdFusion tags, functions,
Describes system installation and basic configuration for Windows, Solaris, and Linux. To see this manual, go to www.macromedia.com/go/
livedocs_cfmx7docs_installing.
Part I describes how to manage the ColdFusion environment, including connecting to your data sources and configuring security for your applications. Part II describes Verity search tools and utilities that you can use for configuring the Verity Search Server engine, as well as creating, managing, and troubleshooting Verity collections. To see this manual, go to
www.macromedia.com/go/livedocs_cfmx7docs_configadmin.
Describes how to develop your dynamic web applications, including retrieving and updating your data, using structures, and forms. To see this manual, go to www.macromedia.com/go/livedocs_cfmx7docs_dev.
Contains an overview of ColdFusion features and application development procedures. Includes a tutorial that guides you through the process of developing an example ColdFusion application. To see this manual, go to
www.macromedia.com/go/livedocs_cfmx7docs_gs.
tags, functions, and variables. To see this manual, go to
www.macromedia.com/go/livedocs_cfmx7docs__cfml_reference.
and variables.
5

Viewing online documentation

All ColdFusion MX 7 documentation is available online in HTML and Adobe Acrobat Portable Document Format (PDF) files. Go to the documentation home page for ColdFusion MX on the Macromedia website: www.macromedia.com. In addition, you can view the documentation in LiveDocs, which lets you add comments to pages and view the latest comments added by Macromedia, by going to www.macromedia.com/go/livedocs_cfmx7docs.
6 Introduction:
CHAPTER 1

Preparing to Install ColdFusion MX 7

This chapter describes Macromedia ColdFusion MX 7 product editions, system requirements, and other high-level considerations. Before installing ColdFusion MX 7, you should review the information in this chapter and determine the answers to the questions in the section “Gathering
information necessary to install ColdFusion MX 7” on page 13.

Contents

About the ColdFusion MX 7 installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ColdFusion MX 7 product editions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Installation considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Gathering information necessary to install ColdFusion MX 7 . . . . . . . . . . . . . . . . . . . . . . . . . 13

About the ColdFusion MX 7 installation

ColdFusion MX 7 provides a powerful and flexible installation and upgrade process. The ColdFusion MX 7 installation process includes the following phases:
1.
Plan the installation. You determine your installation, configuration, and upgrade options.
2.
Run the installer. You run the ColdFusion MX 7 installer.
3.
(J2EE configuration only) Deploy ColdFusion MX 7. You deploy and configure ColdFusion MX 7 on your J2EE application server.
The ColdFusion MX 7 installation process supports the following scenarios:
New installation Install ColdFusion MX 7 on a computer with no previous ColdFusion
installation.
Upgrade installation You can upgrade from ColdFusion 4.5, ColdFusion 5, ColdFusion MX,
and ColdFusion MX 6.1. When upgrading from ColdFusion 4.5, or 5, the installer migrates previous settings to ColdFusion MX 7. When upgrading from ColdFusion MX or ColdFusion MX 6.1, the installer preserves the existing settings and installs in a new directory, automatically assigning ports that do not conflict with the existing installation.
7
You can install ColdFusion MX 7 in any of the following configurations:
Server configuration Lets you install one instance of ColdFusion MX 7 with an embedded
J2EE server. This configuration most closely resembles the ColdFusion MX base release and other releases prior to ColdFusion MX, such as ColdFusion 5 and ColdFusion 4.5. This was formerly known as the stand-alone configuration. For information on installing the server configuration, see Chapter 2, “Installing the Server Configuration,” on page 15.
Multiserver configuration (Enterprise Edition only) Installs JRun and automatically deploys
ColdFusion MX 7 in a separate JRun server instance. This configuration supports server instance creation and ColdFusion deployment in the ColdFusion MX Administrator and lets you manage ColdFusion MX 7 deployments on multiple JRun servers. For information on installing the multiserver configuration, see Chapter 3, “Installing the Multiserver Configuration,” on page 25.
J2EE configuration (Enterprise Edition only) Lets you deploy ColdFusion MX 7 as a Java
application running on a Java 2 Enterprise Edition (J2EE) application server, either using the bundled license of JRun or using a third-party J2EE server, such as IBM WebSphere or BEA WebLogic. When you use the J2EE configuration, you can deploy ColdFusion MX 7 multiple times on a single computer. For information on installing the J2EE configuration, see Chapter 4,
“Installing the J2EE Configuration,” on page 31.
The remainder of this chapter describes product editions and system requirements. After you understand the editions and ensure that your environment meets the system requirements, continue with the instructions in Chapter 2, “Installing the Server Configuration,” on page 15
Chapter 3, “Installing the Multiserver Configuration,” on page 25, or Chapter 4, “Installing the J2EE Configuration,” on page 31, as appropriate.

ColdFusion MX 7 product editions

The following table describes each edition of ColdFusion MX 7:
Edition Description Licensing
Developer For Windows and Linux.
Supports requests from the local host and two remote IP addresses. Includes every feature in the Enterprise Edition, with the following exceptions:.
Banded reports, output from the charts are watermarked.
Verity update is supported on a single-server configuration only.
There is a 10K Verity document search limit.
EAR/WAR deployment is not supported.
If you install ColdFusion MX 7 in Trial mode, it reverts to
Developer Edition after 30 days.
8 Chapter 1: Preparing to Install ColdFusion MX 7
cfdocument tag, and
Free for a single computer used for development and evaluation purposes only. Applications on Development Edition server are viewable from up to five client machines. Not licensed for deployment.
Edition Description Licensing
Standard For Windows and Linux.
Features full ColdFusion Markup Language (CFML) support, including:
Licensed per server (up to eight processors per server).
Custom tags and ColdFusion Components.
Full support for server-side ActionScript and
Macromedia Flash Remoting.
Extensibility and integration with Simple Object Access Protocol (SOAP) and Extensible Markup Language (XML), and with Component Object Model (COM), Enterprise Java Beans (EJBs), and Common Object Request Broker Architecture (CORBA).
Rich forms.
A built-in charting and graphing engine, including
enhancements in ColdFusion MX 7.
Database connectivity using ODBC with a desktop database, such as Microsoft Access, and using a Type 4 driver for SQL Server or MySQL.
Database and LDAP directory authentication, and resource security.
A 125K Verity document search limit.
ColdFusion MX 7 reporting
ColdFusion MX 7 product editions 9
Edition Description Licensing
Enterprise For Windows, Linux, and Solaris.
Includes every feature in the Standard Edition, and also provides the following:
Database connectivity using Type 4 drivers for Oracle, DB2, Sybase, and Informix
External Event Gateway support, including XMPP/ Jabber IM Gateway, Lotus Sametime IM Gateway, Asynchronous CFML Gateway, SMS/Mobile Cell Gateway, and local SMS development toolkit
The ability to import and execute Java Server Page (JSP) servlets and JSP Tag Library imports
Server sandbox security
A 250K Verity document search
Advanced server management capabilities, including
server log analysis, configurable probes and alarms, and automated archive and deployment options
J2EE support, in particular, Servlet, Java Server Pages (JSP), and Enterprise JavaBeans (EJB)
Support for deployment on third-party J2EE application servers
Multiserver configuration and J2EE configuration support running multiple instances of ColdFusion MX 7 on a single computer
Backup mail servers and multithreaded e-mail delivery
HTTP-based load-balancing and failover using the
Cluster Manager
Complete JRun 4 included
EAR/WAR package creation, and EAR/WAR
deployment
Archive and deployment services
Licensed per CPU. Initial license is for two CPUs; licenses available in two­CPU increments.
Note: If you have a previous licensed version of ColdFusion installed, and you want to evaluate the Report Builder, you must install a trial or developer edition of ColdFusion MX 7.

System requirements

The ColdFusion MX 7 system requirements are available on the Macromedia web site. To view the system requirements, including a list of supported J2EE application servers, go to
www.macromedia.com/go/sysreqscf.
To use third-party JDBC type 4 drivers, see “Connecting to an external JDBC Type 4 data
source” on page 61. The installation instructions also describe how to provide ODBC database
support on Windows.
10 Chapter 1: Preparing to Install ColdFusion MX 7

Installation considerations

This section describes the following topics for installing or upgrading to ColdFusion MX 7:
Installation considerations for all platforms
Installation considerations for Windows
Installation considerations for UNIX
Note: To use VisiBroker for CORBA connections in ColdFusion MX 7, see “Enabling CORBA
support” on page 57.

Installation considerations for all platforms

The following are installation considerations for all platforms:
Macromedia supports installing ColdFusion MX 7 side-by-side with ColdFusion MX 6.1 and
ColdFusion MX. Macromedia supports upgrading to ColdFusion MX 7 from ColdFusion 5 and ColdFusion 4.5. If you are upgrading, you must back up your existing ColdFusion applications first.
If you have previously installed a Beta version of ColdFusion MX 7, you must uninstall it
before you install the release version.
Macromedia recommends using the built-in (internal port-based) web server for development,
but not in a production environment.
If you have ColdFusion 4.5 or 5 installed on your computer, ColdFusion MX 7 installs in
coexist mode automatically. You can migrate ColdFusion 4.5 or ColdFusion 5 resources (such as data sources and Verity collections) to ColdFusion MX 7.
Previous versions of ColdFusion MX, including ColdFusion MX 6.1, can coexist with
ColdFusion MX 7; however, you cannot install ColdFusion MX 7 in the directory where ColdFusion MX 6.1 resides.
You can switch to use a different web server for ColdFusion MX 7 after the installation, by following the instructions for your platform and the web server in “Configuring web servers”
on page 49.
During installation of the server configuration, if you select the built-in web server, your web
root directory is C:/CFusionMX7/wwwroot by default. This web server runs on the 8500 port.
To display a page, append 8500 to the end of the host name or IP address; for example,
http://localhost:8500/MyApp.cfm. (If the page still does not appear, ensure that the document is located in the ColdFusion MX 7 web root directory; for example, C:/CFusionMX7/ wwwroot\MyApp.cfm. For more information, see “Using the built-in web server” on page 21.
To interact with ColdFusion pages and components from a Macromedia Flash SWF file, use
the Flash Remoting service in ColdFusion MX 7. To develop applications that use Flash Remoting, you must install the Flash Remoting components in the Flash MX authoring environment. The Flash MX authoring environment or Macromedia Flex is required to build applications that connect to and interact with the Flash Remoting service in ColdFusion MX 7.
By default, Macromedia Flash Remoting cannot access web services through
ColdFusion MX 7.
Installation considerations 11
To enable Flash Remoting to access web services through ColdFusion MX 7:
1.
Open the cf_root/WEB-INF/gateway-config.xml file in a text editor.
2.
Locate the following line.
<!--<adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>-->
3.
Remove the comments, so that the line appears as follows.
<adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>
4.
Save the file.
5.
Restart ColdFusion MX 7.
For more information on Flash Remoting, see ColdFusion MX Developer’s Guide.
ColdFusion MX 7 is built in Java and when installing the server configuration, the
ColdFusion MX 7 installer automatically installs the JRE that is appropriate for your platform. When installing the J2EE configuration, ColdFusion MX 7 uses the same JRE as your J2EE application server.
In an optimal production environment, each ColdFusion MX 7 application is hosted on a
dedicated server; database, mail, and other servers are not on the same computer.

Installation considerations for Windows

The following installation considerations are for Windows systems only:
Do not configure the server running ColdFusion MX 7 as a Primary Domain Controller
(PDC) or Backup Domain Controller (BDC). Macromedia follows the Microsoft network model, in which the first level is the PDC or BDC. These systems only manage the network or domain and are not designed to run application servers. ColdFusion MX 7 should reside on the second level of Microsoft Windows 2000 stand-alone systems. Stand-alone servers can participate in a network or domain.
Windows 2000 Professional handles only ten TCP/IP connections concurrently. Therefore,
Macromedia does not recommend using this operating system in a production environment; use Windows 2000 Server instead.

Installation considerations for UNIX

The following are installation considerations for UNIX systems only:
For troubleshooting purposes, the installer creates the following log file during an installation
or upgrade on UNIX: cf_root/Macromedia_ColdFusion_MX7_install.log. If you contact Macromedia Technical Support for installation support, you must send them this file.
If you are deploying the J2EE configuration on a platform other than Linux or Solaris, use the
coldfusion-70-other.jar installer. This Java-only installer does not include features that require platform-specific binary files, such as Verity and C++ CFX support.
Macromedia does not recommend using Apple Mac OS X 10.3 in a production environment
12 Chapter 1: Preparing to Install ColdFusion MX 7

Gathering information necessary to install ColdFusion MX 7

Although the ColdFusion MX 7 installer provides an intuitive interface, it helps to plan your answers to the questions asked by the installer. Use the following table to help plan for installing ColdFusion MX 7. You should first determine the type of installation, and then answer the questions that pertain to that type of installation.
Question Answer Installation types
Platform-specific installer name?
What is the serial number for ColdFusion MX 7?
What is the type of installation?
EAR file or WAR files? EAR | WAR J2EE configuration
Install which subcomponents?
JRun installation directory? ___________________________________ Multiserver configuration
Installation directory for EAR or WAR file?
Context root for ColdFusion (EAR file only, default=cfmx)?
Java Servlet API version? 2.3 or greater | 2.2 or lower J2EE configuration
ColdFusion MX 7 installation directory?
Configure web server or use built-in web server?
Choose web server to configure.
(Apache and SunONE) Configuration directory?
___________________________________ All
___________________________________ All
Server configuration Multiserver configuration J2EE configuration
ColdFusion MX 7 ODBC Services ColdFusion MX 7 Search Services Getting Started Experience,
Tutorials, & Documentation Note: Do not install the Getting
Started Experience if you are installing in a production environment.
___________________________________ J2EE configuration
___________________________________ J2EE configuration
___________________________________ Server configuration
Configure web server for ColdFusion MX 7 | Enable ColdFusion MX built-in web server (coexist)
IIS | Apache | SunONE| Other Server configuration
___________________________________ Server configuration (new
All
All
Server (existing ColdFusion web server configuration) Multiserver configuration
Multiserver configuration
installation) Server configuration (existing ColdFusion 4.5/5) Multiserver configuration
Gathering information necessary to install ColdFusion MX 7 13
Question Answer Installation types
(Apache) Path to server binary?
___________________________________ Server configuration (new
installation) Server configuration (existing
ColdFusion 4.5/5) Multiserver configuration
ColdFusion MX
___________________________________ All
Administrator password?
Do you want to enable RDS?
Yes | No Note: RDS allows the server to
All
interact with remotely connected developers. Macromedia recommends that you disable RDS for production servers.
Disabling RDS also disables the directory browsing applets in the ColdFusion MX Administrator.
RDS password? ___________________________________ All
14 Chapter 1: Preparing to Install ColdFusion MX 7
CHAPTER 2

Installing the Server Configuration

This chapter describes how to install and uninstall ColdFusion MX 7 in the server configuration. The ColdFusion MX 7 server configuration contains an embedded copy of JRun and is most similar to previous ColdFusion versions.
Note: In this chapter, cf_root refers to your installation directory. By default, this directory is C:\CFusionMX7 in Windows, and /opt/coldfusionmx7 on UNIX.

Contents

Installing ColdFusion MX 7 using the server configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Installing the ColdFusion Report Builder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Installing the Verity search server separately . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
ColdFusion MX 7 server configuration directory structure . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Using the built-in web server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Uninstalling ColdFusion MX 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Installing ColdFusion MX 7 using the server configuration

This section provides installation instructions for the ColdFusion MX 7 server configuration on Windows, Linux, and UNIX.
Before you run the installer, you should determine the answers to the questions in the section
“Gathering information necessary to install ColdFusion MX 7” on page 13.
15

Installing ColdFusion MX 7 server configuration on Windows

This section explains how to install ColdFusion MX 7 on Windows.
Note: The Windows installer requires a computer that supports at least 256 colors.
To install ColdFusion MX 7 in Windows:
1.
Read the online version of the Release Notes for any late-breaking information or updates. For more information, see www.macromedia.com/go/proddoc_releasenotes.
2.
Ensure that your operating system meets the system requirements described in “System
requirements” on page 10.
3.
Review “Installation considerations for Windows” on page 12 and “Installation considerations
for all platforms” on page 11.
4.
Determine the answers to the questions in the section “Gathering information necessary to
install ColdFusion MX 7” on page 13.
5.
Close any applications that are currently running on your computer.
6.
If you plan to configure an external web server, ensure that the web server is running.
7.
If you are installing on a computer on which ColdFusion 4.5 or 5 already exists, shut down all ColdFusion services. For information about stopping ColdFusion services, see “Managing
ColdFusion MX 7 services in Windows” on page 47.
8.
Insert the CD or download the setup file from the Macromedia website.
9.
If the installation wizard does not start automatically when you insert the CD, locate the setup.exe file on the CD and double-click it. If you are installing from a network or a downloaded file, locate the ColdFusion MX 7 installation executable file (coldfusion-70­win.exe) and double-click it.
The installation wizard starts.
10.
Follow the instructions in the wizard, and let it run to completion.
11.
Open the ColdFusion MX Administrator to configure the server.
12.
After the server configuration is complete, click OK to run the Getting Started Experience.
If you are new to ColdFusion, you can use the Getting Started Experience to learn about the basics of creating a ColdFusion application. If you are already familiar with ColdFusion, you can view code snippets that highlight the new features in ColdFusion MX 7.
13.
To install the ColdFusion MX 7 Extensions for Dreamweaver, double-click the cfmx7dreamweaverextensions.mxp file, which is located in the cf_root/wwwroot/CFIDE/ installers directory.
Note: If you configured ColdFusion MX to run with an external web server, this file is in the
webroot/CFIDE/installers directory.
14.
To install ColdFusion MX 7 Report Builder, double-click the CFReportBuilderInstaller.exe file, which is in the cf_root/wwwroot/CFIDE/installers directory.
15.
Configure and manage your system, as described in Chapter 5, “Configuring Your System,” on
page 45.
16.
To learn about ColdFusion MX 7, read the documentation, which is accessible through the Documentation link at the top of the ColdFusion MX Administrator.
16 Chapter 2: Installing the Server Configuration
Migrating Windows settings manually
If you are upgrading from ColdFusion 4.5 or 5, you can optionally migrate settings later, manually.
To migrate settings manually:
1.
Close the ColdFusion MX Administrator, if it is not already closed.
2.
Open the cf_root\lib\adminconfig.xml (server configuration) file in a text editor.
3.
Change the value for runmigrationwizard and runmxmigrationwizard to true, as necessary, so the appropriate lines of the file appear as follows:
<runmigrationwizard>true</runmigrationwizard>
or
<runmxmigrationwizard>true</runmxmigrationwizard>
4.
Change the value for migratecf5 or migratecf6 to true, as necessary, so the appropriate lines of the file appear as follows:
<migratecf5>true</migratecf5>
or
<migratecf6>true</migratecf6>
5.
Save the file.
6.
Restart the ColdFusion MX Administrator from the Windows Start menu.
You are prompted again to migrate your settings.
Caution: If you migrate your ColdFusion 5 settings later, you might overwrite new ColdFusion MX 7 settings.

Installing the ColdFusion MX 7 server configuration on UNIX

This section explains how to install ColdFusion MX 7 on UNIX.
By default, ColdFusion MX 7 installs into the /opt/coldfusionmx7 directory. To install it into a different directory, you must create that directory before you run the installation.
Note: The default user is nobody for the UNIX installer running ColdFusion MX 7.
To install the ColdFusion MX 7 server configuration on UNIX:
1.
Read the online version of the Release Notes for any late-breaking information or updates. For more information, see www.macromedia.com/go/proddoc_releasenotes.
2.
Ensure that your operating system meets the system requirements as described on the Macromedia web site at www.macromedia.com/go/sysreqscf.
3.
Review “Installation considerations for UNIX” on page 12 and “Installation considerations for
UNIX” on page 12.
4.
Determine the answers to the questions in the section “Gathering information necessary to
install ColdFusion MX 7” on page 13.
5.
If you plan to configure an external web server, ensure that the web server is running.
Installing ColdFusion MX 7 using the server configuration 17
6.
If you are installing on a computer on which ColdFusion 4.5 or 5 already exists, shut down the ColdFusion servers. For information about stopping ColdFusion services, see “Managing the
ColdFusion MX 7 process on UNIX” on page 48.
7.
Log in as root.
8.
Copy the installation file that is appropriate for your platform and locale from the CD or Macromedia website, and save it to a directory on your local disk.
The following are the installation files for supported server configuration platforms:
coldfusion-70-lin.bin
coldfusion-70-sol.bin
9.
Using the cd command, go to the directory that contains the installation file.
10.
Start the installation with the following command:
./<filename>
The installation program starts.
Note: To run the UNIX installer in GUI mode, type ./<filename> -i gui.
11.
Follow the prompts, and let the installation program run to completion.
Caution: For security reasons, it is crucial that you do not use root for the runtime user.
12.
Start ColdFusion MX 7 with the following command:
/cf_root/bin/coldfusion start
If you specified the use of an external web server when you ran the installer, ColdFusion MX 7 automatically runs the cf_root/bin/cfmx-connectors.sh script when it starts the first time. This shell script runs the Web Server Configuration Tool using the settings you specified during the installation. If there are problems running this script, review the configuration and bin directory specifications, modify as necessary, and rerun the script. You can also configure your web server using the scripts in cf_root/bin/connectors, as appropriate.
To stop ColdFusion MX 7, use the following command:
/cf_root/bin/coldfusion stop
For more information on managing processes, see “Managing the ColdFusion MX 7 process
on UNIX” on page 48.
13.
Open ColdFusion MX Administrator to run the configuration wizard.
14.
Configure and manage your system, as described in Chapter 5, “Configuring Your System,” on
page 45.
15.
To learn about ColdFusion MX 7, read the documentation, which is accessible through the Documentation link at the top of the ColdFusion MX Administrator.
18 Chapter 2: Installing the Server Configuration
Migrating UNIX settings manually
If you are upgrading from ColdFusion 4.5 or 5, you can optionally migrate settings later. To migrate later:
To migrate settings manually:
1.
Close the ColdFusion MX Administrator, if it is not already closed.
2.
Open the cf_root/lib/adminconfig.xml file in a text editor.
3.
Change the value of runmigrationwizard and runmxmigrationwizard to true, as necessary, so that the appropriate lines of the file appear as follows:
<runmigrationwizard>true</runmigrationwizard> <runmxmigrationwizard>true</runmxmigrationwizard>
4.
Save the file.
5.
Restart the ColdFusion MX Administrator.
You are prompted again to migrate your settings.
Caution: If you migrate your ColdFusion 5 settings later, you might overwrite new ColdFusion MX 7 settings.

Installing the ColdFusion Report Builder

ColdFusion MX 7 reporting consists of server-side runtime processing and the ColdFusion Report Builder. The server-side processing is available on any platform, however, the ColdFusion Report Builder runs on Windows only.
To install the ColdFusion Report Builder:
1.
Access the ColdFusion Report Builder installer from one of the following locations:
The ColdFusion MX 7 installation Go to the webroot/CFIDE/installers directory.
The ColdFusion MX 7 CD Use the CD Browser to select the ColdFusion MX reporting
option.
The Macromedia web site Go to www.macromedia.com/go/cfmx7_reporting/.
2.
Double-click the CFReportBuilderInstaller.exe file.
3.
Follow the instructions in the installation.

Installing the Verity search server separately

By default, the installer installs the Verity search server on the same computer as ColdFusion MX 7. To enable searches using Verity, if you want to install the Verity search server on a different computer from the one where you install ColdFusion MX 7, you must install the Verity search server separately. For more information, see “Installing the Verity search server
separately” on page 39.
Installing the Verity search server separately 19

ColdFusion MX 7 server configuration directory structure

The following table describes the directories under the cf_root directory when you install the server configuration of ColdFusion MX 7:
Directory Description
bin Programs for starting, stopping, and viewing information for ColdFusion MX 7, and
to run Crystal Reports (Windows only).
cache Repository for temporary files from ColdFusion MX 7.
cfx Sample C++ and Java CFX files with their supporting files. You can also store your
CFX files in this directory (although you can put them in any location that is defined in your classpath).
charting Files for the ColdFusion MX 7 graphing and charting engine.
CustomTags Repository for your custom tags.
db In Windows, the files for sample Microsoft Access databases and ODBC services.
On UNIX, the files for the sample PointBase databases.
gateway (Enterprise Edition only) Files for ColdFusion MX 7 event gateways.
jintegra JIntegra programs, libraries, and other supporting files (for example, to integrate
Java and COM code; manage access to ActiveX controls (OCXs) that are hosted in a graphical user interface (GUI) container; and register the JVM and type libraries).
lib JAR, XML, property, and other files that are the foundation of ColdFusion MX 7, for
functionality such as queries, charting, mail, security, Verity searches, and system probes.
logs Repository for ColdFusion MX 7 log files.
JRE-specific log files are in the runtime/logs directory.
Mail Repository for spooled mail and mail that cannot be delivered.
META-INF XML metadata for the ColdFusion MX Administrator.
registry (UNIX only) Flat file to store registry settings
runtime Programs and supporting files for the ColdFusion MX 7 runtime.
In Windows, the files for the bundled JRE are in runtime\jre.
runtime/jre Files for the Java Runtime Environment (JRE) that is bundled with
ColdFusion MX 7.
temp_zip The zipped version of the sample applications.
uninstall Files to uninstall ColdFusion MX 7.
verity Verity collections. (The Verity program files are in the lib directory.)
wwwroot Default web root directory for the built-in web server. When running on other web
servers, this directory contains only the WEB-INF directory; do not remove this directory.
20 Chapter 2: Installing the Server Configuration

Using the built-in web server

ColdFusion MX 7 has its own web server that you can use to develop ColdFusion MX 7 applications, without depending on an external web server, such as Internet Information Server (IIS), Apache, or SunONE. Macromedia does not recommend using the built-in web server in a production environment. However, it is more than suitable for development, allowing you to create virtual directories and set the default document (for example, default.cfm or index.cfm).
During the ColdFusion MX 7 installation, you must choose a web server. If you select the built-in web server, your web root directory is located in the cf_root/wwwroot directory. By default, the web server runs on port 8500. This means that to display a page in your application, you must
append :8500 to the host name or IP address in the URL; for example,
http://localhost:8500/YourApp1/index.cfm. (If the page still does not appear, make sure that the document is located in the built-in web server’s web root directory; for example, C:\CFusionMX7\wwwroot\YourApp1\index.cfm.)
Note: If you install the Server configuration of ColdFusion MX 7 with the built-in server and port 8500 is in use, for example by ColdFusion MX or ColdFusion MX 6.1, the installer starts with port 8501 and looks at up to 100 ports to find one that is not being used by an application that is running. ColdFusion MX 7 uses that port and displays a message to indicate which port it selected.
If you select an external web server, the built-in web server is deactivated.

Switching the port for the built-in web server

You can change the port on which the built-in web server runs.
To change the port for the built-in web server:
1.
Back up the jrun.xml file.
This file is in the cf_root\runtime\servers\default\SERVER-INF directory in Windows, and in the cf_root/runtime/servers/default/SERVER-INF directory on UNIX.
2.
Open the original jrun.xml file for editing.
3.
Change the port number specified in the WebService port attribute (near the bottom of the file):
<service class="jrun.servlet.http.WebService" name="WebService">
<attribute name="port">8500</attribute>
<attribute name="interface">*</attribute> <attribute name="deactivated">false</attribute> ...
</service>
Note: Make sure that the deactivated attribute is set to false.
4.
Save the file.
5.
Restart ColdFusion MX 7.
Using the built-in web server 21

Switching from another web server

You can switch from an external web server to the built-in ColdFusion MX 7 web server without reinstalling, even if you did not select it during installation.
To switch from an external web server to the built-in web server:
1.
Back up the jrun.xml file.
This file is in the cf_root\runtime\servers\default\SERVER-INF directory in Windows, and in the cf_root/runtime/servers/default/SERVER-INF directory on UNIX.
2.
Open the original jrun.xml file for editing.
3.
Locate the WebService service and set the deactivated attribute to false:
<service class="jrun.servlet.http.WebService" name="WebService">
<attribute name="port">8500</attribute> <attribute name="interface">*</attribute>
<attribute name="deactivated">false</attribute>
...
</service>
4.
Locate the ProxyService service and set the deactivated attribute to true:
<service class="jrun.servlet.jrpp.JRunProxyService" name="ProxyService"> <attribute name="activeHandlerThreads">8</attribute> <attribute name="minHandlerThreads">1</attribute> <attribute name="maxHandlerThreads">1000</attribute> <attribute name="mapCheck">0</attribute> <attribute name="threadWaitTimeout">20</attribute> <attribute name="backlog">500</attribute> <attribute name="deactivated">true</attribute> ...
5.
Save the file.
6.
Copy the CFM pages in your web root directory (including the CFIDE and cfdocs directories) to the ColdFusion MX 7 cf_root/wwwroot directory, and use appropriate URL references (for example, http://localhost:8500/YourApp1/index.cfm). If you switch from the built-in web server to an external web server, you must copy the contents of the cf_root/wwwroot directory to your web server root. If you are using Macromedia Dreamweaver, be sure to reconfigure any sites that you move from one server to another.
7.
Restart ColdFusion MX 7.
To switch to another web server, follow the instructions for the appropriate web server on your platform in “Configuring web servers” on page 49.
Note: The installation wizard does not allow you to configure both an external web server and the built-in web server and in most cases, you do not enable both the built-in web server and an external web server. If you do, you must create web server directory mappings so that both web servers use the same web root.
22 Chapter 2: Installing the Server Configuration
Loading...
+ 50 hidden pages