WordPress.org

Ready to get started?Download WordPress

Forums

Upgrade tries to write to root (4 posts)

  1. acekin
    Member
    Posted 5 years ago #

    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

  2. acekin
    Member
    Posted 5 years ago #

    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.

  3. acekin
    Member
    Posted 5 years ago #

    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?

  4. WayneSmallman
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.