Question #7109   Submitted by Answiki on 12/19/2022 at 10:38:03 AM UTC

How to solve Wordpress asking for FTP credentials?

Answer   Submitted by Answiki on 12/19/2022 at 10:42:30 AM UTC

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.

3 events in history
Answer by Answiki on 12/19/2022 at 10:42:30 AM

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.

Question by Answiki 12/19/2022 at 10:38:03 AM
How to solve Wordpress asking for FTP credentials?
Question by Answiki 12/19/2022 at 10:37:47 AM
Why Wordpress ask for FTP credentials during update?
# ID Query URL Count

Icons proudly provided by Friconix.