Skip to main content
Inspiring
June 20, 2014
Answered

Problem with ColdFusion 10 Apache 2.2.3 install

  • June 20, 2014
  • 1 reply
  • 691 views

Ok so I'm having a hard time getting CF10 64bit installed on Red Hat Enterprise Linux 5.10

Apache version: 2.2.3

I have installed CF10 but when I try to restart Apache I get this error:

Starting httpd: http: Syntax error on line 992 of /etc/httpd/conf/httpd.conf:

Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf

Cannot load /opt/coldfusion10/cfudion/wsconfig/1/mod_jk.so into server: /opt/coldfusion10/config/wsconfig/1/mod_jk.so

unidentified symbol: a_get_server_description

Everything else seemed to work just fine but I can't get Apache to restart due to this error.

Does anyone have any suggestions to try?

TIA

This topic has been closed for replies.
Correct answer mwoods1971

Update:

Ok for now I think I have this worked out. So hopefully to help out anyone else in my shoes I'm going to recap what I did to get this working:

Coldfusion 10

Red Hat Enterprise Linux 5.10

Apache x64 v 2.2.3

After the install I noticed the following error when trying to start Apache:

Starting httpd: http: Syntax error on line 992 of /etc/httpd/conf/httpd.conf:

Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf

Cannot load /opt/coldfusion10/cfudion/wsconfig/1/mod_jk.so into server: /opt/coldfusion10/config/wsconfig/1/mod_jk.so

unidentified symbol: a_get_server_description

After lots of searching, I found this link: https://helpx.adobe.com/coldfusion/kb/rhel-connector-configuration.html

In here it mentions that Adobe has some pre-complied mod_jk.so files for specific version of RHEL.

My version was not listed but it didn't stop me from trying to copy over the mod_jk.so file into the config directory located here (/opt/coldfusion/config/wsconfig/1/)

According to the link, if none of these worked, I would have to compile a connector of my own.

To compile the connector from source, do the following:

    1. Unzip connector-source.zip.
    2. Open the native folder.
    3. Give permission to folder  chmod -R 777 native/
    4. Run the following configure command:

./configure --with-apxs={apxs executable path} {find the location of apxs using find / -name apxs}

For example, if the apache is installed under /home/apache2, then above command is as follows:

./configure --with-apxs=/home/apache2/bin/apxs

    1. Once configured, the command runs fine. Run the make from same folder. The make command compiles all the source.
    2. Open the apache-2.0 folder and locate mod_jk.so.
    3. If you don't find mod_jk.so, open the apache-2.0 folder.
    4. Replace the generate mod_jk.so with previous configured connector. You can find the same in the location {cf-home}/config/wsconfig/{magic-numner}/mod_jk.so.
    5. Restart ColdFusion and Apache.

The first problem I ran into was, apxs was not installed on the system.

I was able to get installed (as root)

sudo yum install httpd-devel

That gave me the apxs command. I tried again, another failure. This error said: error: C++ preprocessor "/lib/cpp" fails sanity check

That meant that there was no c++ compiler on my system. So, back to yum to install gcc-c++.

sudo yum install gcc-c++

Once that was installed I was able to find the path of apxs and follow the directions listed above. Once it had compiled, I looked into the apache-2.0 directory and copy over the freshly complied mod_jk.so to the configuration directory.

A quick restart of Apache and coldfusion confirmed that everything was working.

1 reply

mwoods1971AuthorCorrect answer
Inspiring
June 23, 2014

Update:

Ok for now I think I have this worked out. So hopefully to help out anyone else in my shoes I'm going to recap what I did to get this working:

Coldfusion 10

Red Hat Enterprise Linux 5.10

Apache x64 v 2.2.3

After the install I noticed the following error when trying to start Apache:

Starting httpd: http: Syntax error on line 992 of /etc/httpd/conf/httpd.conf:

Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf

Cannot load /opt/coldfusion10/cfudion/wsconfig/1/mod_jk.so into server: /opt/coldfusion10/config/wsconfig/1/mod_jk.so

unidentified symbol: a_get_server_description

After lots of searching, I found this link: https://helpx.adobe.com/coldfusion/kb/rhel-connector-configuration.html

In here it mentions that Adobe has some pre-complied mod_jk.so files for specific version of RHEL.

My version was not listed but it didn't stop me from trying to copy over the mod_jk.so file into the config directory located here (/opt/coldfusion/config/wsconfig/1/)

According to the link, if none of these worked, I would have to compile a connector of my own.

To compile the connector from source, do the following:

    1. Unzip connector-source.zip.
    2. Open the native folder.
    3. Give permission to folder  chmod -R 777 native/
    4. Run the following configure command:

./configure --with-apxs={apxs executable path} {find the location of apxs using find / -name apxs}

For example, if the apache is installed under /home/apache2, then above command is as follows:

./configure --with-apxs=/home/apache2/bin/apxs

    1. Once configured, the command runs fine. Run the make from same folder. The make command compiles all the source.
    2. Open the apache-2.0 folder and locate mod_jk.so.
    3. If you don't find mod_jk.so, open the apache-2.0 folder.
    4. Replace the generate mod_jk.so with previous configured connector. You can find the same in the location {cf-home}/config/wsconfig/{magic-numner}/mod_jk.so.
    5. Restart ColdFusion and Apache.

The first problem I ran into was, apxs was not installed on the system.

I was able to get installed (as root)

sudo yum install httpd-devel

That gave me the apxs command. I tried again, another failure. This error said: error: C++ preprocessor "/lib/cpp" fails sanity check

That meant that there was no c++ compiler on my system. So, back to yum to install gcc-c++.

sudo yum install gcc-c++

Once that was installed I was able to find the path of apxs and follow the directions listed above. Once it had compiled, I looked into the apache-2.0 directory and copy over the freshly complied mod_jk.so to the configuration directory.

A quick restart of Apache and coldfusion confirmed that everything was working.