WordPress asking for my FTP credentials to install plugins

后端 未结 14 827
南旧
南旧 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:24

    The easiest way to solve this problem is add the following FTP information to your wp-config.php

    define('FS_METHOD', 'direct');
    define('FTP_BASE', '/usr/home/username/public_html/my-site.example.com/wordpress/');
    define('FTP_CONTENT_DIR', '/usr/home/username/public_html/my-site.example.com/wordpress/wp-content/');
    define('FTP_PLUGIN_DIR ', '/usr/home/username/public_html/my-site.example.com/wordpress/wp-content/plugins/');
    

    FTP_BASE is the full path to the "base"(ABSPATH) folder of the WordPress installation FTP_CONTENT_DIR is the full path to the wp-content folder of the WordPress installation. FTP_PLUGIN_DIR is the full path to the plugins folder of the WordPress installation.

提交回复
热议问题