To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. How to Solve it..?

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed.  How to Solve it..?
These kind of error occur when you try to install plugins on WordPress running on local server and FTP is not active (or available). So, in order to override these FTP credentials asking, just add the following line on wp-config.php file, which can be found in the root directory of WordPress.

Just add the line :

<strong>define('FS_METHOD', 'direct');</strong>

In the wp-config.php file.

I hope you understand this article ‘To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed.  How to Solve it..?’. If you have doubts, comments drop them below.