Wordpress plugin install: Could not create directory

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

    For me the problem was FTP server that WP is using to upload update. It had writting disabled in configuration, so just enabling it fixed the problem.

    Shame on WordPress for providing such misleading error message.

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

    I was on XAMPP for linux localhost and this worked for me:

    sudo chown -R my-linux-username wp-content

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

    I had to give ownership of /plugins and /upgrade to the server, nothing else.

    $ cd /var/www/wordpress/wp-content
    $ sudo chown www-data:www-data /plugings
    $ sudo chown www-data:www-data /upgrade
    

    Running Apache server on Ubuntu 18.04. Maybe more dirs will need to be changed later. Anyways, I plan to restore permissions once I finish editing, as suggested in this anwser.

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

    The user that is running your web server does not have permissions to write to the directory that Wordpress is intending to create the plugin directory in. You should chown the directory in question to the user that is running Wordpress. It is most likely not root.

    In short, this is a permissions issue. Your touch command is working because you're using it as root, and root has global permissions to write wherever it wants.

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

    If anyone using shared hosting and get same problem it may be disk space issue. In that case contact with your hosting support and ask them to increase disk space of your acocunt.

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

    You only need to change the access permissions for your WordPress Directory:

    chown -R www-data:www-data your-wordpress-directory
    
    0 讨论(0)
提交回复
热议问题