Skip to main content
susong
Participant
August 30, 2016
Answered

Invalid command 'JkIPRestrictionFile'

  • August 30, 2016
  • 1 reply
  • 618 views

RedHat 7.2

httpd-2.4.6-40.el7_2.4.x86_64

ColdFusion 11 (64-bit)

After installing hotfix 8, apache is not starting:

Aug 30 16:08:27 web5vm httpd[2843]: AH00526: Syntax error on line 6 of /etc/httpd/conf/mod_jk.conf:

Aug 30 16:08:27 web5vm httpd[2843]: Invalid command 'JKIPRestrictionFile', perhaps misspelled or defined by a module not included in the server configuration

Anyone experiencing this issue?

    This topic has been closed for replies.
    Correct answer Vikram Kumar M

    Hi Su,

    Have you tried recreating the connectors after installing the update? We have removed the IPRestrictions file in CF11 Update 3 and above. It must be defined in the Apache Web Server end in case your environment requires its use, but not on the ColdFusion end. I would suggest you to try recreating the connectors and see if this helps.

    Thanks,

    Vikram

    1 reply

    Vikram Kumar M
    Community Manager
    Vikram Kumar MCommunity ManagerCorrect answer
    Community Manager
    September 1, 2016

    Hi Su,

    Have you tried recreating the connectors after installing the update? We have removed the IPRestrictions file in CF11 Update 3 and above. It must be defined in the Apache Web Server end in case your environment requires its use, but not on the ColdFusion end. I would suggest you to try recreating the connectors and see if this helps.

    Thanks,

    Vikram

    suy54188317
    Participant
    September 1, 2016

    That worked great, Thank you.

    This is how I recreated apache connection, let me know if there's anything I missed?

    1. Backup mod_jk.conf file and /opt/coldfusion11/config/wsconfig/ directory

    2. Remove mod_jk.conf file and /opt/coldfusion11/config/wsconfig/ directory

    3. Run wsconfig, here is the specific command I used:

    /opt/coldfusion11/cfusion/runtime/bin/wsconfig -ws Apache -dir /etc/httpd/conf/ -cfide /opt/coldfusion11/cfusion/wwwroot/CFIDE/ -bin /usr/sbin/httpd -script /usr/sbin/apachectl

    4. Additionally, had to change the file context for mod_jk.log file for selinux to allow access

    chcon -v --reference=/var/log/httpd/access_log /opt/coldfusion11/config/wsconfig/1/mod_jk.log

    Vikram Kumar M
    Community Manager
    Community Manager
    September 1, 2016

    Hi Su,

    It looks good to me.

    Thanks,

    Vikram