Skip to main content

mod_sec / OWASP database config location

Comments

5 comments

  • quizknows
    I know this doesn't directly answer your question, but if you don't care about seeing hits in WHM (i.e. you can just look at the error_log or audit log) it's probably not a big deal. The ModSecurity module on it's own generally doesn't use a database (like MySQL). The "modsec" MySQL database on cPanel servers simply stores information about triggered rule events, which is just parsed from the Apache logs. It is not technically critical to the operation of ModSecurity itself. I do hope someone at cPanel can answer your actual question though. Looking through /scripts/setup_modsec_db and /usr/local/cpanel/bin/modsecpass I'm not seeing any clues jump out at me.
    0
  • edigest
    You're quite correct that one of the main drivers for using the local server is to segregate data from different servers. Anybody from CPanel care to weigh in?
    0
  • quizknows
    Like I said I still hope cPanel weighs in for you, but what I'm saying is each individual server will still have its modsec log info for itself regardless (unless you have a crazy syslog setup or something). Literally the only purpose of the modsec DB is to view the hits in WHM.
    0
  • edigest
    Like I said I still hope cPanel weighs in for you, but what I'm saying is each individual server will still have its modsec log info for itself regardless (unless you have a crazy syslog setup or something). Literally the only purpose of the modsec DB is to view the hits in WHM.

    I'm well aware of that but it is not relevant to why I want to use the local server database. Since this may have gotten lost in off-topic responses, I'll repost in case anybody from CPanel reads this: I would like to configure a specific host before installing OWASP mod_sec in WHM. Where can I find the configuration file?
    0
  • cPanelMichael
    I would like to configure a specific host before installing OWASP mod_sec in WHM. Where can I find the configuration file?

    Hello :) There are no native features that will allow you to enable or disable the use of a remote MySQL server on a per-database basis. I suggest opening a feature request for this via: Submit A Feature Request Thank you.
    0

Please sign in to leave a comment.