When adding a plugin I am prompted for FTP credentials code example
Example 1: wordpress asking for ftp credentials
define('FS_METHOD','direct');
Example 2: wordpress asking for ftp credentials
chmod 777 /yourwebsitename/public/wp-content/plugins/