How to edit wp‑config.php with WP File Manager

Updated on August 27, 2025

This guide shows you how to edit wp-config.php with the WP File Manager plugin. WP File Manager is the most popular of the “file browser” category of plugins. These plugins provide an online interface for browsing and modifying files in the WordPress installation folder.

⚠️ Backup your site now

Always make a backup before changing any system files in WordPress. This is especially important when using a plugin to access your file system. If you mess up wp-config.php, it might not be possible to sign into the site and use the plugin. If this happens, you’ll need to restore from backup or connect to the file system in a different way.

Instructions

  1. Sign into WordPress with your admin account

  2. Install and activate the WP File Manager plugin if needed

  3. On the side menu, click WP File Manager

  4. Click the root (top) folder of your WordPress installation

    Note that WP File Manager will open to your last folder, so you may need to navigate back to the root. Your top folder name may differ from the screenshot below depending on your host. As long as you see child folders of wp-admin, wp-content, and wp-includes, you are in the correct root folder.A screenshot of the WP FIle Manager plugin showing the root folder selected.

  5. Make a copy of wp-config.php (recommended)

    It is a good practice to make a backup of the file before saving any changes. This makes it easier to restore the file if your changes cause the site to break. There are a few ways to make a quick backup:

    – Right-click wp-config.php and select Download, or
    – Right-click wp-config.php and select Duplicate to make a quick copy, or
    – Select wp-config.php and click the disk icon to download

  6. Right-click wp-config.php and select Editor

    A screenshot of WP File Manager showing a right-click of wp-config.php with the Editor menu item selected

  7. Begin editing the file

    Screenshot of WP File Manager with wp-config.php open in the editor

  8. Click Save when done

    Your changes take effect immediately after refreshing a page.

License

Licensed under CC BY 4.0

You are free to share and adapt this content for any purpose as long as you give appropriate credit in a reasonable manner.

No affiliate links

We do not participate in affiliate marketing, and we are not paid to mention products.

Leave a Reply

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