WordPress updates without FTP login prompts

WordPress updates without FTP login prompts

One gripe I have about running WordPress on a VPS is that it keeps prompting me to enter the FTP password every time I do an update. As it turns out, you can save your FTP login credentials in wp-config.php so that you never get asked again!

Simply add the following lines to wo-config.php


// ** FTP SETTINGS FOR AUTO-UPDATE ** //
define('FTP_HOST', 'YOUR-HOSTNAME-HERE');
define('FTP_USER', 'YOUR-FTP-USERNAME');
define('FTP_PASS', 'YOUR-FTP-PASSWORD');

Remember to change the values above accordingly.