Dukeo » WordPress » WordPress Asking For FTP Info: How To Stop This

WordPress Asking For FTP Info: How To Stop This

Steven 2 responses WordPress

Don’t you find it annoying that WordPress keeps asking you for your FTP login details every time you try to Update WordPress or try to Upgrade WordPress Plugins? Here is a recipe to fix this, so you won’t ever have to input your FTP login details into WordPress.

For some reason, it didn’t happen until lately on many of my blogs. It appears to be caused by an update in the security protocols of WordPress. It is now checking more cautiously the file permissions and ownership to prevent hacking and abuse.

More likely, if your WordPress install is on a shared hosting, you won’t have this problem, but if you installed WordPress on a VPS or a Dedicated Server, you are going to encounter this annoyance every time you’ll try to upgrade files.

The fix for this problem is really easy. You just have to open your wp-config.php file (located in your WordPress installation folder) and add you FTP login and password in there. This way, WordPress won’t ever ask you for your FTP details.

Here is the code you need to add in your wp-config.php file:

//REPLACE "ftp.YourDomain.com"
//REPLACE "FTP-Username"
//REPLACE "FTP-Password"
define('FTP_HOST', 'ftp.YourDomain.com');
define('FTP_USER', 'FTP-Username');
define('FTP_PASS', 'FTP-Password');

define('FTP_SSL', true);

That’s all you need to do! Let’s hope you won’t get mad at WordPress anymore when trying to upgrade plugins.

If you enjoyed this article,
Get email updates

Join for Free »


  1. Liz

    I had this exact problem and didn’t know how to fix it, thanks a lot!

    1. I’m glad it helped ;)