BackUp LevelNext

Configuring the Apache Web Server for Solaris

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.

Adding the ColdFusion module to Apache 1.2.x

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.

To add the ColdFusion module:

  1. Copy the module (mod_coldfusion.a) to your Apache source directory.
    cp /opt/coldfusion/webserver/apache/mod_coldfusion.a \
        /usr/local/etc/httpd/src/mod_coldfusion.a
    
  2. Edit the /usr/local/etc/httpd/src/Configuration file to contain the following line:
    Module coldfusion_module mod_coldfusion.a
    
  3. If you are using the Sun C compiler, edit the 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
  4. Run the Configure script to regenerate the configuration.
    ./Configure
    
  5. Run make to build a new Apache httpd executable.
  6. Install the new httpd executable in your installation directory and restart httpd.

You should now be able to access the ColdFusion Administrator with the following URL:

http://localhost/CFIDE/administrator/index.cfm 

Adding the ColdFusion module to Apache 1.3.1

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:

  1. Copy the ColdFusion module to the Apache modules directory:
    cp /opt/coldfusion/webserver/apache/mod_coldfusion.so \
        /usr/local/apache/libexec
    
  2. Edit your httpd.conf file to include the following directive:
    LoadModule coldfusion_module libexec/mod_coldfusion.so
    
  3. Restart Apache.

BackUp LevelNext

allaire

AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.