Hosting Articles Technical Articles

How To Stop WordPress Asking FTP Details While Install/Upgrade Plugins



How To Stop WordPress Asking FTP Details While Install/Upgrade Plugins


In wordpress CMS while try to install new plugins or upgrading current plugins it is asking for the FTP login details.Everytime it is wordpress asking for the FTP login details.How to avoid the giving FTP login details.

How To Stop WordPress Asking FTP Details While Install

    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.

Solution :

To avoid the asking FTP login details there are two ways.

Define FTP Credentials

– Login to the wordpress and open the configuration file wp-config.php.

– Add the below lines to avoid the FTP login credentials.

//*add your FTP credentials*
define(‘FTP_HOST’, ‘Host Name or Ip’);
define(‘FTP_USER’, ‘username’);
define(‘FTP_PASS’, ‘password’);
//*If you like and can use a SSL connection set this to true*
define(‘FTP_SSL’, true);

Define Permissions

In case above method is not success follow the below steps to add the permissions for the FTP  credentials in the wp-config,

define( ‘FS_METHOD’, ‘direct’ );
define( ‘FS_CHMOD_DIR’, 0777 );
define( ‘FS_CHMOD_FILE’, 0777 );

Defined lines can easily write the directory to upgrade and installing new plugins in wordpress.

Tags:wordpress,CMS,Plugins,cache plugin,Wordpress update,security plugin,Latest wordpress plugin,Wordpress installation,Wordpress uninstall,Wordpress configuration

About the author


Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.