define('FS_METHOD','direct');

wordpress asking for ftp credentials

chmod 777 /yourwebsitename/public/wp-content/plugins/

wordpress asking for ftp credentials