Failed to access DBM file
I get ModSecurity: collection_store: Failed to access DBM file "/var/cpanel/secdatadir/ip": Permission denied in my log files I read around and found that I shouldn't use mod_ruid2 so I went through and removed that using easy apache. This was a big pain, becasue I had to change file permissions and uninstall a module, and the server was down for a time as a result which made clients not happy. And, after all that, it still gives me the exact same error using suphp.
I need mod_security working well, help sincerely appreciated.
-
After changing to SuPHP you should remove /var/cpanel/secdatadir/ip.dir and ip.pag in the same directory. Restart apache and it should be recreated with proper permissions. 0 -
Those files didn't exist :( Restarting apache didn't make them be created either. I ended up rerunning easy apache again, unchecking mod_security, then moving all modsec2.* files out of the /usr/local/apache/conf directory then running easy apache again this time checking the mod_security box :/ Your idea gave me that idea tho so thanks. 0 -
That is odd. I should have been more clear; restarting apache doesn't recreate the collection files (ip.dir, ip.pag), they would be recreated the first time a visitor tripped a rule that needed them. I hope you get it all straightened out. 0 -
Thanks what I did fixed it just felt excessive to get it to work. 0 -
Hello :) I am happy to see the issue is now resolved. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
5 comments