Wordpress plugin install: Could not create directory

前端 未结 16 1658
[愿得一人]
[愿得一人] 2021-02-01 01:38

I\'m using WordPress on centos 6.

I try to install a plugin. But I got this error:

Installing Plugin: bbPress 2.5.9 Downloading install package

16条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-01 02:13

    If you have installed wordpress using apt, the config files are split in multiple directories. In that case you need to run:

    sudo chown -R -h www-data:www-data /var/lib/wordpress/wp-content/
    sudo chown -R -h www-data:www-data /usr/share/wordpress/wp-content/
    

    The -h switch changes the permissions for symlinks as well, otherwise they are not removable by user www-data

提交回复
热议问题