Stop annoying ftp username password prompt in WordPress

When upgrading plugins, even WordPress itself, you can get the ftp prompt, asking you for server username and password details.  Here’s what I use to stop this:

Navigate to your wp-config.php file on the server.  Download it to your computer and modify it by adding the following lines:

//*From https://www.pcrepairmansblog.com*
//*Stop the username and password prompt when upgrading plugins*
define(‘FTP_HOST’, ‘ftp.yoursite.com’);
define(‘FTP_USER’, ‘Your_FTP_Username’);
define(‘FTP_PASS’, ‘Your_FTP_password’);
//*If you use an SSL connection set this to true, otherwise set it to false*
define(‘FTP_SSL’, false);

Upload it back to the server. That’s it, you’re set to go!

Leave a Reply

Your email address will not be published. Required fields are marked *