{"id":184,"date":"2014-05-12T17:28:25","date_gmt":"2014-05-12T16:28:25","guid":{"rendered":"http:\/\/www.dessol.com\/blog\/?p=184"},"modified":"2014-05-13T08:55:53","modified_gmt":"2014-05-13T07:55:53","slug":"fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable","status":"publish","type":"post","link":"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/","title":{"rendered":"Fix WordPress &#8216;Destination directory for file streaming does not exist or is not writable&#8217;"},"content":{"rendered":"<p class=\"lead\">Occasionally you will try and install a new plugin on a fresh install of WordPress, and come a cropper with an error that returns &#8216;<strong>Download failed.\u00a0Destination directory for file streaming does not exist or is not writable.<\/strong>&#8216;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"66\" class=\"alignnone size-full wp-image-185 img-responsive\" src=\"http:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/05\/Download-failed.png\" alt=\"Download-failed\" srcset=\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/05\/Download-failed.png 560w, https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/05\/Download-failed-300x35.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><br \/>\n&nbsp;<br \/>\nThis is usually caused by incorrect permissions in the wp-content folder, as WordPress needs to create a temporary folder to put the files when downloaded, before install.<\/p>\n<p>Rather than using 777 permissions to allow WordPress to create the correct folder, and then having to reverse the permissions and potentially creating a security hole, we will put a temporary folder\u00a0<strong>outside<\/strong> of the install directory. In other words, find the root folder and go up a directory. As we are now outside of the public directory, we can now create a folder called &#8216;temp&#8217; with 777 permissions and not create a security hole.<\/p>\n<p>Once you have done this, open up the wp-config.php file in the root directory and\u00a0add the following at the bottom.<\/p>\n<pre><code>define('WP_TEMP_DIR', ABSPATH . '\/..\/temp\/');<\/code><\/pre>\n<p>Now you&#8217;ll see that you won&#8217;t have any updating or plugin install issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally you will try and install a new plugin on a fresh install of WordPress, and come a cropper with an error that returns &#8216;Download failed.\u00a0Destination directory for file streaming does not exist or is not writable.&#8216; &nbsp; This is usually caused by incorrect permissions in the wp-content folder, as WordPress needs to create a&#8230;<\/p>\n<p><a href=\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/\" class=\"more-link\" title=\"Read Fix WordPress &#8216;Destination directory for file streaming does not exist or is not writable&#8217;\"><span class=\"label label-primary\">Read more &raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":56,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,15,16],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-snippets","category-php-code-snippets","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fix Wordpress &#039;Destination directory for file streaming does not exist or is not writable&#039; - Web Design &amp; Development Lowestoft Blog| Dessol<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix Wordpress &#039;Destination directory for file streaming does not exist or is not writable&#039; - Web Design &amp; Development Lowestoft Blog| Dessol\" \/>\n<meta property=\"og:description\" content=\"Occasionally you will try and install a new plugin on a fresh install of WordPress, and come a cropper with an error that returns &#8216;Download failed.\u00a0Destination directory for file streaming does not exist or is not writable.&#8216; &nbsp; This is usually caused by incorrect permissions in the wp-content folder, as WordPress needs to create a...Read more &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Design &amp; Development Lowestoft Blog| Dessol\" \/>\n<meta property=\"article:published_time\" content=\"2014-05-12T16:28:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-05-13T07:55:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"780\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"dessol\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dessol\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/\",\"url\":\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/\",\"name\":\"Fix Wordpress 'Destination directory for file streaming does not exist or is not writable' - Web Design &amp; Development Lowestoft Blog| Dessol\",\"isPartOf\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"datePublished\":\"2014-05-12T16:28:25+00:00\",\"dateModified\":\"2014-05-13T07:55:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/#primaryimage\",\"url\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"contentUrl\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"width\":780,\"height\":300,\"caption\":\"PHP Code Snippet\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#website\",\"url\":\"https:\/\/www.dessol.com\/blog\/\",\"name\":\"Web Design &amp; Development Lowestoft Blog| Dessol\",\"description\":\"Work, news and murmerings\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dessol.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362\",\"name\":\"dessol\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g\",\"caption\":\"dessol\"},\"url\":\"https:\/\/www.dessol.com\/blog\/author\/dessol\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix Wordpress 'Destination directory for file streaming does not exist or is not writable' - Web Design &amp; Development Lowestoft Blog| Dessol","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/","og_locale":"en_GB","og_type":"article","og_title":"Fix Wordpress 'Destination directory for file streaming does not exist or is not writable' - Web Design &amp; Development Lowestoft Blog| Dessol","og_description":"Occasionally you will try and install a new plugin on a fresh install of WordPress, and come a cropper with an error that returns &#8216;Download failed.\u00a0Destination directory for file streaming does not exist or is not writable.&#8216; &nbsp; This is usually caused by incorrect permissions in the wp-content folder, as WordPress needs to create a...Read more &raquo;","og_url":"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/","og_site_name":"Web Design &amp; Development Lowestoft Blog| Dessol","article_published_time":"2014-05-12T16:28:25+00:00","article_modified_time":"2014-05-13T07:55:53+00:00","og_image":[{"width":780,"height":300,"url":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","type":"image\/jpeg"}],"author":"dessol","twitter_misc":{"Written by":"dessol","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/","url":"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/","name":"Fix Wordpress 'Destination directory for file streaming does not exist or is not writable' - Web Design &amp; Development Lowestoft Blog| Dessol","isPartOf":{"@id":"https:\/\/www.dessol.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/#primaryimage"},"image":{"@id":"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","datePublished":"2014-05-12T16:28:25+00:00","dateModified":"2014-05-13T07:55:53+00:00","author":{"@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.dessol.com\/blog\/fix-wordpress-destination-directory-for-file-streaming-does-not-exist-or-is-not-writable\/#primaryimage","url":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","contentUrl":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","width":780,"height":300,"caption":"PHP Code Snippet"},{"@type":"WebSite","@id":"https:\/\/www.dessol.com\/blog\/#website","url":"https:\/\/www.dessol.com\/blog\/","name":"Web Design &amp; Development Lowestoft Blog| Dessol","description":"Work, news and murmerings","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dessol.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362","name":"dessol","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g","caption":"dessol"},"url":"https:\/\/www.dessol.com\/blog\/author\/dessol\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":8,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":193,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/184\/revisions\/193"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/media\/56"}],"wp:attachment":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}