How to Update WordPress Automatically Without Using FTP

Sometimes, you can’t make your WordPress and plugins newer without telling them your FTP connection info. This happens a lot when WordPress can’t write to your /wp-content folder. But don’t worry, just do these steps to fix it.

1. Open /wp-config.php

Locate your wp-config.php and using notepad / vi or whatever editor to open it.

2. Insert FS_METHOD

Add the follow code into wp-config.php, just add them to the bottom of the file is ok.


/** Sets up WordPress vars and included files. */

require_once(ABSPATH . ‘wp-settings.php’);

/** Sets up ‘direct’ method for wordpress, auto update without ftp */ define(‘FS_METHOD’,’direct’);

3. Save it , you can now directly update the wordpress without using FTP.