The WordPress Configuration File
Updated 2 July 2026
wp-config.php sits in your WordPress root and defines database connection, security keys, and optional constants.
This article explains what `wp-config.php` controls and which settings should be handled carefully to avoid taking your site offline.
Important constants
DB_NAME,DB_USER,DB_PASSWORD,DB_HOSTWP_DEBUGenables debug mode (disable on production).DISALLOW_FILE_EDITblocks theme/plugin editor in admin.
Edit carefully. A syntax error in this file will take your site offline.