WordPress asking for my FTP credentials to install plugins

后端 未结 14 775
南旧
南旧 2020-11-30 17:52

I installed a WordPress blog in my local system. But when I try to add plugins from admin it asks for FTP access. What do I need to configure for WordPress to be able to up

相关标签:
14条回答
  • 2020-11-30 18:25

    If you are using Ubuntu.

    sudo chown -R www-data:www-data PATH_TO_YOUR_WORDPRESS_FOLDER
    
    0 讨论(0)
  • 2020-11-30 18:27

    As mentioned by Niels, this happens because the server process user can't write to the Wordpress folder.

    But here's the thing a lot of articles don't explain. It's the owner of the php process, not the nginx process. If you try to change the nginx owner, it won't solve this.

    To solve it, try running ps aux to see which user owns the php-fpm process. Then check that user is the same user as the owner of the wordpress folder, or can at least write to it. If the user can't write to it, you'll need to change permissions and/or ownership of the folder; or put the two users (server owner and wordpress folder owner) in a common group which can write to the folder; or change php.ini "user" property to a user that can write to the folder.

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