New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Found another rule with the same id

Started by Yun, April 20, 2017, 09:02:35 PM

Previous topic - Next topic

Yun

I have faced strange problem after CWP6 upgrade.
After Mod Security install Apache does not start. I tried Apache Rebuilt, however not fixed. :(

When I have installed Comodo WAF getting error like this:
AH00526: Syntax error on line 22 of /usr/local/apache/modsecurity-cwaf/rules/00_Init_Initialization.conf:
ModSecurity: Found another rule with the same id

When I have installed AWASP latest getting error like this:
AH00526: Syntax error on line 772 of /usr/local/apache/modsecurity-owasp-latest/crs-setup.conf:
ModSecurity: Found another rule with the same id

Yun

For this problem, I do some search, i can not a solution..

For example Plesk solve the problem with an update.
https://support.plesk.com/hc/en-us/articles/213388129-ModSecurity-Found-another-rule-with-the-same-id

Any solution for CWP?

Administrator

try to uninstall and then install again modsecurity

jgysenbergs

I tried several times to uninstall and subsequent install again but that does not work. Also, warning that mod_sec is not installed, does not appear. Do we have an unambiguous solution?

Administrator

try uninstalling mod security and then remove all current rules/folder and files you have in your /usr/local/apache/ folder

jgysenbergs

I rm'ed dirs modsecurity-crs and modsecurity-cwaf and file modules/mod_security2.so

At first, this seemed to work but when restarting httpd it fails again:

Stopping httpd: [  OK  ]
Starting httpd: AH00526: Syntax error on line 14 of /usr/local/apache/modsecurity-cwaf/rules/02_Global_Generic.conf:
ModSecurity: Found another rule with the same id
[FAILED]

sasquire

Had to do a reboot after some updates to my server today, and got exactly the same error, same location.

AH00526: Syntax error on line 14 of /usr/local/apache/modsecurity-cwaf/rules/02_Global_Generic.conf:
ModSecurity: Found another rule with the same id
[FAILED]

Apache will only run if I remove Mod security. Reinstalling mod security fixes the problem until the next time I restart Apache, and same error returns.

Administrator

issue found and fixed it was related to comodo waf update

update cwp to latest version
sh /scripts/update_cwp

jgysenbergs


sasquire

Same. All working well again :D
Much appreciated.

edur

Quote from: Administrator on May 05, 2017, 04:25:47 PM
issue found and fixed it was related to comodo waf update

update cwp to latest version
sh /scripts/update_cwp

I have the same problem and I the newest version:   0.9.8.238

:-\



beer73

In my case, maybe due to some update (I dont know) I had duplicated these last 3 lines in my httpd.conf file which caused me the error "FOUND ANOTHER RULE WITH THE SAME ID":

Include /usr/local/apache/conf/sharedip.conf
Include /usr/local/apache/conf.d/*.conf
ExtendedStatus On

Include /usr/local/apache/conf/sharedip.conf
Include /usr/local/apache/conf.d/*.conf
ExtendedStatus On


Removing duplicate lines everything works correctly.