Configure WordPress to store FTP details

August 12th, 2009

Hate having to type your server FTP details when upgrading WordPress? Would you like WordPress to remember your FTP login details? then read on…

Anybody familiar with WordPress will know that when adding/removing or upgrading any of your plug-ins, even upgrading the WordPress itself, you are prompted for the FTP connection details for your server, while not a big or frustrating step, it can be a pain if you don’t have the details to hand or want others to be able to upgrade your blog to ensure its secure but not give them the login details for the server.

The answer is surprisingly a simple one, you don’t need to install one of the various FTP Saver plug-ins and spend hours trawling through the code, and any updates, to check your details will be secure, all you have to do is add a few extra lines to your wp-config.php file by defining the connection details, WordPress will do the rest.

The constants should be defines as follows,

/** Store Server FTP Details */
define("FTP_HOST", "domain.tld");
define("FTP_USER", "username");
define("FTP_PASS", "password");

Once you have saved the config file, all you need to do is test it…

Return to the Homepage Read Gavin Taylors Blog View Gavin Taylors Portfolio About Gavin Taylor Contact Gavin Taylor