WordPress Updates and FTP
Are you hosting with a WordPress hosting provider where you are asked for your FTP credentials when you go to update WordPress itself? WordPress Plugins? WordPress Themes?
Wouldn’t it be nice if you didn’t have to enter the FTP information (and not save the FTP information in your browser)?
Yes, there’s a way to have WordPress store that information for you so that you are never asked; and updates are now just one click rather than several clicks.
In order to take advantage of this tip, you will need to gather three pieces of information:
- Your FTP server host name — this is typically your domain name; check with your hosting provider if you are not sure.
- Your FTP user id.
- Your FTP password
Now edit your wp-config.php file (this file will be in the same folder as your WordPress home directory; if you are not sure of the exact location, ask your hosting provider), and add the following lines modifying the areas for your FTP server host name, your FTP user id, and your FTP password.
// ** FTP SETTINGS FOR AUTO-UPDATE ** //
define(‘FTP_HOST’, ‘FTP server host name’);
define(‘FTP_USER’, ‘FTP user id’);
define(‘FTP_PASS’, ‘FTP password’);
Double check the four additional lines (don’t copy and past the above “as is” without first substituting your own information), and save then file.
See Editing wp-config.php on the WordPress Codex.
- Make sure your .htaccess file secures wp-config.php
- See our article on how to create secure passwords which are hard to crack.
If you are one of our managed hosting customers, we can set this up for you. Just contact us.