WordPress FS_Method getting ftp Auth Request

This is information on what to do if you are trying to upgrade, or install a wordpress plugin and you get a FTP Authentication request.

INFORMATION:

Here is some information about setting up  FS_Method.

  • 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 doesn’t 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.

 INSTRUCTIONS:

Here is what to do to set FS_METHOD to direct so you can upload your plugins, upgrades directly through wp-admin. 

  • Check to see if you have an existing FS_METHOD defined in your wp_config.php file. If you do change where it has it's method (in this case 'ftpext') to direct.
define( 'FS_METHOD', 'ftpext' );

  • If this directive does not already exist, add the define line above where it says:
/* That's all, stop editing! Happy blogging. */
  • Directive to be added:
define( 'FS_METHOD', 'direct' );

  • Example:

define( 'FS_METHOD', 'direct' );
/* That's all, stop editing! Happy blogging. */

jim has written 83 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>