{"id":1052,"date":"2010-08-25T12:44:12","date_gmt":"2010-08-25T16:44:12","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1052"},"modified":"2013-03-20T08:43:16","modified_gmt":"2013-03-20T12:43:16","slug":"cant-createwrite-to-file-tmp-errcode-13","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/cant-createwrite-to-file-tmp-errcode-13","title":{"rendered":"Can&#8217;t create\/write to file \/tmp\/ (Errcode: 13)"},"content":{"rendered":"<p>The error message <strong>&#8220;Can&#8217;t create\/write to file \/tmp\/&#8221;<\/strong> appears when any application tries to write it&#8217;s temporary files to the \/tmp directory and the \/tmp directory don&#8217;t have a world writable permissions. To fix the issue, make sure the \/tmp directory have 777 permissions.<\/p>\n<p><strong>1)<\/strong> SSH to your server as root.<\/p>\n<p><strong>2)<\/strong> Set the permissions of \/tmp directory<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># chmod 1777 \/tmp<\/span><\/pre>\n<\/blockquote>\n<p><strong>3)<\/strong> To verify the permissions, execute<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># ls -ld \/tmp\r\n drwxrwxrwt\u00a0 6 root root 4096 Aug 25 11:23 \/tmp\/<\/span><\/pre>\n<\/blockquote>\n<p>Once done, the website\/application should work fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The error message &#8220;Can&#8217;t create\/write to file \/tmp\/&#8221; appears when any application tries to write it&#8217;s temporary files to the \/tmp directory and the \/tmp directory don&#8217;t have a world writable permissions. To fix the issue, make sure the \/tmp directory have 777 permissions.<br \/>\n1) SSH to your server as root.<br \/>\n2) Set the permissions of \/tmp directory<\/p>\n<p># chmod 1777 \/tmp<\/p>\n<p>3) To verify the permissions, execute<\/p>\n<p># ls -ld \/tmp<br \/>\n drwxrwxrwt\u00a0 6 root root 4096 Aug 25 11:23 \/tmp\/<\/p>\n<p>Once done, the website\/application should work fine.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1043,1046,1044,1042,1045,1047],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1052"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1052"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1052\/revisions"}],"predecessor-version":[{"id":1054,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1052\/revisions\/1054"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}