Copy link to clipboard
Copied
I'm trying to install ColdFusion 10 on a Red Hat Enterprise Linux 5.8 server with Apache 2.2.3. The install appears to complete with no errors. After some searching the web, I found I had to change the adobe connector shell script to use my directories instead of the bogus ones that were there. The httpd reports that the mod_jk is loaded (apachectl -M returns jk_module (shared) among other things). However, when I attempt to load a ColdFusion page, my web server says "503 Service Temporarily Unavailable". I've look in the log files for httpd and for ColdFusion and see nothing amiss, but I am new to this ColdFusion.
It appears my Apache httpd is not communicating with the ColdFusion process, which is listening on ports:
TCP *:8012
TCP localhost.localdomain:8007
TCP *:7995
TCP *:6085
TCP *:8575
TCP *:1243
Any suggestions?
Danial for bannock21
Copy link to clipboard
Copied
It sounds like SELinux may be causing issue: First check to see if you have SELinux in enforcing mode, if so you will need to run:
setsebool httpd_can_network_connect=1
To allow apache to make network connections to connect to the ColdFusion/Tomcat connector. If that works your next result will probably be a 403 Forbidden, if so then you probably need to run chcon to allow apache to read / execute certain files, for example:
chcon --reference=/etc/httpd/modules/mod_rewrite.so /opt/coldfusion10/ config/wsconfig/1/mod_jk.so
chcon --reference=/var/log/httpd/access_log /opt/coldfusion10/config/ wsconfig/1/mod_jk.log
chcon --reference=/var/log/httpd/access_log /opt/coldfusion10/config/ wsconfig/1/jk_shm
chcon -R --reference=/var/www /opt/coldfusion10/cfusion/wwwroot/CFIDE
Finally if your webroot is not in /var/www you will also need to run this:
chcon -R --reference=/var/www /your/web/root/
--
Pete Freitag
Copy link to clipboard
Copied
I disabled SELinux already (one of the first things I did after the OS install).
Just to verify, I executed "setsebool httpd_can_network_connect=1" and got the result "setsebool: SELinux is disabled."
I've also disabled the host-based firewall (iptables).
Any other suggestions out there?
-- Danial for bannock21
Copy link to clipboard
Copied
Here are the entries in the mod_jk.log file:
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [error] jk_open_socket::jk_connect.c (448): socket() failed (errno=22)
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1027): Failed opening socket to (127.0.0.1:8012) (errno=22)
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [error] ajp_send_request::jk_ajp_common.c (1649): (cfusion) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=22)
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [info] ajp_service::jk_ajp_common.c (2629): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [error] jk_open_socket::jk_connect.c (448): socket() failed (errno=22)
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1027): Failed opening socket to (127.0.0.1:8012) (errno=22)
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [error] ajp_send_request::jk_ajp_common.c (1649): (cfusion) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=22)
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [info] ajp_service::jk_ajp_common.c (2629): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [error] ajp_service::jk_ajp_common.c (2648): (cfusion) connecting to tomcat failed.
[Tue Oct 09 17:05:28 2012] [15754:47552417982912] [info] jk_handler::mod_jk.c (2725): Service error=-3 for worker=cfusion
How do I set Tomcat to listen on the correct port?
How do I check whether Tomcat is even running?
Copy link to clipboard
Copied
I recently ran into this same issue when installing ColdFusion 10. Here is the link that Adobe support gave me, and it fixed the issue. I hope this helps if you haven't resolved your issue yet.
http://helpx.adobe.com/coldfusion/kb/rhel-connector-configuration.html