What is the wp-config.php file?

wp-config.php sits in the root folder of the site. It holds:

  • The database name, user, password and host (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST).
  • The security keys and salts.
  • The table prefix ($table_prefix).
  • Options like WP_DEBUG, WP_MEMORY_LIMIT and DISALLOW_FILE_EDIT.

It is created during the install from wp-config-sample.php. Keep it private and back it up. See The wp-config.php File.


Learn more about the similar topics:
Tutorials
WordPress.com vs WordPress.org
WordPress Installation
WordPress Frontend and Backend
WordPress Files and Folder Structure
The wp-config.php File
Exercises & Assignments
No Content Found.
Interview Questions & Answers
Describe WordPress files and directory structure
What is the difference between WordPress.com and WordPress.org?
How to install WordPress?
What is the wp-config.php file?
How to move a WordPress site to a new domain or server?