Solve WordPress asking for FTP credentials during plugin or theme installation. Print

  • While installing a plugin or theme in WordPress on localhost, an FTP credentials error occurred?
  • 1

While installing a plugin or theme in WordPress on localhost, an FTP credentials error occurred? This is the file transfer protocol error, asking FTP login details to install a plugin or theme. Let’ solve this issue with a simple line.

Solve WordPress FTP credentials issue

The solution to this problem is straightforward. You can solve this problem by adding a code line into wp-config.php.

define('FS_METHOD','direct');

You’ve to copy the above line and paste it into the wp-config.php file of WordPress CMS.

You can edit it using file explorer in the cPanel of your hosting or SSH terminal in cloud hosting.

That’s it, Save this file, and this will solve the WordPress credentials error issue.

Now visit your website, refresh the installation page. You can install all themes or plugins with a single click.

If you liked the above article, Subscribe to Us via email to get more tips like this. In case of any doubt, feel free to ask in the comment section provided below.


Was this answer helpful?

« Back