【发布时间】:2019-04-24 05:19:58
【问题描述】:
有没有办法让 WordPress 在仍然使用强化权限的同时自动更新?
似乎推荐的 WordPress 安全设置是使用hardened permissions,这主要是使用this answer 中给出的权限来实现的。但是这些权限导致WordPress无法自动更新,或者通过管理员网页界面使用更新,导致报错:
Downloading update from https://downloads.wordpress.org/release/wordpress-x.x.x-partial-x.zip…
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
通过允许网络服务器更新update-core.php,我们违反了强化权限(据我所知)。不幸的是,如果没有自动更新,我们还会遇到无法获得自动安全更新的问题,从而导致另一个安全问题。有没有办法允许自动更新而不需要弱权限?在允许自动更新的同时可以使用的最强权限是什么,是否足够强大?
【问题讨论】:
标签: wordpress permissions