- Access your WordPress site's files using an FTP client or file manager provided by your web hosting service.
- Locate the wp-config.php file in the root directory of your WordPress installation.
- Download a copy of the wp-config.php file to your local computer as a backup.
- Open the wp-config.php file using a text editor.
- Find the line that says "/ That's all, stop editing! Happy blogging. /".
- Just above this line, add the following code:
define('FS_METHOD', 'direct');
- Save the changes to the wp-config.php file and upload it back to the server, replacing the existing file.
- Verify that the file has been properly updated by visiting the WordPress admin dashboard and attempting to perform a file update or installation.