How to Fix the WordPress White Screen of Death on Your VPS
You load your site and get nothing. No error message, no half-rendered page, just a blank white screen. That is the WordPress white screen of death, and on a VPS it is usually a PHP fatal error that WordPress hides from visitors. To fix WordPress white screen of death problems, you need the actual error message first. Everything below runs in diagnostic order: read the logs, then test plugins, then the theme, then memory, then the PHP process itself.
Before you start, confirm the problem is WordPress and not the server. If the admin area at /wp-admin/ loads but the front end does not, the fault sits in the theme or a front-end plugin. If both are blank, the fault is deeper: a plugin, the theme, PHP memory, or PHP-FPM. If the whole server refuses connections, that is a different problem and WordPress is not the place to look.
How to Fix WordPress White Screen of Death with WP_DEBUG
WordPress hides PHP errors by default. Turn that off so the error shows itself. Open wp-config.php in your WordPress root and add these lines above the line that says “That’s all, stop editing!”:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
With WP_DEBUG_LOG set to true, WordPress writes errors to wp-content/debug.log instead of printing them on the page. Keeping display off matters: printing errors to visitors can leak file paths and plugin names. Reload the white page once, then read the log:
tail -n 50 wp-content/debug.log
The last few lines usually name the culprit directly: a plugin file and line number, a theme function, or an “Allowed memory size exhausted” message. If the log is empty, the error is happening before WordPress loads, which points at PHP or the web server. Remove the three lines from wp-config.php or set WP_DEBUG to false when you finish. Leaving debug logging on in production fills the disk and records paths you would rather not keep.
Check the PHP and Nginx Error Logs
If debug.log tells you nothing, go one level down to the server logs. On a typical LEMP stack the PHP error log sits at /var/log/php-fpm/error.log or in the PHP-FPM pool log, and the Nginx error log at /var/log/nginx/error.log. The exact paths depend on your distribution and PHP version, so check your pool configuration if the files are not where you expect them.
tail -n 50 /var/log/nginx/error.log
tail -n 50 /var/log/php8.3-fpm.log
Look for the timestamp that matches your last page load. A “FastCGI sent in stderr: PHP message: PHP Fatal error” line is the error WordPress swallowed. An Nginx “upstream timed out” or “connect() failed” line means PHP-FPM is not answering at all, which is a process problem rather than a WordPress problem. A blank page paired with a database error in the log is a different fault entirely; the steps for that one are covered in our guide on how to fix the WordPress database connection error.
Rename the Plugins Folder to Rule Out a Bad Plugin
A single broken plugin is the most common cause of a white screen, and it often appears right after an update. Since the dashboard is unreachable, disable all plugins from the command line by renaming the folder:
cd /var/www/html
mv wp-content/plugins wp-content/plugins-disabled
Adjust the path to match your own document root. Reload the site. If it comes back, a plugin is at fault. Rename the folder back, then rename each plugin folder inside it one at a time until the white screen returns. That last plugin is the one to remove or roll back.
mv wp-content/plugins-disabled wp-content/plugins
mv wp-content/plugins/broken-plugin wp-content/plugins/broken-plugin-off
If the site stays white with every plugin disabled, plugins are not the cause. Restore the folder name and move on to the theme. Do not leave the folder renamed: some plugins store data keyed to their folder name, and a renamed folder can break scheduled tasks that expect the original path.
Switch to a Default Theme with WP-CLI
A broken theme produces the same blank page, and it is the next thing to test. WP-CLI switches the theme without touching the dashboard:
wp theme activate twentytwentyfour --allow-root
Run this from your WordPress root. The --allow-root flag is only needed if you run the command as root, which is common on a VPS but worth avoiding when you can run as the web user instead. If the site loads on Twenty Twenty-Four, your theme is the problem. Check whether the theme was recently updated, and look at debug.log again for the exact file and line that failed.
If you do not have WP-CLI installed, you can rename the active theme folder the same way you renamed the plugins folder. WordPress falls back to a default theme when the active one is missing. Either way, a slow or broken admin area after recovery is worth a separate look; see our guide on how to speed up a slow WordPress admin dashboard once the site is back.
Raise the PHP Memory Limit
When the error log says “Allowed memory size exhausted”, WordPress ran out of PHP memory. This happens on VPS installs where the default limit is still 128M and a page builder or a heavy plugin needs more. Raise the limit in two places so the change actually applies.
First, set it in wp-config.php:
define( 'WP_MEMORY_LIMIT', '256M' );
Second, raise the PHP limit itself in php.ini:
memory_limit = 256M
Find the active php.ini with php --ini, and edit the one used by PHP-FPM, not the CLI one. After editing, restart PHP-FPM. If the white screen persists at 256M, do not keep raising the number blindly. A limit of 512M papers over a plugin that leaks memory or a query that returns far too many rows. Fix the cause instead, and clean up the database bloat that makes memory pressure worse; our guide on cleaning up WordPress revisions and transients covers the usual suspects.
Check PHP-FPM and Clear OPcache
If the logs are empty, the plugins are off, the theme is default, and memory is fine, the PHP process itself may be the problem. Check that PHP-FPM is running and listening:
systemctl status php8.3-fpm
ss -tlnp | grep php-fpm
Replace php8.3-fpm with the version your server runs. If the service is down, start it and watch the log for why it stopped. A pool that keeps crashing often has too many children for the available RAM, or a worker that dies on a specific request. In that case the pool configuration in www.conf needs attention, not WordPress.
OPcache is the other silent culprit. It caches compiled PHP, so a file you just fixed can keep serving its old, broken version until the cache clears. Restart PHP-FPM to clear it:
systemctl restart php8.3-fpm
Restarting also clears the cache after a plugin or theme update that was applied while the site was broken, which is a common reason a fix appears not to work. If restarts keep being necessary, check that opcache.validate_timestamps is enabled in your PHP configuration so changed files are picked up without a restart. Slow response times after recovery often trace back to the same layer; the checks in our guide on fixing slow TTFB on your VPS walk through the server, database, and cache checks in order.
When the Screen Is Still White
Work through what you have ruled out before you change anything else. If the logs are empty, plugins and theme are cleared, memory is raised, and PHP-FPM is healthy, the fault may sit in .htaccess rules on an Apache setup, a corrupted core file, or file permissions that keep PHP from reading the WordPress files. On Nginx there is no .htaccess, so check the server block instead, especially any recent edit to it.
Reinstalling WordPress core is safe and does not touch content, themes, or plugins:
wp core download --force --allow-root
Then check ownership. Files owned by root while PHP-FPM runs as www-data cause silent failures that look exactly like a white screen:
chown -R www-data:www-data /var/www/html
find /var/www/html -type d -exec chmod 755 {} ;
find /var/www/html -type f -exec chmod 644 {} ;
Adjust the user and path to your own setup. If you installed WordPress with a LEMP stack, the directory layout and user names in our guide to installing WordPress on a VPS with Nginx, PHP, and MariaDB are a useful reference for what a healthy install looks like.
The fix is whichever step brings the error message into view. Enable logging, read the log, and let the message point at the plugin, theme, memory limit, or process that failed. A white screen with no log entry means the error is happening below WordPress, so keep moving down the stack until you find the layer that is actually failing.