Skip to content

WordPress White Screen of Death on cPanel: Find the Cause

Your WordPress site on cPanel shows a completely blank page with no critical-error message. Use the status code, the cache headers and the cPanel error logs to find which of five causes you have, then fix that one cause.

Your WordPress site on cPanel loads as a completely white page, with no “There has been a critical error on this website” message. That message is WordPress’s safety net since version 5.2, so a truly blank page means the net was skipped, switched off or never reached. Start with two terminal checks: the HTTP status code (the three-digit number the server sends back) and whether a cache answered instead of PHP. Those two answers point to one of five causes, and each one has a short, specific fix. The steps below take them in order and work from cPanel’s Terminal or, more slowly, from File Manager.

What you’ll accomplish

  • Tell a blank page served from a cache apart from one PHP produced just now.
  • Find the right error log on a cPanel account, including the one PHP-FPM writes outside your website folder.
  • Check whether the WordPress fatal-error handler was disabled, or whether the crash happened before it could start.
  • Switch off only the plugin or theme the log names, or every plugin when the log is silent, with a saved list to bring them back.
  • Finish with a site that returns its full HTML and a log that would catch the next failure.

Prerequisites

  • A cPanel account with access to File Manager and Terminal (under Advanced). If Terminal is missing, your host has not enabled shell access; File Manager can do every file step, only slower.
  • WP-CLI, the WordPress command-line tool. Most cPanel hosts install it; check with wp --info. If it is missing, see installing WP-CLI on cPanel.
  • WordPress 5.2 or newer. On older versions every PHP crash gives a blank page, so skip straight to the error log in step 3.
  • The examples use example.com, the account folder ~/public_html and PHP 8.2. Replace them with your own values everywhere.
  • A recent backup. You will edit wp-config.php, and step 6 changes which plugins are active, a setting WordPress keeps in the database.

How it works

When a PHP script crashes on a production server, PHP hides the error from visitors because display_errors is off. PHP then sends a status 500 with an empty body. Since 5.2, WordPress catches that moment with its fatal-error handler, a small piece of code that runs as PHP shuts down. It replaces the empty page with the critical-error message and emails the site admin a recovery link. The critical error guide covers that path.

So a blank page on a modern WordPress site comes from one of five places:

  1. A cached blank page. The site broke for a minute, LiteSpeed Cache or a Cloudflare rule stored the empty response, and visitors keep getting that copy long after PHP recovered. The status is usually 200.
  2. Code that prints nothing. A plugin calls exit too early, a theme template outputs nothing, or an output buffer (PHP holding the page in memory before sending it) gets thrown away. No error happens, so nothing is logged. The status is 200 with an empty or tiny body.
  3. A fatal error the handler did not catch. Someone defined WP_DISABLE_FATAL_ERROR_HANDLER in wp-config.php, or the crash happened inside wp-config.php itself, which loads before the handler starts. The status is 500, and the error is in a log.
  4. A fatal error with logging off. Same 500, but log_errors is off or the log file cannot be written, so the error went nowhere.
  5. The PHP process died. PHP-FPM (the pool of PHP workers cPanel runs per site) or LiteSpeed’s PHP handler was killed mid-request, for example by an account resource limit. PHP never got the chance to log anything. You see a 502 or 503, sometimes as a near-empty page.

The diagram follows the order to check them in.

Decision tree for a blank WordPress page on cPanel: check the status code with curl; a 200 leads to a cache check, a 500 leads to the error log, a 502 or 503 points to a PHP process that died

