How to Edit wp-config.php file in WordPress?

You can easily edit wp-config.php file in WordPress in any of the two ways.

#1. From cPanel

  • Login to cPanel and go inside File Manager section.
  • Now, go to WordPress installation directory and then find wp-config.php file.
  • Right click over the file and then click over Edit.

You will be directed to editor page from where you can make changes as per your requirement.

#2. From FTP Client

  • Login to your FTP Account using FileZilla.
  • Enter the required credentials and Connect.
  • List of all your WordPress files and directories will appear in Remote Site where you will find wp-config.php file.
  • Right click over the file and then View/Edit.

The file will open in default editor of your PC from where you can edit its contents.
Check the blog to know more about wp-config.php file.

  • edit wp-config.php file, edit wp-config.php file from cPanel, how to find wp-config.php file in cPanel, how to edit wp-config.php file from FTP client, why wp-config file is important, how to check details related to WordPress database in cPanel
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Fix WordPress error “There has been a critical error on your website”

Step::1 First of all login to your cPanel and go to File ManagerStep::2 Go inside public_html and...

How to Stay Logged in for a longer period in your WordPress?

Step::1 First of all you must know the theme which is currently activated in your website. So...

How to bulk delete spam comments in your WordPress website?

Step::1 Login to your cPanel and click on File Manager sectionStep::2 Go to public_html and then...

How to Change WordPress logo in wp-admin page?

Step::1 Login to your cPanel and go to File Manager sectionStep::2 Now go to Public_html Step::3...

How to Change WordPress Admin Username?

Step::1 Login to your WordPress dashboardStep::2 Now at the same time login to your WordPress...