![]() ![]() ![]() |
ColdFusion has been tested with Apache version 1.2.x and 1.3. To obtain Apache free of charge, go to the Apache group web site at http://www.apache.org.
You can build the ColdFusion module into your Apache web server binary. This method is a very efficient method, since the server does not have to start a new process for every ColdFusion request.
The ColdFusion module can be found in the installation directory (usually /opt
) under the coldfusion/webserver/apache
directory.
In the following procedure, it is assumed that your Apache installation is found in /usr/local/etc/httpd
and you installed ColdFusion in /opt
.
mod_coldfusion.a
) to your Apache source directory.
cp /opt/coldfusion/webserver/apache/mod_coldfusion.a \ /usr/local/etc/httpd/src/mod_coldfusion.a
/usr/local/etc/httpd/src/Configuration
file to contain the following line:
Module coldfusion_module mod_coldfusion.a
EXTRA_LIBS=
line to include the C++ library:
EXTRA_LIBS=-lC
If you are using the gcc compiler, you should add the absolute path of the C++ library to this line. You should include the version number of the library and use the highest one available.
For example:
EXTRA_LIBS=/usr/lib/libC.so.5./Configure
make
to build a new Apache httpd executable.
You should now be able to access the ColdFusion Administrator with the following URL:
http://localhost/CFIDE/administrator/index.cfm
Allaire ColdFusion includes a shared object or file that Apache 1.3 can load at startup time. In order to do this, you must have configured and built Apache with the mod_so
module. This module is not built into Apache by default. Consult the Apache documentation for details, but to configure this module in to the Apache build, you can run:
$ ./configure --enable-module=so <other apache options> $ make $ make install
Once you have mod_so
configured into your Apache binary, you can then follow these steps:
cp /opt/coldfusion/webserver/apache/mod_coldfusion.so \ /usr/local/apache/libexec
httpd.conf
file to include the following directive:
LoadModule coldfusion_module libexec/mod_coldfusion.so
![]() ![]() ![]() |
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.