Skip to main content
Participant
May 13, 2009
Answered

Installing on 64-bit Linux

  • May 13, 2009
  • 1 reply
  • 1376 views

Greetings All,

I was just recently upgrading my servers and ran into some trouble. I had ColdFusion 8.0.1 Standard up and running just fine on Apache 2.2.11 on a 64-bit CentOS 5.1 server. I got a new server, install CentOS 5.3 64-bit and then OpenSSL, Apache 2.2.11 and then tried ColdFusion 8.

At first CF8 wouldn't install because the httpd binary I build was 64-bit, something I had never had a problem with before. So I recompiled apache with export CFLAGS=-m32 first and that got me a 32-bit apache httpd and ColdFusion would install.

Once I started the ColdFusion the apache connector failed. I remember this problem from ColdFusion 7, but I don't remember ever having this problem with 8. I've look through all of the 64-bit related information and nothing works for me. I continue to get stuck trying to compile the mod_jrun22.so by hand. Here is the output when I try to compile it:

/Error running "/opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22": exit code was 1
Could not build Apache2 web server connector from source.  Use build script /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22.
usr/bin/ld: warning: i386 architecture of input file `/opt/coldfusion8/runtime/lib/wsconfig/1/.libs/platform.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/coldfusion8/runtime/lib/wsconfig/1/.libs/jrun_utils.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/coldfusion8/runtime/lib/wsconfig/1/.libs/jrun_session.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/coldfusion8/runtime/lib/wsconfig/1/.libs/jrun_proxy.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/coldfusion8/runtime/lib/wsconfig/1/.libs/jrun_property.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/coldfusion8/runtime/lib/wsconfig/1/.libs/jrun_mutex.o' is incompatible with i386:x86-64 output

The script /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22 is giving me this error.

Thanks for any help, here is a summary of my specs:

Machine: CentOS 5.3 64-bit

Apache: 2.2.11

Compile: export CLFAGS=-m32; ./configure --prefix=/opt/apache22 --enable-ssl --with-ssl=/usr/local/ssl

    This topic has been closed for replies.
    Correct answer

    Hi,

    I had the same problem on a 32 bit apache server CentOS 64 bit (v5.10).

    I solved it by adding a 32 bit parameter to the apxs tool which builds the connector.

    Hope it helps someone in future. Please reply if it does!

    Regards,

    Ruben

    cd /opt/coldfusion8/runtime/lib

    /opt/coldfusion8/runtime/jre/bin/java -Dtrace.ci=1 -jar wsconfig.jar -upgrade -v

    # Probably you end up with '/opt/coldfusion8/runtime/lib/wsconfig/1/' deleted and 'There are no configured web servers'

    # Good!

    # Optional

    yum install glibc-devel

    # Make sure instdso.sh exists... (else no need to overwrite)

    cp /usr/lib/httpd/build/instdso.sh /usr/lib64/httpd/build/

    cd /opt/coldfusion8/bin/connectors

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

    # Message: Could not build Apache2 web server connector from source.  Use build script /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22

    # Good!

    # First edit '/opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22'

    # Find: /usr/sbin/apxs -c  -Wc,-w -n jrun22 /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.c \

    # Into: /usr/sbin/apxs -c  -Wl,-m32 -Wc,-w -n jrun22 /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.c \

    # Now run the builder

    /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22

    # Probably this is required also

    /usr/lib/apr-1/build/libtool --finish /usr/lib/httpd/modules

    # Check everything

    apachectl restart

    1 reply

    Correct answer
    August 15, 2014

    Hi,

    I had the same problem on a 32 bit apache server CentOS 64 bit (v5.10).

    I solved it by adding a 32 bit parameter to the apxs tool which builds the connector.

    Hope it helps someone in future. Please reply if it does!

    Regards,

    Ruben

    cd /opt/coldfusion8/runtime/lib

    /opt/coldfusion8/runtime/jre/bin/java -Dtrace.ci=1 -jar wsconfig.jar -upgrade -v

    # Probably you end up with '/opt/coldfusion8/runtime/lib/wsconfig/1/' deleted and 'There are no configured web servers'

    # Good!

    # Optional

    yum install glibc-devel

    # Make sure instdso.sh exists... (else no need to overwrite)

    cp /usr/lib/httpd/build/instdso.sh /usr/lib64/httpd/build/

    cd /opt/coldfusion8/bin/connectors

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

    # Message: Could not build Apache2 web server connector from source.  Use build script /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22

    # Good!

    # First edit '/opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22'

    # Find: /usr/sbin/apxs -c  -Wc,-w -n jrun22 /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.c \

    # Into: /usr/sbin/apxs -c  -Wl,-m32 -Wc,-w -n jrun22 /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.c \

    # Now run the builder

    /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22

    # Probably this is required also

    /usr/lib/apr-1/build/libtool --finish /usr/lib/httpd/modules

    # Check everything

    apachectl restart