# \[ERROR] WORDPRESS – HOW TO SET “DIRECT” FILESYSTEM METHOD

There is only one short line of code needed to set the filesystem method for your WordPress site.

This line of code has to be added to wp-config.php file of your WordPress install. First search the wp-config.php file for “FS\_METHOD” in case that it’s already defined. If that’s the case, then just change the value to “direct”. Otherwise add this line:

| 1 | define('FS\_METHOD', 'direct'); |
| - | ------------------------------- |

above this comment in the wp-config.php file:

| 1 | /\* That's all, stop editing! Happy blogging. \*/ |
| - | ------------------------------------------------- |

So the code in wp-config.php will look like this :

| 12 | define('FS\_METHOD', 'direct');/\* That's all, stop editing! Happy blogging. \*/ |
| -- | -------------------------------------------------------------------------------- |

That’s it ![🙂](https://s.w.org/images/core/emoji/11/svg/1f642.svg)

[More info on FS\_METHOD](https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants).
