Guides › WordPress › Site down or error screens

wp-config.php Explained: The Settings That Matter and How to Edit Them Safely

What the main lines in wp-config.php do, which ones you may need to change and the mistakes that break the site.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.

wp-config.php sits in your site's root folder. It tells WordPress how to reach the database and several important options. Back up the file before editing.

The main parts

Rules for editing

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.