Wordpress Plugin Installation - Failed to connect to FTP Server - Safest Solution?

后端 未结 7 2023
别那么骄傲
别那么骄傲 2021-02-02 12:23

I succesfully set up a VPS LEMP-stack with Wordpress. When I am trying to install plugins from the WP backend, I am prompted with the following message:

To perfo         


        
相关标签:
7条回答
  • 2021-02-02 12:53

    if your'e using shared hosting then remove some files in your server and try again. it will work. its because your disk quota may be exceeded.

    0 讨论(0)
  • 2021-02-02 12:54

    If anyone is running into this issue using MAMP Pro.

    Make sure you're running the server as the user that has permission for the root wordpress directory.

    Under SETTINGS > Ports look for "Run server as" and in the drop down choose the same system user that has permission to access the root wp folder.

    0 讨论(0)
  • 2021-02-02 12:56

    I don't know if it is the safest method or not. But pasting this code in wp-config.php once solved my problem:

    define('FS_METHOD', 'direct');
    
    0 讨论(0)
  • 2021-02-02 13:05

    @MrNerdy,

    I should have also elaborated on the fact that there should be some other folders you'll want to give permissions to. Read the documentation on it here to understand exactly what you should do regarding security: http://codex.wordpress.org/Changing_File_Permissions

    Also, be careful to only install trusted plugins. I've seen dozens of sites hacked because of badly coded plugins / themes, etc. Good luck.

    0 讨论(0)
  • 2021-02-02 13:06
    sudo chown -R www-data:www-data wp_site_root
    sudo chmod -R g+rw wp_site_root
    

    solved my problem.

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

    For me it was bitnami related settings issue. This post helped me. There could be multiple reason:

    • Permission issue on the files and folders.
    • The FS_METHOD should be "direct" in wp-config.php file.
    • Remove FTP configuration from wp-config.php if you are migrating from bitnami to manage it on your own.
    0 讨论(0)
提交回复
热议问题