Problems installing the ColdFusion connector on Linux/Apache

Some people have encountered problems during the ColdFusion MX 7 install on Linux/Apache. When you first start the ColdFusion server, you may see something like this:

Configuring the web server connector (Launched on the first run of the ColdFusion MX 7 start script)
Running apache connector wizard...
=======================================
There was an error while running the connector wizard
Connector installation was not successful


The connector may or may not actually be installed. In some cases it is, but you still get this error. If it is installed, you should know it. Restart apache to make the httpd.conf changes take effect, then try browsing to a .cfm page. If it displays correctly, the connector was installed.

In this case, all you need to do to get rid of the error message is rename the /opt/coldfusionmx7/bin/cfmx-connectors.sh script. Thats normally what happens when the connector is successfully installed - ColdFusion renames that script to “cfmx-connectors-run.sh”.

If your connector did not successfully install, there are a few additional steps to get it properly installed. Change into the /opt/coldfusionmx7/bin/connectors directory. Open the apache_connector.sh file, and fix the paths to be correct to your system.

By default the file contains these lines (among others):
../../runtime/bin/wsconfig \
-server coldfusion \
-ws apache \
-dir /usr/local/apache2/conf \
-bin /usr/local/apache2/bin/httpd \
-script /usr/local/apache2/bin/apachectl \
-coldfusion

On RedHat/CentOS, they should usually look like this:

../../runtime/bin/wsconfig \
-server coldfusion \
-ws apache \
-dir /etc/httpd/conf \
-bin /usr/sbin/httpd \
-script /etc/rc.d/init.d/httpd \
-coldfusion

Even though those are the values I entered during the install, they don’t always make it to this connector script for some reason.

Save the script and run it. Restart apache, and browse to a .cfm file, or to the Administrator to verify that it is installed properly.

9 Responses to “Problems installing the ColdFusion connector on Linux/Apache”

  1. John Moore Says:

    Thanks mucho!

  2. Ryan Stille Says:

    FYI, I just confirmed the problem still exists in ColdFusion 8. I’m going to file a bug report with Adobe.

  3. ana Says:

    And with Vista also.

  4. Greg M Says:

    I had this issue, too (Fedora 8, Coldfusion 8) . In addition to the apache_connector.sh script requiring a change, I needed to install the httpd-devel package. That allows the apache_connector.sh to modify and rebuild Apache to work with Coldfusion. That was “Coldfusion 8″

  5. Ryan Stille Says:

    You were probably installing onto Apache 2.2.x then, instead of 2.0.2x which was more common. A recompile of the Apache module is needed when using 2.2.x.

  6. mika aste Says:

    With Vista it is really diificult for me.

  7. Arthur Says:

    I have just attempted to install Coldfusion8 Standard on RedHat 5.1running Apache 2.2

    The problem has not been fixed. Everytime I start up /opt/coldfusion8/bin/confusion, it reports that the connector installation was not successful.

    May 9, 2008

  8. WeBoat Says:

    CF 8 Apache 2.2 here… CentOS 5 All 64 Bit

    Greg M hit it…

    Do the file changes
    Stop CF8
    yum install httpd-devel
    restart httpd
    start CF8

    Everything works fine now!

    Thanks everyone. Easy fix

  9. hoteles.es Says:

    We had the same problems but it seemed to be fixed in CF*

Leave a Reply