zoukankan      html  css  js  c++  java
  • WordPress Permissions Update Error [RESOLVED]

    Recently I ran into an issue where an installation of WordPress that had never had any issues updating stopped being able to update via the admin update button.

    Specifically these were the errors I would see:

    Unpacking the update...
    
    The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php
    
    Installation Failed
    
    An automated WordPress update has failed to complete

    The solution as it turns out is to reset the file permissions on the core files.

    Provided you have SSH access to your server, the following commands may fix your issue.

    Reset the permissions of all files to 664:

    find /path/to/site/ -type f -exec chmod 664 {} ;

    Reset permissions of directories to 775:

    find /path/to/site/ -type d -exec chmod 775 {} ;

    Reset the group to the wordpress group (or whatever group makes sense for you)

    chgrp -R wordpress /path/to/site/

    After running those commands I was able to successfully update WordPress with no further issues.

  • 相关阅读:
    CF891E Lust
    Comet OJ 2019 夏季欢乐赛题解
    CF1098E Fedya the Potter
    CF1063F String Journey
    P4218 [CTSC2010]珠宝商
    AGC028 E
    51Nod 1584 加权约数和
    51Nod 1769 Clarke and math2
    Educational Codeforces Round 67
    斯特林数学习笔记
  • 原文地址:https://www.cnblogs.com/shangdawei/p/4558204.html
Copyright © 2011-2022 走看看