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!

How to enable SecStatusEngine

Discussion in 'Security' started by Nirjonadda, Apr 25, 2018.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    612
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Please can you let me know that how to enable SecStatusEngine?

    Does Add in the Apache Configuration »Include Editor > Pre Main Include

    Code:
    SecStatusEngine On
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,552
    Likes Received:
    253
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,

    You should be able to enable this in the modsecurity conf at /etc/apache2/conf.d/modsec2.conf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    612
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Please let me know that where we can add "SecStatusEngine On"?

    Code:
    ###################################################
    # WARNING: All changes to this file will be lost!
    # WARNING: All changes to this file will be lost!
    #
    # Make changes to modsec/modsec2.user.conf instead!
    #
    # WARNING: All changes to this file will be lost!
    # WARNING: All changes to this file will be lost!
    ###################################################
    
    <IfModule security2_module>
        SecAuditLog logs/modsec_audit.log
        SecDebugLog logs/modsec_debug.log
        SecDebugLogLevel 0
        SecDefaultAction "phase:2,deny,log,status:406"
    
        # Switch to concurrent logging when Apache is running under a multi-uid
        # environment.  This ensures that each user can successfully log to
        # their own log file.
        <IfModule ruid2_module>
            SecAuditLogStorageDir logs/modsec_audit
            SecAuditLogType Concurrent
        </IfModule>
        <IfModule mpm_itk_module>
            SecAuditLogStorageDir logs/modsec_audit
            SecAuditLogType Concurrent
        </IfModule>
    
        # user.conf must com before cpanel.conf to allow adminsitrators
        # to selectively disable vendor rules
        Include /etc/apache2/conf.d/modsec/modsec2.user.conf
        Include /etc/apache2/conf.d/modsec/modsec2.cpanel.conf
    
    </IfModule>
    
    ###################################################
    # WARNING: All changes to this file will be lost!
    # WARNING: All changes to this file will be lost!
    #
    # Make changes to modsec/modsec2.user.conf instead!
    #
    # WARNING: All changes to this file will be lost!
    # WARNING: All changes to this file will be lost!
    ###################################################
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,552
    Likes Received:
    253
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,


    I added it to my /etc/apache2/conf.d/modsec/modsec2.user.conf as follows and have not received another notification that it's disabled:

    # cat /etc/apache2/conf.d/modsec/modsec2.user.conf
    SecStatusEngine On

    And I just realized that erroneously gave you the wrong conf file. The file should be again /etc/apache2/conf.d/modsec/modsec2.user.conf changes made to /etc/apache2/conf.d/modsec2.conf will be overwritten


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Nirjonadda likes this.
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