admin管理员组文章数量:1130349
I have followed the instructions from
Every time I try to update or install a new plugin, I get the following error:
Downloading update from .3.0.1.zip…
Unpacking the update…
An error occurred while updating Akismet: Could not create directory.
All updates have been completed.
I have set up /var/www/html with
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
I have tried
- Adding
define('WP_CONTENT_DIR', '/var/www/html/wp-content');to/etc/wordpress/config-my.host.php sudo chmod o+w -R /var/www/html/wp-contentsudo -u wp-user touch /var/www/html/wp-content/testsucceedssudo -u www-data touch /var/www/html/wp-content/testsucceeds
System info:
$ 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="/"
SUPPORT_URL="/"
BUG_REPORT_URL="/"
$ 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
I have followed the instructions from
- https://help.ubuntu/community/WordPress
- https://www.digitalocean/community/tutorials/how-to-configure-secure-updates-and-installations-in-wordpress-on-ubuntu
Every time I try to update or install a new plugin, I get the following error:
Downloading update from https://downloads.wordpress/plugin/akismet.3.0.1.zip…
Unpacking the update…
An error occurred while updating Akismet: Could not create directory.
All updates have been completed.
I have set up /var/www/html with
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
I have tried
- Adding
define('WP_CONTENT_DIR', '/var/www/html/wp-content');to/etc/wordpress/config-my.host.php sudo chmod o+w -R /var/www/html/wp-contentsudo -u wp-user touch /var/www/html/wp-content/testsucceedssudo -u www-data touch /var/www/html/wp-content/testsucceeds
System info:
$ 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/"
SUPPORT_URL="http://help.ubuntu/"
BUG_REPORT_URL="http://bugs.launchpad/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
Share
Improve this question
edited Jul 17, 2014 at 4:33
Jeffrey
asked Jul 17, 2014 at 3:33
JeffreyJeffrey
1741 gold badge2 silver badges10 bronze badges
2
|
2 Answers
Reset to default 1You are using Ubuntu package for WordPress right? Had you tried conventional install (just downloading official WP archive and setting it up with LAMP)?
While it's not very "Linux way" maybe, it's commonly suggested to stick with that for WordPress. I briefly dealt with Ubuntu WP package in the past and ended up doing just that as well.
PS if that 3.8.2 stands for WP version it's not current either.
To create WordPress directory in Ubuntu server, you need to be in var/www/ and its sudo mkdir -p mysite/public_html && sudo chown -R user_name:www-data /var/www
When you ls afterwards, you should see something like this:
total 12
drwxrwxr-x 2 microurb www-data 4096 Dec 15 06:36 html
drwxrwxr-x 3 microurb www-data 4096 Sep 23 2017 microurb
I have followed the instructions from
Every time I try to update or install a new plugin, I get the following error:
Downloading update from .3.0.1.zip…
Unpacking the update…
An error occurred while updating Akismet: Could not create directory.
All updates have been completed.
I have set up /var/www/html with
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
I have tried
- Adding
define('WP_CONTENT_DIR', '/var/www/html/wp-content');to/etc/wordpress/config-my.host.php sudo chmod o+w -R /var/www/html/wp-contentsudo -u wp-user touch /var/www/html/wp-content/testsucceedssudo -u www-data touch /var/www/html/wp-content/testsucceeds
System info:
$ 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="/"
SUPPORT_URL="/"
BUG_REPORT_URL="/"
$ 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
I have followed the instructions from
- https://help.ubuntu/community/WordPress
- https://www.digitalocean/community/tutorials/how-to-configure-secure-updates-and-installations-in-wordpress-on-ubuntu
Every time I try to update or install a new plugin, I get the following error:
Downloading update from https://downloads.wordpress/plugin/akismet.3.0.1.zip…
Unpacking the update…
An error occurred while updating Akismet: Could not create directory.
All updates have been completed.
I have set up /var/www/html with
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
I have tried
- Adding
define('WP_CONTENT_DIR', '/var/www/html/wp-content');to/etc/wordpress/config-my.host.php sudo chmod o+w -R /var/www/html/wp-contentsudo -u wp-user touch /var/www/html/wp-content/testsucceedssudo -u www-data touch /var/www/html/wp-content/testsucceeds
System info:
$ 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/"
SUPPORT_URL="http://help.ubuntu/"
BUG_REPORT_URL="http://bugs.launchpad/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
Share
Improve this question
edited Jul 17, 2014 at 4:33
Jeffrey
asked Jul 17, 2014 at 3:33
JeffreyJeffrey
1741 gold badge2 silver badges10 bronze badges
2
- You are using Ubuntu package for WordPress right? Had you tried conventional install (just downloading official WP archive and setting it up with LAMP)? PS if that 3.8.2 stands for WP version it's not current either. – Rarst Commented Jul 18, 2014 at 21:39
-
@Rarst Weird! Downloading wordpress/latest.tar.gz and putting it at
/var/www/htmlfixed the issue. Make your comment an answer and I'll accept it. – Jeffrey Commented Jul 18, 2014 at 22:00
2 Answers
Reset to default 1You are using Ubuntu package for WordPress right? Had you tried conventional install (just downloading official WP archive and setting it up with LAMP)?
While it's not very "Linux way" maybe, it's commonly suggested to stick with that for WordPress. I briefly dealt with Ubuntu WP package in the past and ended up doing just that as well.
PS if that 3.8.2 stands for WP version it's not current either.
To create WordPress directory in Ubuntu server, you need to be in var/www/ and its sudo mkdir -p mysite/public_html && sudo chown -R user_name:www-data /var/www
When you ls afterwards, you should see something like this:
total 12
drwxrwxr-x 2 microurb www-data 4096 Dec 15 06:36 html
drwxrwxr-x 3 microurb www-data 4096 Sep 23 2017 microurb
本文标签: pluginsCould not create directory
版权声明:本文标题:plugins - Could not create directory 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749070652a2311522.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


/var/www/htmlfixed the issue. Make your comment an answer and I'll accept it. – Jeffrey Commented Jul 18, 2014 at 22:00