How Avoid WordPress Asking FTP Credentials When You Install/ Upgrade Plugins?

Hello Everyone
When you want to install or upgrade a plugin, wordpress will display a message stating:

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

 

Screenshot-1

 

To avoid this, open wp-config.php in notepad and enter the following information at the end:

 

define( 'FS_METHOD', 'direct' );
define( 'FS_CHMOD_DIR', 0777 );
define( 'FS_CHMOD_FILE', 0777 );

Enjoy Code!

One Reply to “How Avoid WordPress Asking FTP Credentials When You Install/ Upgrade Plugins?”

Leave a Reply

Your email address will not be published. Required fields are marked *