WordPress.org

Support

Support » How-To and Troubleshooting » Upgrade tries to write to root

Upgrade tries to write to root

  • One one of the new installations that I have completed for a client, both the WP auto upgrade and plugin upgrades try to write to the root directory where I cannot assign additional folder permissions, ISP won’t allow it. Is there a way to designate a temp directory where additional permissions may be granted to facilitate this process?

    I have given in the wp-content folder full set of permissions to the IIS user, still no dice.

    Cemal

Viewing 3 replies - 1 through 3 (of 3 total)
  • After some search I found two fixes which involve adding a line to the wp-config.php file. I added both and the plugins update fine now. I need to try it on one of my installations to see if WordPress itself will auto update. Here are the lines to be added to the config file:

    define(‘WP_TEMP_DIR’, ini_get(‘upload_tmp_dir’));
    putenv(‘TMPDIR=’ . ini_get(‘upload_tmp_dir’));

    It should not be this difficult to figure out WordPress. Please add a variable that we can fill in the settings. Then we know which directory needs the additional permission.

    This did not work for WordPress upgrading itself, FYI. What I don’t understand is that two or more identical installations on the same ISP servers behaving differently. One had no difficulty updating or intalling the plugins and the other had nothing to do with that. I actually copied all the files from one site to the other with the exception of the config parameters. I assigned the same folder permissions. Does this point to some server configuration differences at the ISP level?

    This didn’t work for me. I have pages full of lots of different PHP errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upgrade tries to write to root’ is closed to new replies.
Skip to toolbar