Today we installed ColdFusion 8 Beta (get it now on labs.adobe.com) on RedHat/CentOS 5 (within VMWare Fusion 4 Beta) and run into some troubles. The problem was that the installer did not configure the connector to Apache 2.2.x correctly and when you tried to log on to the CF Administration you did not get the expected welcome screen.
The solution to this is to run the Apache Connector again, but with some modification.
- Go into the ColdFusion installation directory (/opt/coldfusion8) and then to the “connectors” directory. Open up the file “apache_connector.sh” and set the paths to your apache installation correct.
- Install the httpd-devel package. To do so, enter the terminal and execute the command “yum install httpd-devel*”. Without it the script above fails to run.
Once the above steps are done you can run the script with “./apache_connector.sh” and everything will be setup and your ColdFusion will be happy to serve you.
Sphere: Related ContentIf you enjoyed this post, make sure you subscribe to the RSS feed!
When wsconfig tries to compile a new connector on the fly for your Apache, if the apxs command is not found then wsconfig will stop and produce an error that tells you to install httpd-devel package in order to get the apxs utility.
Here’s the error when configuring Apache on Suse when I intentionally removed the apxs and its httpd-devel package (to test the error message was correct):
% /opt/coldfusion8/bin/connectors # ./apache_connector.sh
Found JRun server coldfusion at 127.0.0.1:2930
Using Apache binary /usr/sbin/httpd2-prefork
Using Apache control script /usr/sbin/apache2ctl
Parsing Apache configuration file /etc/apache2/httpd.conf
Exec’ing chmod 777 /opt/coldfusion8/runtime/lib/wsconfig/1
Set permission to 777 on /opt/coldfusion8/runtime/lib/wsconfig/1
Server version: Apache/2.2.3
Exec’ing chmod +x /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22
Set permission to execute on /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22
Could not find the required apxs (Apache Extension Tool) binary /usr/sbin/apxs. Check that package httpd-devel package is installed. Could not build Apache2 web server connector from source. Use build script /opt/coldfusion8/runtime/lib/wsconfig/1/build_jrun22.
(on Suse the utiliy is actually apxs2, but wsconfig does look for both apxs and apxs2, and the required package is httpd2-devel instead)
Hi Steven
But the problem is that the installer did not complain at all during installation. I configured the path’s to Apache (/etc/bin/httpd, etc.). The installer did not stop or has thrown an error. It just continued with a "Successfully installed ColdFusion …." message.
I understand your point. During installation on Unix/Linux, the installer accepts information about the webserver, but the connector is not actually installed until the ColdFusion server is started for the first time. As was pointed out in a related thread by Vinu, there is a Connector installation log in the ColdFusion root directory which will contain details about success or failure.
To someone that is not so experienced with working with the connector, it would seem that the installer should at least provide better instructions about what to expect regarding the connector, including where to look if there was a failure.
Right, some feedback if something goes wrong would be very helpful and with a text based installer even more. Even for me, and I have been using CF for a long time now, I was at first baffled what to do…….
Thank-you for posting this!
Adding to your two steps above, my Centos5 install is default, so the lines in the apache_connector.sh file should look like:
-dir /etc/httpd/conf \
-bin /usr/sbin/httpd \
-script /etc/init.d/httpd \
Tried to install Coldfusion 8 Developer Edition on Red Hat Enterprise 5. But always failed to configure the webserver. Tried it as listed above. But apache want start. Now reinstalled CF and choosen Multi-Server(JRun4) installation. And now it works, without editing anything.
I’m having the same issue on a RH box. When I tried your YUM command, it told me No match for argument httpd-devel*.
Hi Ray
You need to install the Devel HTTP files first. Did you do that? Mostly they are not installed by default since those are the developer files.
Type in "yum install http-devel*" and it should list you the files to install.