Search code examples
wordpresspluginsftpwordpress-themingadmin

WordPress asking for my FTP credentials to install plugins


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 upload without FTP?


Solution

  • Try to add the code in wp-config.php:

    define('FS_METHOD', 'direct');