Well. I seem to have actually finished (laugh) the Cf-linux faq. I'm
pasting it below, I'm of course looking for feedback and comments. It's not,
I repeat, NOT final as of yet.

        And of course, it will be published onto the web once it is
complete.

-Jesse

BEGIN PASTE

Frequently Asked Questions for ColdFusion Server on Linux

Q: Why doesn't the security attribute for CFLDAP work with Cf-Linux?

A: Due to a conflict between LDAP SSL and HTTP SSL on Linux, we chose to go
with HTTP SSL instead of LDAP SSL.

Q: Can I trigger other executable files from coldfusion.

A: Yes. Cfexecute is a wonderful tag that allows you to call any shell
script, executable, or other 'program' on the system. You can use it like
this:


<cfset arguments="-c#concurrent# -u #site# -t#transactions# -d#delay# -l
-m#CHR(34)##label##CHR(34)#">

<CFEXECUTE
        NAME="/usr/local/bin/siege"
        ARGUMENTS=#arguments#
        OUTPUTFILE="/var/www/html/siege/siege.foo"
        TIMEOUT="999">
</CFEXECUTE>

        The above will execute a program called siege with variables and
settings set withing the actual coldfusion application itself. Quite handy.
You can also so things like:


<CFSET arguments="#STRING# #DIRECTORY#">

<CFEXECUTE
        NAME="/bin/grep"
        ARGUMENTS=#arguments#
        OUTPUTFILE="/tmp/grepoutput"
        TIMEOUT="10">
</CFEXECUTE>

        You can then use CFFILE to open the outputfile into memory, and
check it for strings/combos/etc.

Note: For anything more complex than simple space-delimited parameters to
CFEXECUTE it's much safer to use an array to pass the parameters.  You have
to parse the string into argv form, but the array is copied
element-by-element into argv with no munging.

Q: Does Spectra run on Linux? When will it run on Linux?

A: At this time, Spectra does not run under Linux because Spectra requires
Advanced security, and Advanced security does not run under Cf-Linux at this
time. 

   Due to the alterations in the product line, it does not look as if
Spectra will run under Linux in it's current incarnation, rather, the most
significant pieces of Spectra will be rolled into the next generation of
ColdFusion (Post CF5).

Q: Does COldFusion on Linux Support SSL?

A: Yes, but not in the way you may mean. SSL is strictly a webserver
function, and therefore, must be setup on the webserver itself. There are
pre-built versions of Apache that come with SSL supported by default. Some
links are below:

        An Excellent explaination of SSL:
        http://www.apacheweek.com/features/ssl

        Covalent (Raven) Apache-SSL:
        http://www.covalent.net/products/ssl/

        Red Hat (Stronghold) Apache-SSL:
        http://www.redhat.com/software/ecommerce/stronghold/

Q:  Does ColdFusion on Linux run on any other platforms than Red Hat linux?

A: With CF5, we did an official port of ColdFusion server to Red Hat, SuSE
and Cobalt Linux. At this time, these are the only distributions Macromedia
officially supports.

        However, ColdFusion 5 can be run on just about any distribution
currently on the market. With some minor hacking, you can put it anywhere
really. Some pointers that were written for ColdFusion 4.5.1 and still apply
for the most part on CF5:

ColdFusion Server 4.5.1 Installation and configuration on TurboLinux 6.0
(Article 17484)
http://www.allaire.com/Handlers/index.cfm?ID=17484&Method=Full 

ColdFusion Server 4.5.1 Installation and configuration on Debian GNU/Linux
2.2
(Article 17481)
http://www.allaire.com/Handlers/index.cfm?ID=17481&Method=Full

ColdFusion Server 4.5.1 Installation and configuration on SuSE Linux 6.4
(Article 16994)
http://www.allaire.com/Handlers/index.cfm?ID=16994&Method=Full

ColdFusion Server 4.5.1 Installation and configuration on Slackware Linux
7.0
(Article 16993)
http://www.allaire.com/Handlers/index.cfm?ID=16993&Method=Full

ColdFusion Server 4.5.1 Installation and configuration on Caldera OpenLinux
eServer 2.3(Article 16322)
http://www.allaire.com/Handlers/index.cfm?ID=16322&Method=Full

ColdFusion Server 4.5.1 Installation and configuration on Mandrake Linux 7.0
(Article 16303)
http://www.allaire.com/Handlers/index.cfm?ID=16303&Method=Full

        (The above are outdated, but should point you in the right
direction, email [EMAIL PROTECTED] with questions)

Q: What Versions of Apache does ColdFusion on Linux work with?

A: ColdFusion on Linux will work with any version of Apache on Linux so long
as the Dynamic Shared Object system is compiled into that version of Apache.
Sometimes, you will need to recompile the coldfusion module to work with
your Apache version, but that is a rather painless process. Please read the
documentation in: /opt/coldfusion/webserver/apache.

Q:  Does ColdFusion run on BSD?

A: At this time, ColdFusion does not run on any version of BSD. Testing has
been done to see the viability of running ColdFusion under Linux binary
emulation, and it has been found that ColdFusion will not run properly
without a native code recompilation on FreeBSD.  If you have successfully
gotten ColdFusion for Linux running on a BSD machine, please email
[EMAIL PROTECTED]

Q: Does ColdFusion on Linux run with the 2.4 Linux kernel? 

A: Yes, it does. In fact, Macromedia reccomends that you do run ColdFusion
on the 2.4 kernel due to a number of enhancements and new features that are
solely in the 2.4 kernel branch.

Q: Why doesn't ColdFusion on Linux support Advanced Security?
  
A: Currently, Allaire utilizes a third party package for Advanced Security.
This package has not been ported to Linux.

