Wordpress plugin install: Could not create directory

前端 未结 16 1372
[愿得一人]
[愿得一人] 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:11

    You can fix this by using the following commands. You should first be in the root folder of Wordpress.

    sudo chown -R www-data:www-data wp-content/plugins/
    sudo chmod 775 wp-content
    
    sudo chown -R www-data:www-data wp-content/
    
    0 讨论(0)
  • 2021-02-01 02:11

    What I end up doing is every time I create a WordPress project. in /www/html

    I run below command

    sudo chown www-data:www-data  wordpress_folder_name -R
    

    hope this will help someone.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-01 02:13

    You need to change the permission of the directory

    1. At first change the user HTML folder (replace yourcomputerusername)

      sudo chown yourcomputerusername:yourcomputerusername /var/www/html

    2. Next change the permission for the user

      cd /var/www/html

      sudo chmod -R goa=rwx wordpress

      or

      sudo chmod -R 777 wordpress/wp-content

    0 讨论(0)
提交回复
热议问题