Attempting to use the "Automatic Update" feature to update to 3.5.1 on a shared server running Red Hat 5 and PHP 5.1.6-39.el5_8.
I entered my FTP user name and password when prompted by the "Automatic Update" feature and received this error:
Download failed. Destination directory for file streaming does not exist or is not writable.
I visited the Master List post at http://wordpress.org/support/topic/download-failed-destination-directory-for-file-streaming-does-not-exist-or-is-n?replies=20 and followed StephenWise's solution:
1. Add this line of code anywhere in the root file: wp-config.php
2. /* Setup a temporary folder for uploading and updating */
define( 'WP_TEMP_DIR', ABSPATH . 'wp-content/tmp/') ;
and create a new folder named “tmp” inside: /wp-content/
No joy, I received the same error.
I experimented with permissions on the wp-content and tmp directories.
Both directories were set at "755". I changed both to "775" but received the same error. I then changed both to "777" and SUCCESS - the upgrade process ran flawlessly.
At this point I am stumped. I'd like to use the "Automatic Update" feature in the future, WITHOUT having to leave the wp-content directory wide open, even for the small amount of time it takes to upgrade.
Anyone got an idea what else to look for?