How to fix ModSecurity: Multipart parsing error: Multipart: Failed to create file error

This error is logged in apache errorlog file. Here’s the main part of the error: Than means, Modsecurity is trying to access /root/tmp to process the temporary data which is not allowed for non root users. This error can be fixed by adding the below entries in modsecurity configuration file which is modsec2.user.conf. Once these variables are added, you can simply restart apache service. That’s it. Need Help? Checkout our plans.