Skip navigation
Currently Being Moderated

Coldfusion doesn't work on Centos 5.x

Jun 26, 2012 6:18 PM

I installed CF10 on 2 64 bit servers (CentOS 5.7 and CentOS 5.8). I received errors on both when I entered administrator site.

 

http://[ip]/CFIDE/administrator/

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

 

 

To compare to process of CF9 installation, there are some differences

1/ The installation doesn't ask for web root. Therefore, CF adminstration files were not copied to web root and symbolic link was also not created. I had to create symbolic links manually.

ln -s /usr/coldfusion10/cfusion/wwwroot/CFIDE [my_web_root]

 

 

2/ On the CentOS 5.7 server, when I turned on Secure Profile and was asked to enter a complex password, the verification didn't work correctly. It didn't accept my super complicated password (tH4@6@xUJU9wUKUp#t). It kept asking me to enter an appropriate password. For this reason, I had to cancel installation and resintalled without Secure Profile

 

 

3/ Error occured on Apache configuration file. I believe CF10 installation modified Apache configuration file. When I restarted Apache after CF 10 installation had been done, it failed due to bad syntax on Apache configuration file. It missed the close tag.

<Files ~ "^\.ht">

    Order allow,deny

    Deny from all

</Files>

 

 

4/ Apache confiugrations which had been asked during installation were not used. When installaton finished, I had to modify /usr/coldfusion10/cfusion/bin/connectors/apache_connector.sh to replace incorrect values

../../runtime/bin/wsconfig \

    -ws apache \

        -dir /etc/httpd/conf \

        -bin /usr/sbin/httpd \

        -script /etc/init.d/httpd \

 

exit $#

 

 

5/ Some warnings in coldfusion-error.log. However, I haven't found solution yet.

 

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/coldfusion10/jre/lib/amd64/server:/usr/coldfusion10/jre/lib/amd6 4:/usr/coldfusion10/jre/../lib/amd64:/usr/coldfusion10/cfusion/lib:/us r/coldfusion10/cfusion/lib/_ilnx21/bin:/usr/coldfusion10/cfusion/lib/i nternational::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr /lib

Jun 22, 2012 12:57:31 PM org.apache.coyote.AbstractProtocol init

 

 

6/ Errors in mod_jk.log

 

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [error] jk_open_socket::jk_connect.c (448): socket() failed (errno=22)

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1027): Failed opening socket to (127.0.0.1:8012) (errno=22)

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [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)

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [info] ajp_service::jk_ajp_common.c (2629): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [error] jk_open_socket::jk_connect.c (448): socket() failed (errno=22)

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1027): Failed opening socket to (127.0.0.1:8012) (errno=22)

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [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)

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [info] ajp_service::jk_ajp_common.c (2629): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [error] ajp_service::jk_ajp_common.c (2648): (cfusion) connecting to tomcat failed.

[Fri Jun 22 10:27:42 2012] [19377:47973486221472] [info] jk_handler::mod_jk.c (2725): Service error=-3 for worker=cfusion

 

 

Server details:

* Apache version and dependent packages

httpd-devel-2.2.3-65.el5.centos

httpd-2.2.3-65.el5.centos

httpd-devel-2.2.3-65.el5.centos

system-config-httpd-1.3.3.3-1.el5

httpd-manual-2.2.3-65.el5.centos

 

* Selinux was set to

SELINUX=permissive

SELINUXTYPE=targeted

SETLOCALDEFS=0

 

* CF9 was uninstalled.

 

* I also upgraded JRE to the latest version (1.7) but there's no luck.

 

* I followed those tips http://forums.adobe.com/message/4501334

 

Any help is much appreciated.

 
Replies
  • Currently Being Moderated
    Jul 19, 2012 3:36 PM   in reply to dudley@ecwd

    I am not sure whether SELinux is officially supported with ColdFusion or not. In permissive mode you shouldn't have these problems.

     

    If it is enabled the following is required:

     

     

    setsebool -P httpd_can_network_connect 1

     


    This is necessary for mod_jk to talk to ColdFusion.  It fixed the error you describe in my case. You might make sure that ColdFusion is running of course. Be patient - setsebool takes about a minute to run,

     

    Also:

     

    /opt/coldfusion10/config/wsconfig/1/mod_jk.so must be httpd_modules_t

    mod_jk.log must be httpd_log_t.   /var/log/httpd is a good place for it.

    Use chcon -t to make these changes

     

    Plus other contexts set as standard for Apache (httpd_sys_content_t, etc). I hope this helps.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points