wp-config.php
The file that holds WordPress's basic settings. The three lines that turn on the debug log also go in this file.
wp-config.php is the settings file WordPress reads first when it starts up, and it usually sits at the top of the folder where WordPress is installed. It holds the database name, the username and password used to connect to it, and the security key strings, so it is like the key box where the site's important keys are kept. Special settings, such as the three lines that turn on the debug log, are also added to this file.
Watch out Before editing it, always copy the original file to your own computer. A single missing quotation mark or semicolon can stop the whole site with a critical error. New settings go above the line that says "That's all, stop editing!". Also, a renamed copy left on the server, such as wp-config.php.bak, can be downloaded by anyone, contents and all, so keep copies somewhere other than the server.
Source: WordPress Developer Resources, “Editing wp-config.php” · WordPress Developer Resources, “Debugging in WordPress” (checked 2026-10-26)