This is a quick tips for the WordPress users. I have faced this problem several times while I was using my previous host. Whenever you are trying to install/delete/upgrade a plugin or a theme from inside the WordPress admin panel it asks for FTP username and password. This doesn’t occur in all hosting environment but if you are using any free host or your server configuration is not well configured then this might happen.
This is how you can overcome the problem. Download your wp-config.php and add the following codes before the MySQL settings. And then upload it again into the same directory to re-write the old wp-config.php. Don’t forget to change the details with your FTP host, username and password.
/*Adding FTP login credentials to avoid WordPress asking for FTP details every time when upgrading a plugin*/
define(‘FTP_HOST’, ‘ftp.yoursite.com’);
define(‘FTP_USER’, ‘Your_FTP_Username’);
define(‘FTP_PASS’, ‘Your_FTP_password’);
//*If you can use a SSL connection set this to true*
define(‘FTP_SSL’, false);
After that you shouldn’t face the problem again. For help see the following image:-
Let me know in the comments if you face any problem.
Assalamu AAlikym Rony Vai. Ur Website Is Nice To read.
Plzzz Give me Ur E-Mail Address For Communicate with u.
My Mailing Address is tawba8@gmail.com
send me mail at info@https://blogron.com. If it is something related about the post then you can always comment in here.