{"id":330,"date":"2017-06-01T21:06:57","date_gmt":"2017-06-01T21:06:57","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=330"},"modified":"2017-06-01T21:06:57","modified_gmt":"2017-06-01T21:06:57","slug":"modsecurity-multipart-parsing-error-multipart-failed-to-create-file-roottmp20170526-122120-wsfjyo2khtvez5johzf8uqaaaew-file-9mmg15","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/modsecurity-multipart-parsing-error-multipart-failed-to-create-file-roottmp20170526-122120-wsfjyo2khtvez5johzf8uqaaaew-file-9mmg15.html","title":{"rendered":"ModSecurity: Multipart parsing error: Multipart: Failed to create file: \/root\/tmp\/20170526-122120-WSfJYO2KhTvEz5johZF8UQAAAEw-file-9mmG15"},"content":{"rendered":"<p>If you are using &#8216;inspectFile&#8217; of modsecurity, you may face an error in cpanel server like following<\/p>\n<blockquote><p>ModSecurity: Multipart parsing error: Multipart: Failed to create file: \/root\/tmp\/20170526-122120-WSfJYO2KhTvEz5johZF8UQAAAEw-file-9mmG15<\/p><\/blockquote>\n<p>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:<\/p>\n<blockquote><p>SecTmpDir \/tmp<\/p><\/blockquote>\n<p>This file is available under<\/p>\n<blockquote><p>\/etc\/apache2\/conf.d\/modsec<\/p><\/blockquote>\n<p>Alternatively, you may add the line from Cpanel &gt;&gt; Modsecurity Tools &gt;&gt; Add Rules.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using &#8216;inspectFile&#8217; 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 &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/modsecurity-multipart-parsing-error-multipart-failed-to-create-file-roottmp20170526-122120-wsfjyo2khtvez5johzf8uqaaaew-file-9mmg15.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ModSecurity: Multipart parsing error: Multipart: Failed to create file: \/root\/tmp\/20170526-122120-WSfJYO2KhTvEz5johZF8UQAAAEw-file-9mmG15&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,12,20,26],"tags":[],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/330"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/330\/revisions\/331"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}