After installation, you may need to configure Linux to work with ColdFusion Server. This section addresses the following topics:
If you did not instruct ColdFusion Server to configure your Web server automatically during the ColdFusion Server installation, you must manually configure your Web server. This section explains how to configure Web servers manually in Linux. The following Web servers are described in this section:
The ColdFusion Server NSAPI plug-in has been tested with Netscape/iPlanet Enterprise Web Server 4.1 and the Netscape FastTrack Web Server 4.1. The installation script prompts you to configure either of these servers automatically.
Netscape/iPlanet plug-ins for ColdFusion Server are installed in the <installdir>/coldfusion/webserver/nsapi directory.
The following procedure assumes that you installed the Netscape/iPlanet server in
/usr/netscape/server4 on the system named smurf.
coldfusion
in your server directories.mkdir /usr/netscape/server4/plugins/coldfusion cp /opt/coldfusion/webserver/nsapi/coldfusion35.so \ /usr/netscape/server4/plugins/coldfusion/coldfusion.so
/usr/netscape/
server4/https-smurf/config/mime.types
file to add a new ColdFusion Server type. Add the line:type=magnus-internal/cold-fusion exts=exts=cfm,dbm,cfml,dbml
/usr/netscape/
server4/https-surf/config/obj.conf
file to add new service and init directives. Add all of the following on one line:Init fn="load-modules" shlib="/usr/netscape/server4/ plugins/coldfusion/coldfusion.so" funcs="DoCFRequest"
Service fn="DoCFRequest" method="(GET|POST)" type="magnus-internal/cold-fusion"
Note If you run the Netscape/iPlanet Server Manager, the browser-based administrator of the Web server, you may receive a warning about edits to the Netscape configuration files. This is normal. To reload the new configuration files, follow the instructions and click Apply. |
If your server does not restart, check that the pathname for the plug-in you specified in the obj.conf file is correct for your installation and that it is on a single line.
ColdFusion Server has been tested with Apache version 1.3.6. To download Apache, go to the Apache Web site at http://www.apache.org.
ColdFusion Server includes a precompiled binary module for Apache, mod_coldfusion_so
, that has been tested with Apache 1.3.6 through 1.3.19. This module works with most versions of Apache. However, if you need to compile your own version of Apache, see the Apache Readme file at /opt/coldfusion/webserver/apache/readme.
Different procedures are required to configure Red Hat and Apache and SuSE/Cobalt with Apache. Follow the procedure according to your Linux distribution:
/etc/rc.d/init.d/httpd stop
httpd -V
If the output contains the line -D EAPI
, you are running an EAPI version of Apache.
LoadModule
, add the following line:LoadModule coldfusion_module /opt/coldfusion/webserver/apache/mod_coldfusion_standard.so
If you are running an EAPI, add the following line:
LoadModule coldfusion_module /opt/coldfusion/webserver/apache/mod_coldfusion_EAPI.soAddModule
, add the following line: AddModule mod_coldfusion.c
/etc/rc.d/init.d/./httpd start
httpd -V
If the output contains the line -D EAPI
, you are running an EAPI server. (SuSE requires an EAPI version of mod.coldfusion.so.)
/etc/rc.d/apache stop
LoadModule
, add the following lines:LoadModule mmap_static_module /usr/lib/apache/mod_mmap_static.so LoadModule setenvif_module /usr/lib/apache/mod_setenvif.so LoadModule coldfusion_module /opt/coldfusion/webserver/apache/mod_coldfusion_EAPI.so
AddModule
, add the following lines: ClearModuleList AddModule mod_mmap_static.c AddModule mod_vhost_alias.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_coldfusion.c
chmod 755 /opt/coldfusion/webserver/apache/mod_coldfusion_EAPI.so ln -s /opt/coldfusion/webserver/apache/mod_coldfusion_EAPI.so /usr/lib/apache/mod_coldfusion.so
if ! test "$HTTPD_SEC_MOD_SAPCGI" == "no" ; then test -e /usr/lib/apache/mod_fastcgi_sap.so || \ test $(/usr/sbin/httpd -l | grep "mod_fastcgi_sap.c") = "mod_fastcgi_sap.c" 2> /dev/null \ && MODULES="-D SAP_CGI $MODULES" && echo -n " SAP-fastcgi" fi
if ! test "$HTTPD_SEC_MOD_COLDFUSION" == "no" ; then test -e /usr/lib/apache/mod_coldfusion.so && MODULES="-D COLDFUSION $MODULES" && echo -n " Coldfusion" fi
/etc/rc.d/apache start
To use the ColdFusion Server MIB features, you must configure the following settings.
/etc/rc.d/init.d/snmpd stop
trapsink server1.macromedia.com public
where server1.macromedia.com
is the name of the destination server, and public
is the name of the community under which the trap messages are sent. Ensure that the destination server, such as server1.macromedia.com, is configured to receive traps from the specified community, such as public.
Warning Ensure that the following line does not appear in snmpd.conf more than once: |
/etc/rc.d/init.d/snmpd start
Tip You can find a copy of the MIB definition in /usr/lib/btcats/database/lhmib_UNIX.mib. |
To use HTTPS, a different Web server name, or a different port to access the Web document root for ColdFusion MIB information, modify the content of /usr/lib/btcats/database/mib.properties file.
This file usually contains a single entry, such as http://maine
where maine
is the name of the local host and http://maine
is the Web document root directory for the ColdFusion MIB information. To use HTTPS, a different Web document root (maine1), and port (459), edit the entry to https://maine1:459
.
After the install is complete, but before you can set up data sources in the ColdFusion Administrator, you must edit the /opt/coldfusion/bin/start script to include information about whatever database(s) you use.
Normally this requires two changes per database: setting a database-specific environment variable, and adding the path to the client-side database libraries to your LD_LIBRARY_PATH environment variable. The start script provides examples to help you.
After editing the start script, you must stop and restart ColdFusion Server for the changes to take effect. Then, you can proceed to the ColdFusion Administrator to set up your data sources.
Note For more information, see "Managing Data Sources". |
In Linux, you must use certain database clients in Linux. The following table lists the required clients for ColdFusion Server 5 in Linux: