Skip to main content

mod_security logs HUGE and Failed to access DBM file entries

Comments

6 comments

  • quietFinn
    Look in WHM -> Service Configuration -> cPanel Log Rotation Configuration Is error_log in rotation?
    0
  • jeffschips
    Rotation shows 300mb and supposed to archive but I can't find any files in the reported archive directory. Current error_log shows: 13981215 Jan 6 11:43 error_log I wish linux would make it easy to read what 13981215 is? Bytes? Megabytes? How to read and convert? Thank you.
    0
  • jeffschips
    SOLVED: ls -l --block-size=M error_log or 14mb. Way below 300mb threshold
    0
  • quietFinn
    I don't know what you mean by " Current error_log shows ", you can see the size (in root SSH) like this: ls -lah /usr/local/apache/logs/error_log
    Edit: seems you found a solution before I finished posting... Edit2: 13981215 is bytes, option "-h" in ls command means "human-readable"
    0
  • jeffschips
    It shows size as: 13981215 Jan 6 11:43 error_log My issue was the file was large and possibly not rotating out. However, once I could interpret what 13981215 means when running ls -la error_log (using ls -l --block-size=M error_log and now also lah) I saw that it wasn't large at all in terms of rotating out. So solved. Oh, and the error message "Failed to access DBM file" once examining the logs, seems to be related to non-authorized users trying to access the system, and failing.
    0
  • cPanelAnthony
    Thank you for posting your solution!
    0

Please sign in to leave a comment.