The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Failed to access DBM file

Discussion in 'Security' started by Atrix, Jul 15, 2015.

  1. Atrix

    Atrix Member

    Joined:
    Sep 7, 2012
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    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.
     
  2. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    942
    Likes Received:
    57
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    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.
     
  3. Atrix

    Atrix Member

    Joined:
    Sep 7, 2012
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    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.
     
  4. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    942
    Likes Received:
    57
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    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.
     
  5. Atrix

    Atrix Member

    Joined:
    Sep 7, 2012
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Thanks what I did fixed it just felt excessive to get it to work.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page