Updating WordPress directly -(without FTP)-

If we want to avoid that when we try to update WordPress or any plugin, WordPress asks us for the credentials to update by FTP, we only have to add a line to the wp-config.php file. For this we open a terminal.

In the terminal we type the following command to edit the file wp-config.php: sudo io.elementary.code /opt/lampp/htdocs/wordpress/wp-config.php

Now we add the line:

define(‘FS_METHOD’, ‘direct’);

So it shows like this

/** The Database Collate type. Don’t change this if in doubt. */
define( ‘DB_COLLATE’, ” );

/** Para que no haga las actualizaciones por FTP. */
define(‘FS_METHOD’, ‘direct’);


We save the file and from this moment the WordPress update will be direct, without FTP.

Deja una respuesta

Tu dirección de correo electrónico no será publicada.