Get my FREE ebook:
"SEO FOR BLOGS: The Ultimate Guide"
Limited Time Offer!

How To Stop WordPress Asking For FTP Info To Update or Upgrade Plugins

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//FTP LOGIN INFO

//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');

//IF YOUR SERVER DOESNT ALLOW SSL CONNECTION

//SET THE FOLLOWING LINE TO "false"

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.

Commenting Contest
If you enjoyed this article, Get email updates
(It's Free)
Sté Kerwer
Post written by: Sté Kerwer
Bonjour from France. My name is Stéphane Kerwer and Dukeo.com is my blog. I do most of the heavy lifting in here but from time to time, you may see some guest posts. If you wish to receive updates about Dukeo, subscribe to RSS Feed, follow Dukeo on twitter or become a fan on Facebook.
2 Comments
  1. Liz
    Liz

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

arrow