In this article, you will learn how to fix the issue where WordPress is asking for FTP credentials on plugin/theme install or update.
You might see the below pop when you try to install any plugin.
To skip this step you have to edit the file,
wp-config.php located at the root directory of WordPress installation and update using method 1 or 2 mentioned below.
Add the below line after the line where it says That’s all, stop editing! Happy publishing.
This will override the server permissions required to install or update, this method might open security issues on poorly configured hosts.
You can also add your FTP credentials to wp-config.php to skip the server information step during plugin install or update. For that add the following lines of code after the line where it says That’s all, stop editing! Happy publishing. Before that please replace the demo username, password, and FTP host with your server credentials.
define( 'FTP_USER', 'username' ); define( 'FTP_PASS', 'password' ); define( 'FTP_HOST', 'ftp.example.org' );
Save your changes and that’s it. Now navigate to the WordPress admin panel process again and now WordPress will not ask for the FTP credentials for install or update the plugin or theme.