This manual, as well as the software described in it, is furnished under license and may
be used or copied only in accordance with the terms of such license. The content of
this manual is furnished for informational use only, is subject to change without
notice, and should not be construed as a commitment by Allaire Corporation. Allaire
Corporation assumes no responsibility or liability for any errors or inaccuracies that
may appear in this book.
Except as permitted by such license, no part of this publication may be reproduced,
stored in a retrieval system, or transmitted in any form or by any means, electronic,
mechanical, recording, or otherwise, without the prior written permission of Allaire
Corporation.
ColdFusion and HomeSite are federally registered trademarks of Allaire Corporation,
HomeSite, the ColdFusion logo and the Allaire logo are trademarks of Allaire
Corporation in the USA and other countries. Microsoft, Windows, Windows NT,
Windows 95, Microsoft Access, and FoxPro are registered trademarks of Microsoft
Corporation. All other products or name brands are the trademarks of their respective
holders. Solaris is a trademark of Sun Microsystems Inc. UNIX is a trademark of The
Open Group. PostScript is a trademark of Adobe Systems Inc.
Part number: AA-45ADM-RK
Contents
Preface: Welcome to ColdFusion ...................................................................xi
Intended Audience......................................................................................................................... xii
Welcome to the ColdFusion 4.5 Web Application Server........................................................... xii
Products and System Requirements ............................................................................................ xii
New features in ColdFusion 4.5 ....................................................................................................xiv
New visual tools......................................................................................................................xiv
Enhancements to CFML ........................................................................................................xiv
Administering ColdFusion Server is meant for anyone who needs to install, configure,
and maintain one or more ColdFusion Server installations.
Welcome to the ColdFusion 4.5 Web Application Server
The ColdFusion 4.5 release focuses on fundamentals — the fundamentals of delivering
your e-business: faster development, better reliability, enhanced scalability, expanded
integration, and stronger security.
At the center of the ColdFusion 4.5 release is an application server platform that's been
highly optimized with new functionality and native support for UNIX. As a result, your
e-business systems will run better and do more. With this release we're launching a
new edition of ColdFusion Server for Linux so you can take advantage of the reliability
and performance of the hottest new Internet server operating system.
While optimizing the core server, we also enhanced fundamental features including
email integration, server-side FTP and HTTP, advanced security, scheduling, and
database connectivity — again giving you more reliability and new functionality.
The focus on fundamentals extends to new features. As part of a broad new
commitment to Java, ColdFusion 4.5 has a range of new Java integration options from
Java CFXs to Java Servlet support to Java object and EJB connectivity. In ColdFusion
Studio 4.5, we added new tools to make you more productive including a flexible new
project architecture that makes managing and deploying complex Web applications a
snap. On the server, we focused on reliability, performance and security with features
such as service-level fail-over, Cisco Local Director integration, and OS security
integration.
Whether you're revolutionizing your company's HR operations, building the next
generation of your firm's global intranet, or launching the next killer .COM company,
you'll find the speed, scalability, connectivity, and security you need in ColdFusion 4.5.
Products and System Requirements
ColdFusion has been fully tested on the following platforms and with the following
configurations.
ColdFusion Server 4.5 Enterprise Edition for Windows
• Windows NT 4.0 SP4+
• Intel Pentium or above
• 150 MB hard disk space
• 128 MB RAM (256 MB recommended for clustering)
Prefacexiii
ColdFusion Server 4.5 Enterprise Edition for Solaris
• SPARC Solaris 2.5.1, 2.6, or 7 (patch 103582-1B or higher)
• 128 MB RAM (256 MB recommended for clustering)
• 200 MB hard disk space
ColdFusion Server 4.5 Enterprise Edition for Linux
• Red Hat Linux 6.0 or 6.1
• Intel Pentium or above
• 128 MB RAM (256 MB recommended for clustering)
• 150 MB hard disk space
ColdFusion Server 4.5 Professional Edition for Windows
• Windows 95/98 or Windows NT 4.0
• Intel Pentium or above
• 50 MB hard disk space
• 32 MB RAM (128 MB recommended)
ColdFusion Server 4.5 Professional Edition for Linux
• Red Hat Linux 6.0 or 6.1
• Intel Pentium or above
• 64 MB RAM (128 MB recommended)
• 100 MB hard disk space
ColdFusion Studio 4.5
• Windows 95/98/NT4
• Intel Pentium or above
• 35 MB hard disk space
• 32 MB RAM (64 MB recommended)
xivAdministering ColdFusion Server
New features in ColdFusion 4.5
A wide range of new features are available in ColdFusion 4.5.
New visual tools
Universal File Browser — Access all your files from a single explorer that integrates
access to the Windows file system, ColdFusion RDS servers, and FTP servers. Dragand-drop between any of these services all in an integrated file browser.
Advanced Project Management — Manage your complex Web application
development projects with a new project architecture that gives you more flexibility
and control using physical, virtual, and auto-inclusive project folders as well as project
resource browsing.
Scriptable Deployment — Deploy applications to complex server configurations with
FTP or ColdFusion Remote Development Services (RDS). Use VBScript or Java Script to
fully script deployment of projects with granular control over how files uploaded.
Setup deployment scripts using a powerful wizard and save scripts for re-use.
Collapsible Code — Work with large, complex scripts and pages more easily by
collapsing sections of the code in the editor so you can build sophisticated
applications more quickly.
Function Insight — Find the parameters and format for functions instantly and inline
as you code.
Image Map Editor — Create image maps right in ColdFusion Studio with a new easyto-use visual tool.
Configuration Wizard — Setup your work environment so it meets all your needs
using any of more than dozen common configurations.
TopStyle CSS Editor — Create and edit standards-compliant cascading style sheets to
easily control the look and feel of your web applications.
WML Support — Build wireless Web applications quickly and easily with the complete
set of Wireless Markup Language (WML) visual tools.
Enhancements to CFML
Object Scripting — Instantiate and script objects using CFML script in addition to the
CFOBJECT tag easier integration with distributed object middleware such as COM and
CORBA.
Structured Exception Handling — Exception handling now offers hierarchical
exception handling that supports both greater customization and greater access to
internal exceptions.
String Conversion Functions — Convert strings quickly and easily to be compatible
with Java Script and XML standards.
Prefacexv
Better reliability
Server Probes — Guarantee high availability by automatically detecting when a
ColdFusion Server or Web server hangs or stops, failing-over to a new machine in a
ColdFusion cluster, and restarting the server with problems. (Enterprise Edition only)
Improved Automatic Server Recovery — Monitor and automatically restart server
process in case of failures or critical errors on individual servers not deployed in a
cluster.
Clustering Support for Apache — Setup ColdFusion clusters on Linux and Solaris
using the Apache Web Server. (Enterprise Edition only)
Automatic Shared Variable Locking — Lock user and session variable reads
automatically at the server level to prevent destabilizing conflicts and control thread
write contentions. Configure variable locking to meet the specific needs of your
applications.
Individual Data Source Control — Enable and disable individual data sources
individually without affecting server availability for runtime data source maintenance
without server restarts.
Improved performance
Cisco Local Director Integration — Deliver very large scale sites with Cisco Local
Director intelligently balancing load based on the load metrics provided by the
ColdFusion Servers in a cluster. (Enterprise Edition only)
Client-Side Page Caching — Leverage browser page caching to avoid unnecessary
downloads of unchanged pages and improve overall site performance.
Programmatically control refresh of client-side cache to ensure users see most up-todate output.
White Space Removal — Reduce white space left by processed code in application
pages to make the pages smaller and faster. Control white space removal
programmatically or administratively.
Scriptable Performance Metrics — Track key server metrics at run time through your
own scripts for intelligent diagnosis of performance bottlenecks of stability problems
in your applications.
Performance Debugging Data — Access detailed debugging information on the
performance of each individual page included in an application page that is being
debugged.
xviAdministering ColdFusion Server
Enterprise connectivity features
Transaction Commit and Rollback — Control database transactions with
programmable commit and rollback support for more reliable and better-managed
database interactions.
Java Object and EJB Connectivity — Connect to any Java object or Enterprise JavaBean
(EJB) hosted by any major EJB server to extend ColdFusion and access complex
business logic or third party distributed components.
Java Servlets — Call Java Servlets hosted by a Servlet Engine such as Allaire JRun from
within a ColdFusion application to access extended functionality
Java-based ColdFusion Extensions (CFX) — Extend ColdFusion with new
functionality through CFXs created with Java.
Binary Object Support — Use Character Large Binary Object (CLOB) support to
encoded binary objects, transmit them via XML, and store them in databases or files.
SQL Bind Parameters — Improve query performance, security and flexibility with
explicitly typed query parameters.
WDDX 1.0 — Exchange complex data, including encoded images, between servers and
with other programming environments even faster using the latest version of Web
Distributed Data Exchange (WDDX).
OS Command Execution — Execute OS shell scripts, services, executables and batch
files from within ColdFusion applications.
LDAP 3.0 — Use all the power of LDAP 3.0 for directory access including file filtering,
SSL encryption, and Microsoft Active Directory integration.
Enhanced Mail Integration — Develop more sophisticated and robust email
applications with new support for controlling mail headers, BCC, and multiple file
attachments.
Improved Server-Side HTTP — Use URL redirection, SSL, cookies, return headers, and
more robust server-side HTTP support for building distributed Web applications.
Security enhancements
General OS Security Integration — Secure entire Web applications and control access
to files and objects through your existing Windows NT security architecture.
Authenticated users in your applications can be limited to privileges authorized
through Windows security. (Windows NT Only)
OS Server Sandbox Security — Secure shared hosting environments more easily by
creating Server Sandboxes with Windows NT security. OS Server Sandboxes process all
requests under the privileges of a designated Windows NT user account (Enterprise
Edition for Windows only).
Enhanced Advanced Security — Secure CFML functions and enable CFML code
segments to be executed using the run-time security permissions of a designated user.
Prefacexvii
New Advanced Security Interface — Manage Advanced Security configuration more
quickly and easily with a completely redesigned browser-based resource view.
Scriptable Advanced Security Administration — Configure ColdFusion Advanced
Security through your own CFML scripts for easier maintenance of ColdFusion
Servers.
Developer Resources
Allaire Corporation is committed to setting the standard for customer support in
developer education, technical support, and professional services. Our Web site is
designed to give you quick access to the entire range of online resources.
Allaire Developer Services
ResourceDescription
Allaire Web site
www.allaire.com
Technical Support
www.allaire.com/support
Training and Consulting
www.allaire.com/services
Developer Community
www.allaire.com/developer
Allaire Partners
www.allaire.com/partners
General information about Allaire products and
services.
Allaire offers a wide range of professional support
programs. This page explains all of the available
options.
Information about training classes, online
courses, and consulting services offered by
Allaire.
All of the resources you need to stay on the
cutting edge of ColdFusion development,
including online discussion groups, Knowledge
Base, Component Exchange, Resource Library,
technical papers and more.
The Allaire Alliance is a network of solution
providers, application developers, resellers, and
hosting services creating solutions with
ColdFusion.
xviiiAdministering ColdFusion Server
About ColdFusion Documentation
ColdFusion documentation is designed to provide support for all components of the
ColdFusion development system. Both the print and online versions are organized to
allow you to quickly locate the information you need.
In addition to the book set, the documentation is provided in two other formats:
• HTML — Browser-based Help references.
• Adobe Acrobat (PDF) — Available from the root level on the product CD-ROM
and from the Developer area of Allaire’s Web site at http://www.allaire.com/
developer
Documentation updates
Late additions and corrections to ColdFusion printed documentation are listed in the
Documentation Updates page. To reach this page, open the Welcome to ColdFusion
page installed with ColdFusion, where you’ll find links to the update page as well as
links to other pages containing useful information about ColdFusion, Allaire support
options, and Allaire products and services.
For ColdFusion Studio users, you can access the documentation update page by
clicking on the Help resource tab and browsing your way through the online help tree
to the Allaire Support folder.
.
ColdFusion manuals
The core ColdFusion documentation set consists of the following titles.
Administering ColdFusion Server
Includes instructions for installing ColdFusion Server. Describes configuration options
for maximizing performance, managing data sources, setting security levels, and a
range of development and site management tasks. If you are administering a
ColdFusion site, you’ll need this book to help plan and implement ColdFusion
security, load balancing, and for details about tuning the ColdFusion application
server.
Developing Web Applications with ColdFusion
Presents the fundamentals of ColdFusion application development and deployment.
Also includes detailed information about ColdFusion data sources, user interfaces,
and Web technologies.
CFML Language Reference
Provides the complete syntax, with example code, of all CFML tags and functions.
Prefacexix
Using ColdFusion Studio
Documents everything you need to know about using ColdFusion Studio, including
features like projects, source control integration, as well as the Studio workspace and
interface.
Quick Reference to CFML
A valuable quick reference to CFML tags, functions, and variables.
ColdFusion Server online documentation
To view the HTML documentation, open the following URL: http://127.0.0.1/
cfdocs/dochome.htm
Note that because the Verity search libraries are not available on Linux for this release,
the online documentation search facility is not functional on Linux. If you try to open
the search page, a message box opens to explain why the facility is not available.
Acrobat versions of all ColdFusion documentation are available from the root level on
the product CD. If you don’t have a product CD, you can download ColdFusion
documentation from the Allaire web site by visiting
developer
and clicking the Documentation link.
.
http://www.allaire.com/
ColdFusion Studio online documentation
Click the Help resource tab in ColdFusion Studio to view online Help pages. The help
tree contains ColdFusion documentation and a number of additional developer
resources. Studio online documentation is searchable and individual pages can be
bookmarked.
Printing ColdFusion documentation
If you are working with an evaluation version of ColdFusion and would like printed
documentation, access the Adobe Acrobat files found from the root level on the
product CD. If you do not have access to a product CD, you can download the Acrobat
files from the Allaire web site:
Documentation link.
The Acrobat files offer excellent print output. You can print an entire manual,
individual sections, or page ranges of your choice. To get the Acrobat reader, visit:
http://www.acrobat.com.
http://www.allaire.com/developer, click the
xxAdministering ColdFusion Server
Documentation conventions
When reading, please be aware of these formatting cues:
• Code samples, filenames, and URLs are set in a
• Notes and tips are identified by bold type
• Bulleted lists present options and features
• Numbered steps indicate procedures
• Tool button icons are generally shown with procedure steps
• Menu levels are separated by the greater than (>) sign
• Text for you to type in is set in italics
monospaced font
Getting Answers
One of the best ways to solve particular programming problems is to tap into the vast
expertise of the ColdFusion developer community on the Allaire Forums. Other
ColdFusion developers on the forum can help you figure out how to do just about
anything with ColdFusion. The search facility can also help you search messages going
back 12 months, allowing you to learn how others have solved a problem you may be
facing. The Forums is a great resource for learning ColdFusion, but it’s also a great
place to see the ColdFusion developer community in action.
Contacting Allaire
Corporate headquarters
Allaire Corporation
One Alewife Center
Cambridge, MA 02140
Tel: 617.761.2000
Fax: 617.761.2001
http://www.allaire.com
Technical support
Telephone support is available Monday through Friday 8 A.M. to 8 P.M. Eastern time
(except holidays)
Toll Free: 888.939.2545 (U.S. and Canada)
Tel: 617.761.2100 (outside U.S. and Canada)
For complete details about Allaire Product Support options, please refer to the Allaire
Support pages on the Allaire web site:
http://www.allaire.com/support.
Prefacexxi
Postings to the ColdFusion Support Forum (http://forums.allaire.com) can be
made any time.
Sales
Toll Free: 888.939.2545
Tel: 617.761.2100
Fax: 617.761.2101
Email: sales@allaire.com
Web:
http://www.allaire.com/store
xxiiAdministering ColdFusion Server
C HAPTER 1
Chapter 1Installing and Configuring
ColdFusion
This chapter describes ColdFusion’s system requirements and how to install and
configure ColdFusion on your platform.
Contents
•ColdFusion System Requirements.................................................................... 2
•Installing ColdFusion on Windows................................................................... 5
•Installing ColdFusion on Solaris ..................................................................... 13
•Installing ColdFusion on Linux....................................................................... 23
2Administering ColdFusion Server
ColdFusion System Requirements
ColdFusion v4.5 runs on the following platforms:
• “Windows (NT, 98, or 95)” on page 2
• “Solaris (Enterprise edition only)” on page 4
• “Linux” on page 5
This section describes system requirements for each platform.
Windows (NT, 98, or 95)
The minimum requirements needed to install and run ColdFusion Server on Windows
depend on which edition you install, Enterprise, Professional, or Express.
NoteIf you plan to use the ClusterCATS software that is included with
ColdFusion to cluster your NT servers, see “Windows NT system
requirements for ClusterCATS Server” on page 162. The ClusterCATS
system requirements may impact your overall environment
requirements.
ColdFusion Server 4.5 Enterprise Edition for Windows
To install and use ColdFusion Server 4.5 Enterprise edition on Windows, your system
must meet the following minimum requirements:
• Windows NT Server v 4.0 with Service Pack 4
• Intel Pentium or higher
• 64 MB of RAM (128 recommended)
•60 MB of free disk space
• A World Wide Web server that supports the NSAPI, ISAPI, or WSAPI application
programming interfaces (APIs). Specific Web servers that work with ColdFusion
on the Windows platform include:
•Internet Information Server v4.0 or greater
•Netscape Enterprise Server v3.51 or greater
•Apache Web Server v1.3.6 or greater
•Common Gateway Interface (CGI)
• A CD-ROM drive
Chapter 1: Installing and Configuring ColdFusion3
ColdFusion Server 4.5 Professional Edition for Windows
To install and use ColdFusion Server 4.5 Professional edition on Windows, your system
must meet the following minimum requirements:
• Windows 95/98 or Windows NT Server v 4.0 with Service Pack 4
• Intel Pentium or higher
• 32 MB of RAM (128 recommended)
•50 MB of free disk space
• A World Wide Web server that supports the NSAPI, ISAPI, or WSAPI application
programming interfaces (APIs). Specific Web servers that work with ColdFusion
on the Windows platform include:
•Internet Information Server v4.0 or greater
•Netscape Enterprise Server v3.51 or greater
•Apache Web Server v1.3.6 or greater
•Microsoft Personal Web Server (PWS)
•WebSite Server API ( WSAPI)
•Common Gateway Interface (CGI)
• A CD-ROM drive
4Administering ColdFusion Server
ColdFusion Server 4.5 Express Edition for Windows
To install and use ColdFusion Server 4.5 Express edition on Windows, your system
must meet the following minimum requirements:
• Windows 95/98 or Windows NT Server v 4.0 with Service Pack 4
• Intel Pentium or higher
• 32 MB of RAM (64 recommended)
•25 MB of free disk space
• A World Wide Web server that supports the NSAPI, ISAPI, or WSAPI application
programming interfaces (APIs). Specific Web servers that work with ColdFusion
on the Windows platform include:
•Internet Information Server v4.0 or greater
•Netscape Enterprise Server v3.51 or greater
•Apache Web Server v1.3.6 or greater
•Microsoft Personal Web Server (PWS)
•WebSite Server API ( WSAPI)
•Common Gateway Interface (CGI)
• A CD-ROM drive
Solaris (Enterprise edition only)
To install and use ColdFusion on Solaris, your system must meet the following
minimum requirements:
• Solaris v2.5.1 or greater running on a SPARC workstation
• 128 MB or RAM
• 120 MB of free disk space for a full install
• Specific Web servers that work with ColdFusion on the Solaris platform include:
•Netscape Fast Track/Enterprise Server versions 2.01 or 3.0, 3.51
•Apache Web Server versions v1.3.6 or greater
•Common Gateway Interface (CGI)
• A CD-ROM drive
NoteIf you plan to use the ClusterCATS software that is included with
ColdFusion to cluster your Solaris servers, see “Sun Solaris system
requirements for ClusterCATS Server” on page 162. The ClusterCATS
system requirements may impact your overall environment
requirements.
Chapter 1: Installing and Configuring ColdFusion5
Linux
To install and use ColdFusion Server 4.5 Express, Professional, or Enterprise edition on
Linux, your system must meet the following minimum requirements:
• RedHat operating system v6.0 or 6.1
(with glibc v2.1, gcc/egcs libstdc++ v2.9, and v2.2 kernel)
• Intel Pentium 200 Mhz or greater
• 64 MB of RAM (128 MB recommended)
• 50 MB of free disk space
• Specific Web servers that work with ColdFusion on the Linux platform include:
•Apache Web Server versions v1.3.6 or greater
• A CD-ROM drive
NoteIf you plan to use the ClusterCATS software that is included with
ColdFusion to cluster your Linux servers, see “Linux system requirements
for ClusterCATS Server” on page 162. The ClusterCATS system
requirements may impact your overall environment requirements.
Installing ColdFusion on Windows
This section addresses the following topics about installing ColdFusion on Windows:
• “Verifying that a Web server is running” on page 5
• “Installing ColdFusion” on page 6
• “Uninstalling ColdFusion” on page 11
• “Performing Windows-specific configurations” on page 11
Verifying that a Web server is running
Before installing ColdFusion, check that your Web server is installed and running. You
can do this by loading a page in your Web browser using the HTTP protocol.
To check that your Web server is running:
Do one of the following actions:
• Enter the URL for a Web page or site in your browser’s Address field and press
Enter.
For example, if the file myindex.htm is in your Web document root directory, load
the page in your browser using the localhost URL:
http://127.0.0.1/myindex.htm
If your Web server is not running, you’ll receive an error message.
6Administering ColdFusion Server
• You can also check the Services icon in the Windows Control Panel or open your
Web server administration utility to determine if your Web server is started or
stopped.
Installing ColdFusion
The installation procedure assumes you are installing from a CD. If you purchased and
downloaded ColdFusion from the Allaire Online Store, follow the download
instructions found there. Then follow the install procedure below, skipping step 2.
We recommend that you close all open applications before running the Setup
program. This will ensure proper installation of the ODBC 3.0 drivers.
NoteBecause of a problem in the way Verity handles indexing, ColdFusion
must be installed to a directory path that contains no spaces in the path
name. This restriction is necessary so that ColdFusion can properly
access Verity collections.
To install ColdFusion on Windows:
1.Log in to your system using the administrator’s account or an account that is part
of the Administrator’s group.
2.Insert the ColdFusion Server v4.5 CD into your CD drive or access it from your
network jukebox (Enterprise users).
3.Click Start>Run to display the Run dialog box.
4.Enter the path where the ColdFusion Setup.exe resides or click Browse to drill
down to it.
5.Click OK.
The ColdFusion v4.5 Setup program starts and displays the ColdFusion Setup
Welcome page.
Chapter 1: Installing and Configuring ColdFusion7
6.Click Next in the Welcome and Software License Agreement dialog boxes.
The User Information dialog box appears after the Software License Agreement
dialog box.
7.Enter your name, company, and ColdFusion serial number in the User
Information dialog box and click Next.
NoteYou’ll find your ColdFusion serial number on the product box.
The Choose Destination Directory dialog box appears next.
8Administering ColdFusion Server
8.Accept or change the default destination folder and click Next.
The Select Web Server dialog box appears.
If your Web server is already installed, the ColdFusion Setup program will
automatically detect it.
9.If your Web server is not one of the ones listed, select the Other option and click
Next. Otherwise, just click Next.
The Select Web Server Document Directory dialog box appears next.
Loading...
+ 320 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.