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.

Which modsec2.* files are being used?

Discussion in 'Security' started by SuperBaby, Jan 6, 2009.

  1. SuperBaby

    SuperBaby Well-Known Member

    Joined:
    Nov 27, 2003
    Messages:
    331
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Thailand
    cPanel Access Level:
    Website Owner
    Twitter:
    I use CSF and under /usr/local/apache/conf/ I see these modsec2.* files. Which of them are being used and which are safe to delete?

    modsec2.conf
    modsec2.conf_backup
    modsec2.user.conf
    modsec2.user.conf.default
    modsec2.user.conf.none
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:


    Using CSF it couldn't be easier to look at them.

    modsec2.conf - called by Apache. Open and look at it. (click edit)

    Should have this:
    Include "/usr/local/apache/conf/modsec2.user.conf"

    That's the file in use.

    .default is just what its called, the default .conf loaded by cPanel.

    .none is just what its called, open and peek. It's empty.
     
  3. SuperBaby

    SuperBaby Well-Known Member

    Joined:
    Nov 27, 2003
    Messages:
    331
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Thailand
    cPanel Access Level:
    Website Owner
    Twitter:
    Thanks. Your description is correct in every sense. But I still do not understand why so many versions are kept.
     
Loading...

Share This Page