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!

ModSecurity - SecDataDir

Discussion in 'EasyApache' started by cetiner, Jun 15, 2019.

  1. cetiner

    cetiner Member

    Joined:
    Dec 24, 2018
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    turkey
    cPanel Access Level:
    Root Administrator
    Error in Log file:

    ModSecurity: collections_remove_stale: Failed to access DBM file "/var/cpanel/secdatadir/cpanelAccountname-ip": Permission denied

    and

    ModSecurity: collections_remove_stale: Failed to access DBM file "/var/cpanel/secdatadir/cpanelAccountname-global": Permission denied

    There is no directory with an cPanel account name inside.

    upload_2019-6-15_16-28-46.png

    If I create it now manually won't be the solution, cause it will happen again with next cpanel user account.......

    By the way - I followed the FIX amchey.com/2018/02/fix-failed-to-access-dbm-file-when-using-mod_ruid2-and-mod_security/

    But it's risky and not the right solution for my problem. I feel not very well with the chmod 777!!!


    Okay - every cPanel user seems to have his own secdatadir, but it doesn't exist always.
    So how to make the WHM software able to create this folders ? Missing access rights??

    Thanks in advance
     
  2. cetiner

    cetiner Member

    Joined:
    Dec 24, 2018
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    turkey
    cPanel Access Level:
    Root Administrator
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,447
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Does the issue persist with mod_ruid2 disabled?
     
    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