If you are using ‘inspectFile’ of modsecurity, you may face an error in cpanel server like following
ModSecurity: Multipart parsing error: Multipart: Failed to create file: /root/tmp/20170526-122120-WSfJYO2KhTvEz5johZF8UQAAAEw-file-9mmG15
This error appears because mod_security fails to detect the tmp folder automatically. To fix the problem, all you need to add the following line in your modsec_user.conf file for cpanel servers:
SecTmpDir /tmp
This file is available under
/etc/apache2/conf.d/modsec
Alternatively, you may add the line from Cpanel >> Modsecurity Tools >> Add Rules.