How to Stop WordPress Asking for FTP Details

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’, ‘’);
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:-

How To Stop WordPress Asking for FTP Details

Let me know in the comments if you face any problem.


  1. 31/10/2013
    • 31/10/2013

Leave a Reply

How To Infographics Money Making OFFBEAT Online Marketing Resources Reviews SEO Social Media Tips & Tricks Web Hosting WordPress
Brand Awareness
7 Ways to Build Brand Awareness with Zero Budget
E-commerce Trends that Will Shape The Future
60 E-commerce Trends that Might Shape the Future of Online Shopping
4 Reasons Authors Should Use Facebook for Marketing 3
4 Reasons Authors Should Use Facebook for Marketing