Disclosure: I build FatalGuard , a free WordPress plugin that reads these logs. You do not need it for this guide.
A WordPress site breaks. The screen is white, or a page shows a vague message. The real reason is almost always in a log file. This guide shows you how to turn the log on, find it, and read it.
Two logs, not one
You will hear "debug log" and "PHP error log". They are not the same file.
debug.log is written by WordPress. It exists only when you turn on logging in wp-config.php .
The PHP error log is written by PHP or your web server. Its place is set by the error_log setting in PHP, and your host decides the default.
Both hold PHP warnings, notices and fatal errors. Start with debug.log, because you control it.
Step 1: turn on debug logging
Open wp-config.php in your site root. Find the line that says That's all, stop editing! .…