This may happen in small cases. WordPress asking your FTP password when you want to install a plugin from your WordPress admin. I still don’t know what causes it, but in most cases it is because of server configuration, which may differ in every shared hosting.
So just in case you have this issue, you can add your FTP account in your wp-config.php.
Here’s how to do it:
1. Download your wp-config.php, open it in your favorite text editor.
2. Insert these lines somewhere in your wp-config.php, but I prefer to put it under the database code:
====================================
/*** FTP login settings ***/
define("FTP_HOST", "localhost");
define("FTP_USER", "ftp-user");
define("FTP_PASS", "ftp-password");
====================================
Note: don’t forget to change “ftp-user” and “ftp-password” to your FTP account credentials.
3. Save and upload your wp-config.php file again.
4. Test it, and it should be fine now.
