I'm forced to create a new thread because this forum disallows replying to threads after 1 year (what a strange rule!).
This problem still exists after many years:
Change secdatadir
Mod_Security DBM Question
ModSecurity: Rule processing failed.
cPanel confirmed - Modsecurity incompatibility with Mod_ruid2 · Issue #1334 · SpiderLabs/ModSecurity · GitHub
my.ultrawebhosting.com/knowledgebase/359/ModSecurity-collectionstore-Failed-to-access-DBM-file-orvarorcpanelorsecdatadirorip-Permission-denied-.html
Failed to access DBM file "/var/cpanel/secdatadir/ip": Permission denied - ConfigServer Community Forum
serverfault.com/questions/687159/apache-with-modsec-collections-remove-stale-failed-to-access-dbm-file
I found a possible fix:
prakash-khadka.com.np/failed-access-dbm-file-varcpanelsecdatadirip-permission-denied/
I tried applying the change to /etc/apache2/conf.d/modsec/modsec2.user.conf
but apparently that file cannot override directives in /etc/apache2/conf.d/modsec/modsec2.cpanel.conf
I applied the change directly to modsec2.cpanel.conf and mercy be, the messages have stopped!! Too bad they'll start again when cPanel rewrites this file.
I weep for the future of my SSD drive as thousands of these messages are logged.
This problem still exists after many years:
Change secdatadir
Mod_Security DBM Question
ModSecurity: Rule processing failed.
cPanel confirmed - Modsecurity incompatibility with Mod_ruid2 · Issue #1334 · SpiderLabs/ModSecurity · GitHub
my.ultrawebhosting.com/knowledgebase/359/ModSecurity-collectionstore-Failed-to-access-DBM-file-orvarorcpanelorsecdatadirorip-Permission-denied-.html
Failed to access DBM file "/var/cpanel/secdatadir/ip": Permission denied - ConfigServer Community Forum
serverfault.com/questions/687159/apache-with-modsec-collections-remove-stale-failed-to-access-dbm-file
I found a possible fix:
prakash-khadka.com.np/failed-access-dbm-file-varcpanelsecdatadirip-permission-denied/
I tried applying the change to /etc/apache2/conf.d/modsec/modsec2.user.conf
but apparently that file cannot override directives in /etc/apache2/conf.d/modsec/modsec2.cpanel.conf
I applied the change directly to modsec2.cpanel.conf and mercy be, the messages have stopped!! Too bad they'll start again when cPanel rewrites this file.