加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 打开更新包…无法创建目录. WordPress的

发布时间:2020-12-13 14:07:23 所属栏目:PHP教程 来源:网络整理
导读:当我安装nextgen-gallery插件.出现此错误消息 Downloading update from https://downloads.wordpress.org/plugin/nextgen-gallery.zip…Unpacking the update…Could not create directory. 如何解决这个问题? 这是一个权限问题.确保目录是可写的apache.插
当我安装nextgen-gallery插件.出现此错误消息
Downloading update from https://downloads.wordpress.org/plugin/nextgen-gallery.zip…

Unpacking the update…

Could not create directory.

如何解决这个问题?

这是一个权限问题.确保目录是可写的apache.插件插入到wp-content / plugins目录中,所以我首先尝试以apache的形式写入目录:
sudo -u apache touch /path/to/wp-content/plugins/test.txt

相应地设置权限以更正问题.您可以在这里阅读有关权限:http://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions

您可以在这里阅读关于Wordpress正确的文件权限方案:http://codex.wordpress.org/Changing_File_Permissions#Permission_Scheme_for_WordPress

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读