Failed to create subdirectories error
Hi there!!
I get a huge amount of errors from apache:
ModSecurity: Audit log: Failed to create subdirectories: /usr/local/apache/logs/modsec_audit/nobody/20160530/20160530-1505 (Permission denied) [hostname "www.xxxxxxxx.com"> [uri "xxxx.php"> [unique_id "xxxxxxxxxxxxxxxx">
I'm running apache 2.4.18 on CentOS and php 5.6.x
Is this a critical error?
Does this error have effect on server security?
I notice that, when I'm in /usr/local/apache/logs there are no folders named modsec_audit/nobody
Do I have to create them by my own? What permission should I give to those folders?
Thanks!!!
-
Hello, Please post the output from the following command: httpd -M | grep security
Also, have you recently updated to EasyApache 4, or are you using Mod_Ruid2 on this system? Thank you.0 -
Hi cPanelMichael and thanks for the reply. I ran the command and the result was security2_module (shared) I m also running easy apache 3 and I have enabled Mod_Ruid2 from easy apache 0 -
I m also running easy apache 3 and I have enabled Mod_Ruid2 from easy apache
Hello, You are likely encountering a compatibility issue with Mod_Security and Mod_Ruid2, or MPM-ITK if it's enabled. The other option that might lead to these types of messages is found under the "Security" tab in "WHM >> Tweak Settings": "EXPERIMENTAL: Jail Apache Virtual Hosts using mod_ruid2 and cPanel" jailshell." The compatibility issue is documented at: Apache Module: ModSecurity - EasyApache 4 - cPanel Documentation You can find additional discussion of this issue on the following thread: ModSecurity: Rule processing failed. Thank you.0 -
Thank you cPanelMichael Its fixed!!! 0 -
I'm happy to see the information provided to you helped. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
5 comments