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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to enable SecStatusEngine

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

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    578
    Likes Received:
    14
    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
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    967
    Likes Received:
    67
    Trophy Points:
    103
    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
     
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    578
    Likes Received:
    14
    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!
    ###################################################
    
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    967
    Likes Received:
    67
    Trophy Points:
    103
    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,
     
    Nirjonadda likes this.
Loading...

Share This Page