The Solution to WordPress Asking for FTP Connection Information

The Problem…

Are you being asked by WordPress for FTP information every time you try to install a new plugin, update a plugin, or install a new WordPress theme? This may look familiar…

Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.”

Wordpress FTP Connection Information

Screenshot of the FTP info request in WordPress.

The reason for this problem is that every time WordPress makes changes like updates to your website it’s essentially FTPing in and modifying files on your server. WordPress is asking you for this information because for some reason or another (it could be too many things to guess at your situation) it isn’t saving your FTP details.

The Solution!

We need to tell WordPress this information and store it so it doesn’t bother you any more. Here’s how you’ll do this:

  1. You need to FTP into your own site then go to your main wordpress folder and drag the file “wp-config.php” to your computer so you can access it. If you’ve never used FTP before it’s really not all that hard and wordpress has done a good job explaining the process here.
  2. Next open wp-config.php using a text pad or a code editor.
  3. Then scroll down to somewhere in this file (it doesn’t really matter where, if you want to keep the file looking clean go to the bottom and create a space right above “/* That’s all, stop editing! Happy blogging. */”
  4. Insert the code:
    define('FTP_HOST', 'ftp.yourhostname');
    define('FTP_USER', 'yourusername');
    define('FTP_PASS', 'yourpassword');
  5. Change out the “your….” to the information you used earlier to log into ftp on your site
  6. Save the file and upload it back to your website and you’re done!

Hope this helped or if you have any questions or if it worked for you please let me know with the comment form below!