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

当我安装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

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...