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.

Un comentario en “Updating WordPress directly -(without FTP)-”

  1. My coder iis trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the costs.
    But he’s tryiong none tthe less. I’ve been using Movable-type on numerous websites for about a yeaar and am
    anxious about switching to another platform. I have heard good things about
    blogengine.net. Is there a wayy I can immport all my wordpress ckntent into it?
    Any kind of help would be greatly appreciated! http://boyarka-Inform.com/

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *