Could you confirm the exact error message you are experiencing?I am still seeing this issue with the latest version of cPanel and a rebuilt PHP 5.4.30 and ruid2. I thought this was resolved?
Thank you.
Could you confirm the exact error message you are experiencing?I am still seeing this issue with the latest version of cPanel and a rebuilt PHP 5.4.30 and ruid2. I thought this was resolved?
If I run in serial mode, every time a rule is triggered by a user's site, I receive the following errors whenev:[Mon Sep 01 07:17:39 2014] [error] [client xxx.xxx.xxx.xxx] ModSecurity: Audit log: Failed to create subdirectories: /usr/local/apache/logs/modsec_audit/xxxxxx/20140901/20140901-0717 (Read-only file system) [hostname "www.xxxxxxx.org"] [uri "/index.php"] [unique_id "VARV0tGMFtoAAGLxEkMAAAAC"]
Server Information[Mon Sep 01 07:46:21 2014] [error] [client xxx.xxx.xxx.xxx] ModSecurity: Audit log: Failed to lock global mutex: Permission denied [hostname "www.xxxxxxxxxxxxxxxxxxx.org"] [uri "/index.php"] [unique_id "VARcjNGMFtoAAGbZFoMAAAAF"]
CentOS release 6.5 (Final)
WHM 11.44.1 (build 17)
Apache/2.2.27 (Unix)
PHP/5.4.32 configured
mod_ruid2/0.9.8 enabled
ModSecurity for Apache/2.8.0
ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.1"
ModSecurity: PCRE compiled version="8.35 "; loaded version="8.35 2014-04-04"
ModSecurity: LUA compiled version="Lua 5.1"
ModSecurity: LIBXML compiled version="2.9.1.20140611"
Status engine is currently disabled, enable it by set SecStatusEngine to On.
LoadFile /opt/xml2/lib/libxml2.so
# LoadFile /opt/lua/lib/liblua.so
LoadModule security2_module modules/mod_security2.so
<IfModule mod_security2.c>
SecRuleEngine On
# See http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf
# "Add the rules that will do exactly the same as the directives"
# SecFilterCheckURLEncoding On
# SecFilterForceByteRange 0 255
SecAuditEngine RelevantOnly
<IfModule mod_ruid2.c>
SecAuditLogStorageDir /usr/local/apache/logs/modsec_audit
SecAuditLogType Concurrent
</IfModule>
<IfModule itk.c>
SecAuditLogStorageDir /usr/local/apache/logs/modsec_audit
SecAuditLogType Concurrent
</IfModule>
SecAuditLog logs/modsec_audit.log
SecDebugLog logs/modsec_debug_log
SecDebugLogLevel 0
SecDefaultAction "phase:2,deny,log,status:406"
SecRule MULTIPART_STRICT_ERROR "[email protected] 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"
SecRule REMOTE_ADDR "^127.0.0.1$" nolog,allow,id:1234123455
Include "/usr/local/apache/conf/modsec2.cpanel.conf"
Include "/usr/local/apache/conf/modsec2.user.conf"
</IfModule>
Here is a summary of internal case number 110129, which is open to address an issue with this option:Yes, I do. Should I turn this off, or is there a follow up setting I need to change?
Michael,TomboAhi,
Do you have "EXPERIMENTAL: Jail Apache Virtual Hosts using mod_ruid2 and cPanel® jailshell" enabled under the "Security" tab in "WHM >> Tweak Settings"?
<IfModule mod_ruid2.c>
RMode config
RUidGid [% vhost.user %] [% vhost.group %]
[% IF jailapache && vhost.jailed -%]
RDocumentChRoot /home/virtfs/[% vhost.user %] [% vhost.documentroot %]
[% END -%]
</IfModule>
[% IF jailapache && vhost.jailed -%]
<IfModule mod_security.c>
SecAuditEngine RelevantOnly
SecAuditLogRelevantStatus "^(?:5|4\d[^4])"
SecAuditLogType Concurrent
SecAuditLog /usr/local/apache/logs/modsec_audit.log
SecAuditLogStorageDir /home/virtfs/[% vhost.user %]/modsec_audit
SecAuditLogDirMode 0700
SecAuditLogFileMode 0600
</IfModule>
[% END -%]
SecAuditLogDirMode 1733
SecAuditLogFileMode 0550
SecAuditLogType Concurrent
SecAuditLogStorageDir /usr/local/apache/logs/modsec_audit
Any update on likely timescales for this please ?Here is a summary of internal case number 110129, which is open to address an issue with this option:
Internal case number 110129 is open to address an issue when enabling "EXPERIMENTAL: Jail Apache Virtual Hosts using mod_ruid2 and cPanel® jailshell." results in "/usr" mounted as readonly, causing mod_security logging to fail. Because the logging fails, modsecparse.pl can not parse the logs so it can not populate the database that the mod_security plugin uses.
The temporary workaround is to disable this option until a resolution for this case has been released.
There's currently no update to this specific case. However, I don't believe the issue should persist with EasyApache 4 due to the log location change:Any update on likely timescales for this please ?