Why Wordpress ask for FTP credentials during update?
During updates or plugin installation, Wordpress may ask for FTP credentials. This happens when WordPress can not write in the /wp-content directory.
Option 1. The best option is to adjust permissions to the /wp-content folder so that WordPress can write in the folder.
Option 2. Append the following line at the end of the wp-config.php file located in the root folder on your WordPress:
define ( 'FS_METHOD', 'direct');
Save the file, WordPress shouldn't ask anymore for the FTP credentials.
During updates or plugin installation, Wordpress may ask for FTP credentials. This happens when WordPress can not write in the /wp-content directory.
Option 1. The best option is to adjust permissions to the /wp-content folder so that WordPress can write in the folder.
Option 2. Append the following line at the end of the wp-config.php file located in the root folder on your WordPress:
define ( 'FS_METHOD', 'direct');
Save the file, WordPress shouldn't ask anymore for the FTP credentials.
| # | ID | Query | URL | Count |
|---|---|---|---|---|
| 0 | 13622 | alphons | https://en.ans.wiki/7108/why-wordpress-ask-for-ftp-credentials-during-update | 1 |
| 1 | 12316 | en | https://en.ans.wiki/7108/why-wordpress-ask-for-ftp-credentials-during-update | 7 |