我已经按照
每次尝试更新或安装新插件时,都会出现以下错误:
Downloading update from https://downloads.wordpress.org/plugin/akismet.3.0.1.zip…
Unpacking the update…
An error occurred while updating Akismet: Could not create directory.
All updates have been completed.
我已经准备好了
/var/www/html
具有
sudo ln -s /usr/share/wordpress /var/www/html
sudo chown wp-user:www-data -RL /var/www
sudo chmod g+w -R /var/www
我试过了
添加define(\'WP_CONTENT_DIR\', \'/var/www/html/wp-content\');
到/etc/wordpress/config-my.host.php
sudo chmod o+w -R /var/www/html/wp-content
sudo -u wp-user touch /var/www/html/wp-content/test
成功sudo -u www-data touch /var/www/html/wp-content/test
成功系统信息:
$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
NAME="Ubuntu"
VERSION="14.04, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
$ apt-show-versions wordpress apache2 php5 mysql-server
apache2:amd64/trusty 2.4.7-1ubuntu4 uptodate
mysql-server:all/trusty-security 5.5.37-0ubuntu0.14.04.1 uptodate
php5:all/trusty-security 5.5.9+dfsg-1ubuntu4.3 uptodate
wordpress:all/trusty 3.8.2+dfsg-1 uptodate