Step-by-step

  1. Read the status code and the body size. Open Terminal in cPanel, or SSH in, and ask for the home page without a browser cache in the way:

    curl -sS -o /dev/null -w '%{http_code} %{size_download}\n' https://example.com/

    Example output for a blank page:

    200 0

    The first number is the status, the second is how many bytes came back. A 200 with a body under a few hundred bytes is cause 1 or 2, so go to step 2. A 500 is cause 3 or 4: go to step 3. A 502 or 503 is cause 5: go to step 7. A 508 means the account hit a resource limit, which step 7 also covers. A 200 with a large body means the server is fine and the blank page lives in your browser or a single URL; test the exact URL that looks blank.

  2. Check whether a cache served the blank page. Look at the response headers:

    curl -sI https://example.com/ | grep -iE '^(x-litespeed-cache|cf-cache-status|age|content-length)'

    Example output:

    x-litespeed-cache: hit
    content-length: 0

    x-litespeed-cache: hit, or cf-cache-status: HIT, means a cache answered and PHP never ran. Ask for a copy the cache has not seen by adding a throwaway query string:

    curl -sS -o /dev/null -w '%{http_code} %{size_download}\n' 'https://example.com/?nocache=8317'

    If this one returns 200 with tens of kilobytes, PHP is healthy and only the cached copy is bad. Purge it with wp litespeed-purge all, which prints a Success: line, and use Purge Everything in the Cloudflare dashboard if Cloudflare showed HIT. If the uncached request is also empty, the blank page is being generated right now: that is cause 2, so go to step 6.

  3. Find the newest PHP error log. On cPanel, PHP errors land in one of two places. With the default handler, PHP writes a file named error_log in the folder of the script that failed. With PHP-FPM, each domain logs to ~/logs/ in a file named after it, such as example_com.php.error.log, and no error_log appears beside the scripts. List both places, newest first:

    ls -lt ~/public_html/error_log ~/public_html/wp-admin/error_log ~/logs/*.php.error.log 2>/dev/null | head -5
    grep -h 'PHP Fatal' ~/public_html/error_log ~/logs/*.php.error.log 2>/dev/null | tail -3

    Example output:

    [11-Oct-2026 09:41:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function create_function() in /home/acme/public_html/wp-content/plugins/old-slider/slider.php:58

    The path after in names the culprit: a folder under wp-content/plugins/, under wp-content/themes/, or wp-config.php. The timestamp should match when you loaded the page. If you find a fresh line, go to step 4. If there is no recent fatal line at all, go to step 5. cPanel’s Errors page (under Metrics) is worth a look too: it shows the last 300 entries from the web server’s own error log for your domains.

  4. Find out why the critical-error page did not appear. Search the config file for the settings that switch it off or bypass it:

    cd ~/public_html
    grep -nE 'WP_DISABLE_FATAL_ERROR_HANDLER|WP_DEBUG|display_errors' wp-config.php
    php -l wp-config.php

    Example output:

    91:define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
    No syntax errors detected in wp-config.php

    A WP_DISABLE_FATAL_ERROR_HANDLER line set to true explains the blank page. It is sometimes added during development to see raw errors, then left behind. Delete the line, or set it to false, and reload. You will now get the critical-error page, which is still broken but tells you more. If php -l reports PHP Parse error instead, the crash is in wp-config.php, which runs before the handler exists. Fix the line it names; a missing semicolon or a stray quote from a recent edit is the usual suspect. Run php -l from inside the site folder, because cPanel’s php command picks the PHP version set for that folder. Then fix the plugin or theme from the log with step 6.

  5. Turn logging back on when the log is empty. A 500 with nothing logged means PHP was told not to record errors. In cPanel, open MultiPHP INI Editor (under Software), choose your domain, and switch to Editor Mode to see the domain’s PHP settings as text. Confirm log_errors = On. Then give WordPress its own log by adding these lines to wp-config.php, above the line that says “That’s all, stop editing!”:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    Load the blank page once more, then read the new file:

    tail -n 5 ~/public_html/wp-content/debug.log

    You should see the fatal line now, in the same format as step 3. WP_DEBUG_DISPLAY set to false keeps the error off the visitor’s screen. If debug.log does not appear at all, PHP cannot write to wp-content/; check the folder belongs to your cPanel user with ls -ld ~/public_html/wp-content. The WordPress debug modes article explains what each constant changes.

  6. Switch off the plugin or theme at fault. WP-CLI can load WordPress with plugins and the theme skipped, so it still works while the site is crashing. If the log in step 3 named a plugin folder, switch off that one plugin only:

    cd ~/public_html
    wp --skip-plugins --skip-themes plugin deactivate old-slider

    Example output:

    Plugin 'old-slider' deactivated.
    Success: Deactivated 1 of 1 plugins.

    Rerun the curl from step 1. A full-size 200 confirms the culprit; update or replace that plugin before you switch it back on. If the log named a folder under wp-content/themes/, switch to a default theme instead:

    wp --skip-plugins --skip-themes theme install twentytwentyfive --activate

    If no log line named anything (cause 2), save the list of active plugins to a file first, then switch them all off:

    wp --skip-plugins --skip-themes plugin list --status=active --field=name > ~/active-plugins.txt
    wp --skip-plugins --skip-themes plugin deactivate --all

    The second command ends with a line such as Success: Deactivated 23 of 23 plugins. If the page comes back, turn plugins on one at a time from your saved list with wp --skip-plugins --skip-themes plugin activate <name>, rerunning the curl after each. The one that brings the blank page back is the culprit. If the page stays blank with every plugin off, test the theme with the command above.

    No terminal? In File Manager, rename only the folder the log names, for example wp-content/plugins/old-slider to old-slider.off. WordPress cannot load it, and it drops off the active list the next time someone opens the Plugins screen. Rename it back once you have an updated copy.

  7. Handle a dying PHP process (502 or 503). Open Errors in cPanel. Look for lines from the time of the failure, such as a timeout or a connection reset from the PHP handler. On CloudLinux servers, also open Resource Usage (under Metrics) to see whether the account hit one of its limits. A 508 Resource Limit Is Reached page means the entry-process limit was full, the cap on how many requests the account may run at once. Memory and process-count limits show up as a 500 or 503 instead. If a limit was hit, the fix is in whatever made PHP so busy, often a crawler or a heavy plugin task. The PHP memory exhausted guide covers the memory side. If the limits look normal and the process still dies, ask your host for the PHP-FPM or LiteSpeed log for your account; only the server owner can read it.

  8. Check the PHP version after a migration. A site moved between servers often lands on a different PHP version, and old plugins break on PHP 8. Open MultiPHP Manager (under Software) and read the version listed next to your domain, or check it from the terminal:

    grep -A3 'BEGIN cPanel-generated handler' ~/public_html/.htaccess

    Example output:

    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php82” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddHandler application/x-httpd-ea-php82 .php .php8 .phtml

    No output means the domain has no handler block of its own and uses the server’s default version, which MultiPHP Manager still names. Did the version change recently, and does the log name a removed function like create_function() in step 3? Then update the plugin, or set the domain back to the old version while you replace it. Treat an old PHP version as a short pause; versions past end of life stop getting security fixes.

Validate it works

Run these three checks against the live site:

curl -sS -o /dev/null -w '%{http_code} %{size_download}\n' https://example.com/
curl -s https://example.com/ | grep -c '</html>'
curl -sI https://example.com/wp-login.php | head -1

Expected: 200 with a size in the tens of kilobytes or more, then 1 (the page finished rendering), then a status line containing 200. Load the site once in a private browser window to see it the way a visitor does. Then tidy up. Remove the WP_DEBUG lines from step 5, or set WP_DEBUG back to false, so debug.log does not grow without limit. Leave log_errors = On and the fatal-error handler enabled, so the next failure produces a message and a log line instead of a blank page.

Troubleshooting

  • The site is blank only for visitors who are logged out. That points straight at the page cache, since logged-in users usually bypass it. Purge as in step 2, then find what produced the empty page in the first place, or it will be cached again.
  • WP-CLI itself crashes with the same fatal error. Add --skip-plugins --skip-themes to the command. If it still fails with both flags, the fault is in wp-config.php, a must-use plugin in wp-content/mu-plugins/, or WordPress core files. Rename mu-plugins to test the second, and reinstall core with wp core download --force --skip-content for the third.
  • Only wp-admin is blank. The front end is fine but the dashboard is white. Check ~/public_html/wp-admin/error_log as well as the main log. If only the block editor is blank, that is a JavaScript or REST API problem, covered in the block editor blank screen guide.
  • Blank page on a site that is not WordPress. The same status-code check applies, but the WordPress handler and WP-CLI steps do not. See the white screen guide for plain PHP sites.

When this is the wrong approach

If you see the critical-error message rather than a blank page, the handler worked, and the recovery-mode email is a faster route in. If the server returns a styled error page from your host or from Cloudflare, the problem sits in front of WordPress, and these steps will find nothing. And if you are on a managed host without Terminal or File Manager, the steps still describe what to ask for: the status code, the newest fatal line, and the PHP version. The WordPress handbook page on debugging in WordPress documents each debug constant used here.

Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.