• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF2023 Install on Linux Can't get CF to Connect With Apache

Community Beginner ,
May 14, 2024 May 14, 2024

Copy link to clipboard

Copied

I have setup CF on many windows servers over the years but this is my firat attempt at setting up CF on Linux. I have a newly setup REHL 9.3-0.5.el9.x86_64 server. I have Apache 2.5.47 running on it. I installed CF using the GUI installer and set it up with the Production Profile. I upgraded to Update 7 and then upgraded the Java to 17.0.11 and in the CF Admin I can see that it is running Tomcat version 9.0.85.0. In Apache I setup two virtual hosts and on my windows machine I edited my hosts file so that I can access both of those sites through a web browser on my local computer. Next I ran the wsconfig from the command line with this:
sudo ./wsconfig -ws Apache -dir /etc/httpd/conf -bin /usr/sbin/httpd -v

I can see it created several files in the ColdFusion2023/config/wsconfig folder and in the /ect/httpd/conf folder it added mod_jk.so and it added these lines to the httpd.conf file.

Include "/etc/httpd/conf/mod_jk.conf"
Include "/home/cimwebadm/opt/ColdFusion2023/config/wsconfig/1/mod_jk_vhost.conf"

Of course I restarted Apache and just for good measure I restarted CF also.

When I try to load a simple CF page it gives me a 503 Service Unavaiable error. However I can still get a simple html page to pull up and the CF admin so I know both are working they aren't are able to communicate with each other.

I went through many log files the only one that seems to point to the problem is the mod_jk_global.log file in the /etc/httpd/conf folder.

[Tue May 14 10:40:49.635 2024] [1769382:139988129695296] [info] jk_open_socket::jk_connect.c (816): connect to ::1:8022 failed (errno=111)
[Tue May 14 10:40:49.635 2024] [1769382:139988129695296] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1158): (cfusion) Failed opening socket to (::1:8022) (errno=111)
[Tue May 14 10:40:49.635 2024] [1769382:139988129695296] [error] ajp_send_request::jk_ajp_common.c (1829): (cfusion) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Tue May 14 10:40:49.635 2024] [1769382:139988129695296] [info] ajp_service::jk_ajp_common.c (3000): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Tue May 14 10:40:49.635 2024] [1769382:139988129695296] [error] ajp_service::jk_ajp_common.c (3021): (cfusion) connecting to tomcat failed (rc=-3, errors=9913, client_errors=0).

Searching the web I find very little info about CF and Tomcat. Any help with what to do to next would be appreciated.

Views

117

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , May 14, 2024 May 14, 2024

I kept searching and found the answer in this community. in the post titled: TomCat 503 Service Unavailable error

 

It turns out I had to edit the cfusion/runtime/conf/server.xml file and add adress="::1" to the AJP connector line and then restart CF. Thanks Charlie for the fix. 

Votes

Translate

Translate
Community Beginner ,
May 14, 2024 May 14, 2024

Copy link to clipboard

Copied

LATEST

I kept searching and found the answer in this community. in the post titled: TomCat 503 Service Unavailable error

 

It turns out I had to edit the cfusion/runtime/conf/server.xml file and add adress="::1" to the AJP connector line and then restart CF. Thanks Charlie for the fix. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation