Guides

Step-by-step tutorials and practical fixes for WordPress, servers, systems, and daily technical work.
WordPress Guides

Disable FTP Credentials in WordPress

Fix WordPress FTP login issue in seconds.

Before you start

You must have access to wp-config.php file.
Backup the file before editing.
Make sure server permissions allow file writing.

Step-by-step

PHP
define('FS_METHOD', 'direct');
Where to add

Add this line inside wp-config.php before "That's all, stop editing!" line.

Common issues

Still asking for FTP

Check file permissions and ownership.

Permission denied

Web server must have write access.

Wrong file location

Make sure you edited the correct wp-config.php file.

About this guide

This guide shows how to stop WordPress from asking for FTP credentials when installing plugins, themes, or updates.

How to follow this guide

  1. Open wp-config.php file.
  2. Add FS_METHOD direct setting.
  3. Save the file and test plugin installation.

Why use this method?

WordPress asks for FTP credentials when it cannot write files directly. Setting FS_METHOD to direct allows file operations without FTP login.

Frequently Asked Questions

Why does WordPress ask for FTP credentials?

It happens when file permissions are not correctly set.

Is FS_METHOD direct safe?

Yes, if your server permissions are properly configured.

Do I still need FTP after this?

No, WordPress will handle file operations directly.

What if it still asks for FTP?

Check file ownership and permissions on your server.