Q: Does ColdFusion on Linux support the Verity Search system?

A: Yes, it does, quite well actually.

Q: Does ColdFusion on Linux support Custom Tags?

A: Yes, it does, this question stems from individuals trying to execute
precompiled ".dll's" and pre compiled binary-only Solaris CFX tags under
Linux. In most cases, this will not work. You will need to port your custom
tags to the Linux system, and compile them natively. 

Q:  Are there any visual design tools for ColdFusion on Linux?

A: Not at this time. However, JEdit (www.jedit.org) does offer some CFML
code highlighting and formatting features.

Q: Does ColdFusion on Linux function with Apache 2.0?

A: Not at this time, the ColdFusion module has not been ported to Apache
2.0, if you have ported it, email [EMAIL PROTECTED] and we can discuss
the sharing of the new module.

Q: Does ColdFusion work with any Kernel-Level HTTPD servers?

A: Not at this time, the ColdFusion module has not been ported to Tux or
other kernel-level webservers, if you have ported it, email
[EMAIL PROTECTED] and we can discuss the sharing of the new module.

Q: Does ColdFusion on Linux work with Java?

A: Yes, it does. We reccomend you use the latest JVM from your vendor.

Q: What Databases does ColdFusion on Linux Support?

A: Currently, ColdFusion on Linux supports the following Databases:


ColdFusion 5.0 on Linux Professional version supports:

        Via ODBC only:  
        DBASE/Foxpro
        MS SQL (including SQL 2000)
        MySQL
        PostgresSQL
        Text Driver

ColdFusion 5.0 on Linux Enterprise version supports:

        Via ODBC:
        DBASE/Foxpro
        MS SQL (including SQL 2000)
        MySQL
        PostgresSQL
        Text Driver
        Informix Dynamic Server Driver
        Oracle 8 Driver
        Sybase ASE Driver

        Via Native Drivers:
        SYBASE11
        ORACLE80
        INFORMIX73
        IBM DB2

Q: If I want to port my ColdFusion application from NT or Solaris to Linux,
will it port cleanly or are there steps I need to take to make adjustments?

A: There will be adjustments. For instance, usages of CFRETHROW and
CFREGISTRY are not supported. You'll also need to test and port any CFX tags
you might be running. MS Access users will need to do quite a bit of system
hacking to get ColdFusion to work with Access on Linux. This configuration
is not supported, and is highly unstable, but can be done.

Q: I installed ColdFusion for Linux , but it does not seem to be running, I
keep getting a "Unix error 111" message.

A: Commonly, this error is due to the fact that ColdFusion server is not
running, or it is not configured properly. Please see the knowledgebase
article: "Troubleshooting ColdFusion Server 5 Issues on Linux" (
http://www.allaire.com/Handlers/index.cfm?ID=21912&Method=Full ).

Q: How do I setup Oracle Datasources? (CF5 specific)

A: In order to configure the Native and ODBC Oracle drivers on Linux, you
will need to download the Oracle Client version 8.1.6.1 or higher.

NOTE: The catch is that you MUST make sure that the
$PATH/oracledir/network/admin/tnsnames.ora file is configured properly. This
must be configured using the Oracle configuration utility. 

        An example tnsnames.ora file:

# TNSNAMES.ORA Configuration File:/u01/app/oracle/network/admin/tnsnames.ora
# Generated by Oracle Net8 Assistant

e450 =
  (DESCRIPTION =
    (ADDRESS_LIST =
        (ADDRESS = 
          (PROTOCOL = TCP)
          (Host = 10.1.1.50)
          (Port = 1521)
        )
    )
    (CONNECT_DATA = (SID = E450)
    )
  )


Q: How come my native Sybase drivers won't work?!

A: In order to configure the Native Sybase drivers on Linux, you will need
to download and install the following RPMs:

sybase-common-11.9.2-3.i386.rpm
sybase-openclient-11.1.1-3.i386.rpm

*as of this writing, these are the most current versions of the Sybase
Openclient for linux*

NOTE: The catch is that you MUST make sure that the
$PATH/sybase-11.9.2/interfaces file is configured properly. This must be
configured using the Sybase configuration utility.
An example interfaces file:

## FOOBAR on foobar.ghostcorp.com
##       Services:
##              master  tcp     (4000)
##              query   tcp     (4000)

FOOBAR 
        master tcp ether foobar.ghostcorp.com 5000
        query tcp ether foobar.ghostcorp.com 5000

Q: Does ColdFusion on Linux have Advanced Security?

A: No.

Q: Why don't MySQL connections want to work?

A: For CF5, there is a patch for the professional version:
http://www.allaire.com/Handlers/index.cfm?ID=21338&Method=Full

The only really *important* note for MySQL users is that the mysql-client
and mysql-devel RPMs must be installed for the Drivers to work.

Also note, that when you are adding the coldfusion user to the MySQL server,
you must define the 'host' field as clientserver.domain.com (full client
server name + domain) otherwise the Merant drivers will not function. '%'
works as well, but not just 'ClientServername'.


Further Reading-

        Below are links to other documents which may be of use:

ColdFusion Server 5: Troubleshooting ColdFusion Core Dumps and Crashes on
Linux
http://www.allaire.com/Handlers/index.cfm?ID=21911&Method=Full

Troubleshooting ColdFusion Server 5 Issues on Linux
http://www.allaire.com/Handlers/index.cfm?ID=21912&Method=Full

ColdFusion Server 5 on Linux: Kernel Considerations
http://www.allaire.com/Handlers/index.cfm?ID=21910&Method=Full

(This document was written in VIM 6.0!)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to