WordPress asking for my FTP credentials to install plugins

sasi kanth picture sasi kanth · Jul 29, 2013 · Viewed 99.2k times · Source

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?

Answer

nickle picture nickle · Sep 5, 2013

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

define('FS_METHOD', 'direct');