TutorialWordPress

Solve WordPress aksing FTP credentials during plugin or theme installation

While installing a plugin or theme in WordPress on localhost, an FTP credentials error occurred? This is the file transfer protocol error, let’s solve it.

WordPress FTP credentials
WordPress FTP credentials

WordPress may ask for the FTP server name, user name, and password while we try to install a plugin or theme. We can’t remember these details every time we install a plugin or theme. This usually occurs when we install multiple WordPress on a single VM. Here is how we can solve this issue.

Solve WordPress FTP credentials issue

The solution to this problem is very simple, you can solve this problem by adding a code line into wp-config.php.

define('FS_METHOD','direct');

Copy the above line and paste it into the wp-config.php.

wp-config.php ftp credentials error
wp-config.php ftp credentials error

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

That’s it, Save this file and your problem will be solved.

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 us via email to get more tips like this. In case of any doubt, feel free to ask in the comment section provided below.

Ashok Kumar

Ashok Kumar working in the Search Engine Optimization field since 2015. And worked on many successful projects since then. He shares the real-life experience of best SEO practices with his followers on seoneurons.com. You also can learn Advance level SEO for WordPress, Blogger, or any other blogging platform. Stay tuned.

Related Articles

Leave a Reply

Back to top button