Control Web Panel
Security => Mod_Security => Topic started by: Yun on April 20, 2017, 09:02:35 PM
-
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
-
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?
-
try to uninstall and then install again modsecurity
-
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?
-
try uninstalling mod security and then remove all current rules/folder and files you have in your /usr/local/apache/ folder
-
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]
-
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.
-
issue found and fixed it was related to comodo waf update
update cwp to latest version
sh /scripts/update_cwp
-
Worked for me. Thank you. - JG
-
Same. All working well again :D
Much appreciated.
-
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
:-\
-
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.