When you try to install or update a plugin, you might encounter the error “Destination directory for file streaming does not exist or is not writable”
This error happens when the folder that WordPress is trying to write to, does not have the right folder permissions.
One solution could be to check the permissions from the wp-content/uploads/ folder, setting to 755 or higher should be enough.
Setting too high permissions for a folder can be a security problem, but too low can cause functionality issues preventing WordPress from running at all.
If this is not possible or you prefer to make a more secure solution, we can set up a custom directory outside the WordPress environment instead.
This requires you to do a few steps:
- Log in to your FTP account for the website.
- Navigate to somewhere outside the WordPress folder structure
- Create a new folder (make sure to set folder permissions to at least 755
Tell WordPress to use that folder instead – you do that by editing your wp-config.php file and add the following line at the bottom of the file.
define('WP_TEMP_DIR', ABSPATH . '/../wptemp/');
In this example we have put the folder “wptemp” outside the root of WordPress, we tell WP to look for the folder one layer down from where it is installed.