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
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.