How to Stop WordPress from Asking FTP Details

Sometimes this happens when you want to install a plugin, or a new theme or simply upgrading your wordpress.

On a shared hosting environment, you don’t (or maybe seldom) encounter this but if you’re on VPS or Dedicated Server, chances are, you will always see this.


– Open your wp-config.php and add the following :

//*added ftp login credentials to avoid WordPress asking for FTP details every time I wanted to upgrade a plugin*
 define('FTP_HOST', '');
 define('FTP_USER', 'Your_FTP_Username');
 define('FTP_PASS', 'Your_FTP_password');
 //*If you can use a SSL connection set this to true*
 define('FTP_SSL', true);


Paste the following to your wp-config.php

define('FS_METHOD', 'direct');

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s