Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

collections_remove_stale error

Discussion in 'EasyApache' started by chonk, Mar 23, 2017.

Tags:
  1. chonk

    chonk Member

    Joined:
    Feb 28, 2015
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,
    I tried everything, but it just doesn't work. I keep getting this error on my apache error logs.

    ModSecurity: collections_remove_stale: Failed to access DBM file "/tmp/global": Permission denied

    Anyone know how to fix it?
    I'm using suphp with WAF modsecurity rules. It's Centos 7 with Apache 2.4
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Are you using MPM-ITK? You can check by running the following command:

    Code:
    rpm -qa|grep mpm
    If your system uses either the mod_ruid2 or the mod_mpm_itk Apache modules and also uses Persistant Storage with the initcol, setuid, or setsid directives in the ModSecurity rules, Apache will fail to track that rule. Apache will also log errors to its error_log file. For example, the IP Reputation rule in the OWASP core ruleset may give this error. This is documented at:

    Apache Module: ModSecurity - EasyApache 4 - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. chonk

    chonk Member

    Joined:
    Feb 28, 2015
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    My system uses prefork mpm. I don't use OWASP core ruleset also.

    That code gives me that:
    ea-apache24-mod_mpm_prefork-2.4.25-7.7.1.cpanel.x86_64
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    It also appears you are using a custom path for SecDataDir (/tmp/global). Try updating this path per the instructions on the following thread and let us know if the issue persists:

    ModSecurity - SecDataDir

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice