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.

Error compiling Apache 2.4

Discussion in 'EasyApache' started by nicolasm, Oct 29, 2014.

  1. nicolasm

    nicolasm Member

    Joined:
    Oct 29, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,
    I'm tyring to update mu server but I get the following problem:
    Code:
        -- Begin step 'Validate ModSecurity Configuration' --
    !! Configuration problem detected on line 23 of file /usr/local/apache/conf/modsec2.conf:    : Syntax error on line 8 of /usr/local/apache/conf/modsec2.user.conf: Could not open configuration file /usr/local/apache/conf/modsec-imh/rules.conf: No such file or directory
        --- /usr/local/apache/conf/modsec2.conf ---
        17SecAuditLog logs/modsec_audit.log
        18SecDebugLog logs/modsec_debug_log
        19SecDebugLogLevel 0
        20SecDefaultAction "phase:2,deny,log,status:406"
        21SecRule MULTIPART_STRICT_ERROR "!@eq 0" "phase:2,t:none,log,deny,status:44,msg:'Multipart request body failed strict validation: PE %{REQBODY_PROCESSOR_ERROR}, BQ %{MULTIPART_BOUNDARY_QUOTED}, BW %{MULTIPART_BOUNDARY_WHITESPACE}, DB %{MULTIPART_DATA_BEFORE}, DA %{MULTIPART_DATA_AFTER}, HF %{MULTIPART_HEADER_FOLDING}, LF %{MULTIPART_LF_LINE}, SM %{MULTIPART_MISSING_SEMICOLON}, IQ %{MULTIPART_INVALID_QUOTING}, IP %{MULTIPART_INVALID_PART}, IH %{MULTIPART_INVALID_HEADER_FOLDING}, FL %{MULTIPART_FILE_LIMIT_EXCEEDED}',id:1234123456"
        22SecRule REMOTE_ADDR "^127.0.0.1$" nolog,allow,id:1234123455
        23 ===> Include "/usr/local/apache/conf/modsec2.user.conf" <===
        24Include "/usr/local/apache/conf/modsec2.cpanel.conf"
        25</IfModule>
        --- /usr/local/apache/conf/modsec2.conf ---
    !!
    !! Restoring original working apache !!
    What should I so?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The error message is likely accurate:

    Please review line 8 of /usr/local/apache/conf/modsec2.user.conf and remove the entry if you do not utilize the custom /usr/local/apache/conf/modsec-imh/rules.conf file.

    Thank you.
     
  3. nicolasm

    nicolasm Member

    Joined:
    Oct 29, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I commented some lines and now's fine
    Thanks!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page