Viewing 13 replies - 16 through 28 (of 28 total)
  • Its the 755 permission thing that worked for me.

    Just temp change it 777 while upgrading plugins or wordpress.

    And the safe mode issue will solve it too.

    Quick ammendment to the post for users on Media Temple’s DV servers. There is a risk to this technique as this kills safe_mode for the site..

    WP-CONFIG should contain the following:

    define('FS_CHMOD_FILE', 0755);
    define('FS_CHMOD_DIR', 0755);
    define('FS_METHOD', 'ftpext');
    define('FTP_BASE', '/httpdocs/');
    define('FTP_CONTENT_DIR', '/httpdocs/wp-content/');
    define('FTP_PLUGIN_DIR ', '/httpdocs/wp-content/plugins/');
    define('FTP_USER', 'USERNAME');
    define('FTP_PASS', 'PASSWORD');
    define('FTP_HOST', 'SERVER:PORT');

    HTACCESS should contain the following:
    php_value safe_mode "1"

    I did the same thing, but I used Total Commander to do it. Super simple and it worked like a charm.
    Thanks guys!

    I have a similar problem. Plugin install or update tries to write the temporary file it downloads to the root directory. I have no way of changing permissions in the root, ISP won’t allow it. I have about a dozon other WordPress installations none has this problem. Is there a way to designate a temporary directory and force everything to go there? I can assign, and have assigned, RWX permissions in wp-content.

    Thanks.

    @jallits

    In the code snippet you provide for servers running Apache or will it work for IIS? On IIS I don’t believe there is .htaccess file, is that required? Is there a down side to using this snippet in the wp-config file?

    I am still searching for a solution that works universally on different IIS servers and for WP and plugin updates.

    Un-checking the “php safe-mode on” box to turn safe-mode off worked for me.

    I found this helpful: https://wp.shantopagla.com/2009/wordpress-download-failed-could-not-create-temporary-file/

    Karl 19, Thanks. Kept looking for network file but it was the wp-content file that needed permissions changed.

    misterm2009

    (@misterm2009)

    I run a dedicated server with 1and1 and had the problem above. Sure enough, I had left PHP safe mode on in Plesk. I disabled safe mode and the problem went away.

    gurumeister

    (@gurumeister)

    On Linux/Unix installation suPHP is enabled by default.. The root cause of this and many other upgrade / permission issues is in running php mode as Apache .. try running PHP as another user and surely this saga will end.

    G.

    turning PHP Safe Mod ‘off’ worked for me!

    Just turn php safemode off and you can leave your chmod at 755

    I’m a novice in this, and I want to turn of php safe mode, but where do i do that?

    Exactly, how DO you turn php safe mode off?

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Download failed.: Could not create Temporary file’ is closed to new replies.