Error compiling Apache 2.4
Hi,
I'm tyring to update mu server but I get the following problem:
What should I so?
-- 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
--- /usr/local/apache/conf/modsec2.conf ---
!!
!! Restoring original working apache !!What should I so?
-
Hello :) The error message is likely accurate: 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
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.0 -
]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.
I commented some lines and now's fine Thanks!0 -
I am happy to see the issue is now addressed. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments