How To Stop WordPress From Using FTP For Updates Or Asking for FTP Credentials

Published Date Author: , Posted April 22nd, 2024 at 9:57:40am

Edit your WordPress/wp-config.php file and locate the line that says:

/* That's all, stop editing! Happy blogging. */

Add the following three lines ABOVE that line, then save and exit:

Be sure to refresh your browser to get the new settings!

BONUS

To force the use of FTP, change FS_METHOD from direct to ftpext:

From the docs: https://codex.wordpress.org/it:Modificare_wp-config.php

FS_METHOD forces the filesystem method. It should only be “direct”, “ssh2”, “ftpext”, or “ftpsockets”. Generally, You should only change this if you are experiencing update problems, If you change it, and it doesnt help change it back/remove it, Under most circumstances, setting it to ‘ftpsockets’ will work if the automatically chosen method does not.

(Primary Preference) “direct” forces it to use Direct File I/O requests from within PHP, this is fraught with opening up security issues on poorly configured hosts, This is chosen automatically when appropriate.
(Secondary Preference) “ssh2” is to force the usage of the SSH PHP Extension if installed
(3rd Preference) “ftpext” is to force the usage of the FTP PHP Extension for FTP Access, and finally
(4th Preference) “ftpsockets” utilises the PHP Sockets Class for FTP Access.

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.