Skip to main content
July 18, 2008
Question

Can't configure Apache connector

  • July 18, 2008
  • 4 replies
  • 3872 views
I've tried this on Fedora Core 9 with no success and now I'm trying it on FC8 with the same error. After installing CF and configuring it to work with Apache, I go to start it and I get

quote:

[root@ns1 ~]# /opt/coldfusion8/bin/coldfusion start
Starting ColdFusion 8...
The ColdFusion 8 server is starting up and will be available shortly.
======================================================================
Running the ColdFusion 8 connector wizard
======================================================================
Configuring the web server connector (Launched on the first run of the ColdFusion 8 start script)
Running apache connector wizard...
=======================================
There was an error while running the connector wizard
Connector installation was not successful
=======================================
======================================================================
ColdFusion 8 has been started.
ColdFusion 8 will write logs to /opt/coldfusion8/logs/cfserver.log
======================================================================



I changed the paths in the 'apache-connector.sh' file, but I still can't get it to work. Any ideas?
This topic has been closed for replies.

4 replies

July 25, 2008
When running the apache-connector script alone, I get this:



[root@ns1 connectors]# ./apache_connector.sh
Fedora release 9 (Sulphur)
Server's Module Magic Number: 20051115:11. Supported major magic numbers on this platform are 20020628 and 20020903.
Attempting to build connector from sources
Server version: Apache/2.2.8 (Unix)
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/mysql -w -c -o /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.lo /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.c && touch /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.slo
cc1: error: unrecognized command line option "-fstack-protector"
cc1: error: invalid parameter `ssp-buffer-size'
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.c:1: error: bad value (generError 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.
July 25, 2008
You can try manually installing the connector per, " ColdFusion MX: Manually configuring the web server connector for ColdFusion MX Standalone". This was written for cfmx6.x, but the procedure is pretty much the same for CF8.
July 25, 2008
The weird thing is, I am back on FC9 and installing this which I was successful at before. It doesn't look like CF is the issue, but maybe my compiler or libraries. I tried doing:

yum install lib*
yum install httpd*
yum install gcc*

to get everything, but still no luck.
July 25, 2008
Ok, this is from this morning when trying:

07/25 09:05:39 info Macromedia JRun 4.0 (Build 108487)
07/25 09:05:40 debug Found JRun server coldfusion at 127.0.0.1:2930
07/25 09:05:40 debug Deleted directory /opt/coldfusion8/runtime/lib/wsconfig/1/.libs
07/25 09:05:40 debug Deleted directory /opt/coldfusion8/runtime/lib/wsconfig/1
07/25 09:05:40 info Fedora release 9 (Sulphur)
07/25 09:05:40 debug Using Apache binary /usr/sbin/httpd
07/25 09:05:40 info Server's Module Magic Number: 20051115:11. Supported major magic numbers on this platform are
20020628 and 20020903.
07/25 09:05:40 info Attempting to build connector from sources
07/25 09:05:40 info Server version: Apache/2.2.8 (Unix)
07/25 09:05:40 debug Using Apache control script /usr/sbin/httpd
07/25 09:05:40 debug Parsing Apache configuration file /etc/httpd/conf/httpd.conf
07/25 09:05:40 debug Exec'ing chmod 777 /opt/coldfusion8/runtime/lib/wsconfig/1
07/25 09:05:40 debug Set permission to 777 on /opt/coldfusion8/runtime/lib/wsconfig/1
07/25 09:05:40 debug Exec'ing chmod +x /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22
07/25 09:05:40 debug Set permission to execute on /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22
07/25 09:05:40 debug Exec'ing /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22
07/25 09:05:41 error Error running "/opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22": exit code was 1
07/25 09:05:41 error Could not build Apache2 web server connector from source. Use build script /opt/coldfusion8/
runtime/lib/wsconfig/1/build_jrun22.
jrunx.connectorinstaller.ConnectorInstallerException: Could not build Apache2 web server connector from source. U
se build script /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22.
at jrunx.connectorinstaller.ApacheInstaller.buildModuleFromSource(ApacheInstaller.java:1234)
at jrunx.connectorinstaller.ApacheInstaller.copyFiles(ApacheInstaller.java:1126)
at jrunx.connectorinstaller.ApacheInstaller.installConnector(ApacheInstaller.java:223)
at jrunx.connectorinstaller.ConnectorInstaller.installConnector(ConnectorInstaller.java:337)
at jrunx.connectorinstaller.ConnectorInstaller.doIt(ConnectorInstaller.java:271)
at jrunx.connectorinstaller.ConnectorInstaller.main(ConnectorInstaller.java:759)
July 21, 2008
What errors do you see in the coldfusion8/lib/wsconfig/wsconfig.log? Are you running with the -apxs switch and do you have apxs installed with your apache? What version of apache are you running?
July 23, 2008
Ken,

I'm having the same issue... when I tried to use the build_jrun22 script it hangs on /usr/lib/apr-1/build/libtool: line 1311" gcc: command not found...

Using Fedora Core 9 with apache 2.2.8

Coldfusion is not serving up any .cfm pages...

about ready to dump and go back to using PHP...