You may encounter a popup for your FTP username and password when installing or updating a plugin in WordPress. Follow these steps to correct the problem:
- Connect to your website with FTP.
- Add these 3 lines anywhere within the
wp-config.phpfile:define(‘FS_METHOD’,
define('FS_METHOD', 'direct');
define('FS_CHMOD_DIR', (0705 & ~ umask()));
define('FS_CHMOD_FILE', (0604 & ~ umask()));
- Save your changes and upload the file.
- Once inserted, you may need to refresh the WordPress Dashboard or clear your browser cache and cookies.