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!

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:
    337
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,518
    Likes Received:
    425
    Trophy Points:
    583
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SuperBaby

    SuperBaby Well-Known Member

    Joined:
    Nov 27, 2003
    Messages:
    337
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
    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