A blank phpMyAdmin page is a PHP fatal error that killed the script before it wrote a single byte, plus a display_errors setting that kept the message off your screen. The browser is not hiding anything — it genuinely received a zero-byte body. So the first move is never to reinstall phpMyAdmin from WHM. The first move is to make PHP tell you what it hit, and then follow that message to one of four causes: a missing extension after a PHP version change or an EasyApache rebuild, a session store PHP cannot write to, memory_limit exhaustion, or an OPcache still serving code you already replaced.
Reinstalling helps in maybe one case in five, and when it does help it is usually because the reinstall incidentally rewrote a config file or recreated a directory. Ten minutes of reading a log beats an hour of guessing, and it leaves you knowing why the server did this — which matters, because most of these causes come back.
What you’ll accomplish
- Prove the response really is an empty body, so you stop chasing browser and CSS theories.
- Identify which PHP interpreter actually serves your phpMyAdmin, which is not always the one you think.
- Turn error reporting on for that interpreter only, read the fatal, and turn it back off.
- Fix the specific cause: extension, session storage, memory, OPcache, or a stale phpMyAdmin temp directory.
- Know the two situations where reinstalling phpMyAdmin genuinely is the right answer.
Prerequisites
You need shell access. Most of this works from a plain cPanel account shell; a handful of checks — package installs, /scripts/ commands, CageFS — need root over SSH or WHM.
Two deployments of phpMyAdmin live on a typical cPanel box and they behave differently:
- cPanel’s bundled copy, reached from the cPanel or WHM interface on ports 2083 and 2087. It is served by
cpsrvdusing cPanel’s own bundled PHP at/usr/local/cpanel/3rdparty/bin/php, with its ini at/usr/local/cpanel/3rdparty/etc/php.ini. Its errors land in/usr/local/cpanel/logs/error_log. Do not hand-edit anything under/usr/local/cpanel/base/3rdparty/— cPanel updates overwrite it. - A copy the account installed under
public_html, served by Apache or LiteSpeed using the account’s EasyApache PHP (/opt/cpanel/ea-php82/root/usr/bin/phpand friends) or CloudLinux alt-php.
Examples below use ea-php82 and the account exampleusr. Substitute your own; the paths follow the same shape on every EasyApache 4 version. On CloudLinux with PHP Selector, the binaries live under /opt/alt/php82/usr/bin/php instead and the CageFS section applies.
How it works
PHP buffers output. Nothing is flushed to the web server until either the buffer fills, the script ends, or the code explicitly flushes. phpMyAdmin does a lot of work before it emits any markup: it loads its configuration, calls session_start(), resolves the language files, and opens the MySQL connection. A fatal anywhere in that stretch discards the buffer and ends the request. The web server then hands the browser a response with a Content-Length of zero — often with a perfectly normal HTTP 200 status, which is why it does not look like an error at all.
display_errors is off on any sanely configured production server, and log_errors sometimes points at a file nobody has ever read. That combination is the whole mystery: the diagnosis exists, it was just written somewhere you have not looked.
The four failure points sit on different hops, which is what makes them distinguishable once you have the message. This is the same mechanism behind a WordPress white screen of death — a fatal with the lights off — but phpMyAdmin fails in its own characteristic ways, because it touches sessions and multibyte string handling far earlier in the request than a typical application does.
Step-by-step
-
Confirm the body really is empty. Do this from anywhere with curl, before touching the server.
curl -sS -o /dev/null -w 'status=%{http_code} bytes=%{size_download}\n' https://example.com/phpmyadmin/index.phpYou want to see
status=200 bytes=0orstatus=500 bytes=0. Either confirms a PHP fatal. If instead you get tens of thousands of bytes, PHP is fine and you are looking at a front-end problem — a blocked asset, a browser extension, a service worker — and nothing below applies. -
Find out which PHP serves it. For an account-installed copy, ask cPanel which version is bound to the vhost.
whmapi1 php_get_vhost_versions | grep -B2 -A2 example.comExpect a block naming the vhost with a
version:line such asea-php82. Then confirm which ini that binary loads:/opt/cpanel/ea-php82/root/usr/bin/php --iniYou should get a
Loaded Configuration File:line pointing at/opt/cpanel/ea-php82/root/etc/php.ini, plus a list of scanned.inifiles from thephp.ddirectory. If you are debugging cPanel’s bundled phpMyAdmin instead, the interpreter is/usr/local/cpanel/3rdparty/bin/phpand the rest of this step does not apply. -
Turn error output on, narrowly. Do not edit the global ini for this. With PHP-FPM or LSPHP, a
.user.iniscoped to the phpMyAdmin directory is enough:cd /home/exampleusr/public_html/phpmyadmin printf 'display_errors = On\nlog_errors = On\nerror_reporting = E_ALL\nerror_log = %s/pma-debug.log\n' "$PWD" > .user.ini.user.inifiles are cached foruser_ini.cache_ttlseconds — 300 by default — so wait five minutes or restart the handler before retesting. Under suPHP or CGI, name the filephp.iniinstead;.user.iniis ignored there. For cPanel’s bundled copy, set the same four directives in/usr/local/cpanel/3rdparty/etc/php.iniand run/scripts/restartsrv_cpsrvd. -
Reload the page and read the log. Check the scoped log first, then the server-wide ones.
tail -n 50 /home/exampleusr/public_html/phpmyadmin/pma-debug.log tail -n 50 /etc/apache2/logs/error_log tail -n 50 /usr/local/lsws/logs/stderr.log tail -n 50 /usr/local/cpanel/logs/error_logOne of them contains a line beginning
PHP Fatal error:. On LiteSpeed, uncaught PHP fatals frequently land instderr.lograther thanerror.log, which is why both are listed. Everything from here branches on what that line says. -
Branch A — the fatal names a function or class.
Call to undefined function mb_strlen()orClass "mysqli" not foundmeans an extension went missing, almost always after a PHP version switch or an EasyApache rebuild that did not carry every module across./opt/cpanel/ea-php82/root/usr/bin/php -m | grep -E '^(mbstring|json|session|mysqli|openssl|zlib|xml)$'All seven should print.
jsonis compiled into PHP 8 and cannot be missing there; on PHP 7.x it is the separateea-php74-php-jsonpackage and it absolutely can be. Install what is absent and restart the handler:dnf install ea-php82-php-mbstring ea-php82-php-mysqlnd /scripts/restartsrv_apache_php_fpmUse
yuminstead ofdnfon CentOS 7.ea-php82-php-mysqlndis the package that provides bothmysqliandpdo_mysql. The equivalent through the interface is WHM, then EasyApache 4, Customize, PHP Extensions — safer if you are not certain of package names. If the ini files themselves came back wrong from a rebuild,/usr/local/cpanel/bin/install_php_inisrewrites cPanel’s provided ini files for every installed EasyApache PHP; run it knowing it overwrites hand edits. Enabling modules for one account rather than the whole server is covered in per-account PHP extensions. -
Branch B — the fatal mentions sessions, permissions, or space.
session_start(): Failed to read session data,Permission denied, orNo space left on deviceall point at the same hop. Find the save path, then check whether it is usable:/opt/cpanel/ea-php82/root/usr/bin/php -i | grep -E 'session.save_path|open_basedir|upload_tmp_dir' ls -ld /var/cpanel/php/sessions/ea-php82 df -h /tmp /var /home df -i /tmp /var /home quota -s -u exampleusrThe directory should print as
drwx-wx-wt root root— mode 1733 is what cPanel sets.df -iis the check people skip: a filesystem can show 40% space free and still be at 100% inodes, usually from millions of orphanedsess_files that the cleanup cron stopped clearing.quota -smarks an over-quota account with an asterisk beside the used figure; an account at its disk quota cannot write a session file either. Clear old sessions and recreate the directory if it is gone:find /var/cpanel/php/sessions/ea-php82 -maxdepth 1 -name 'sess_*' -mtime +1 -delete mkdir -p /var/cpanel/php/sessions/ea-php82 chown root:root /var/cpanel/php/sessions/ea-php82 chmod 1733 /var/cpanel/php/sessions/ea-php82Re-run
df -iafterwards;IUse%should have dropped. -
Branch C — the fatal is an allocation failure.
Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)means phpMyAdmin asked for more than the limit — normally while listing a table with a very large row count, or during an import. Raise the limit for that directory alone:echo 'memory_limit = 512M' >> /home/exampleusr/public_html/phpmyadmin/.user.ini /scripts/restartsrv_apache_php_fpmThen repeat the exact operation that failed; the CLI cannot prove what the FPM pool is using, so the page itself is the only real test. If the failure was an import rather than browsing, raising memory is treating a symptom — push the dump in over the CLI instead, and see large phpMyAdmin imports timing out for the full approach.
mysql -u exampleusr_dbuser -p exampleusr_db < dump.sql -
Branch D — there is no fatal, or the fatal names a file you already fixed. Two culprits. First, OPcache still holding bytecode from before your change:
/opt/cpanel/ea-php82/root/usr/bin/php -i | grep -E 'opcache.enable|opcache.validate_timestamps|opcache.revalidate_freq' /scripts/restartsrv_apache_php_fpmNote the CLI has its own OPcache, usually disabled, so that output tells you what the ini says and not what the running pool holds. Restarting the handler is the only reliable way to drop it. On LiteSpeed use
/scripts/restartsrv_lsws. Second, phpMyAdmin’s own temp directory:grep -n 'TempDir' /home/exampleusr/public_html/phpmyadmin/config.inc.php ls -ld /home/exampleusr/public_html/phpmyadmin/tmpRead the value out of the config rather than assuming the path. If
TempDirpoints somewhere that no longer exists or is owned by the wrong user, phpMyAdmin’s template cache write fails and, with error output off, you get a blank page. Recreate it owned by the account user. -
On CloudLinux, check inside the cage before believing
php -m. A module installed on the host is invisible to the user until the CageFS skeleton is rebuilt, which produces exactly this symptom — works as root, blank for the customer.cagefsctl --list-enabled | grep -x exampleusr cagefsctl --update cagefsctl --remount-allcagefsctl --updaterebuilds the skeleton after a package install;--remount-allremounts every enabled user. If PHP Selector is in play,selectorctl --listshows which alt-php versions exist, and the account’s own Select PHP Version screen in cPanel controls its extensions independently of anything you installed for the EasyApache versions. Separately, a CloudLinux LVE physical-memory kill produces a blank page with nothing at all in the PHP log —lvectl listshows the configured limits, and the LVE Manager plugin in WHM shows the faults per user around the time of the failure.
Validate it works
Repeat the curl from step 1, then exercise the operation that was failing:
curl -sS -o /dev/null -w 'status=%{http_code} bytes=%{size_download}\n' https://example.com/phpmyadmin/index.php
You want status=200 with a bytes value in the tens of thousands. Then log in, open the largest table in the database, and start an export — those are the two paths that consume the most memory and the most session activity. Finally, take the debugging settings back off, because a public phpMyAdmin printing PHP errors leaks paths and version numbers:
rm -f /home/exampleusr/public_html/phpmyadmin/.user.ini
/scripts/restartsrv_apache_php_fpm
grep -c 'PHP Fatal error' /etc/apache2/logs/error_log
The grep -c gives you a baseline count. Re-run it a day later; a rising number means the cause is still firing even if the page currently loads.
Troubleshooting
Blank only after login, fine on the login form. Logging in is the first request that writes a session rather than just reading one, so a save path that is readable but not writable fails exactly here. It is also where a mismatched cookie domain shows up: if you reached phpMyAdmin at cpanel.example.com but the cookie was issued for example.com, the post-login redirect arrives with no session. Load it at the same hostname the cookie names.
The log file is empty or was never created. The error_log path is unwritable, on a full filesystem, or blocked by open_basedir. Point it at a directory inside the account’s home, or remove the error_log line entirely so messages fall through to the web server’s own error log.
Blank in one browser, fine in another. That is not a fatal. Curl from outside returning a real byte count settles it in seconds — then look at a cached asset, a service worker, or a content blocker.
Works as root, blank for the account. open_basedir or CageFS. Compare the two environments directly with su - exampleusr -c '/opt/cpanel/ea-php82/root/usr/bin/php -i' | grep open_basedir, and check the CageFS steps above.
Fixed, then blank again a week later. The resource is refilling. Inodes climbing back to 100%, a session cleanup cron that is failing silently, or a job filling /tmp. Graph the number rather than clearing it a second time.
When this is the wrong approach
If the whole cPanel interface is blank and not just phpMyAdmin, the problem is cpsrvd or the server itself, and this article is scoped too narrowly. If MySQL is down or refusing connections you get a phpMyAdmin error page rather than a blank one — that is a different investigation entirely, starting at the database’s own log. And if you are on shared hosting without shell access, most of the commands here are unavailable to you; the useful move is to open a ticket quoting the exact fatal line from the error log in your cPanel File Manager, which gets a real answer far faster than asking for a phpMyAdmin reinstall.
Reinstalling is right in exactly two situations: the files are genuinely damaged, or a config.inc.php has been edited beyond recovery. For cPanel’s bundled copy that means WHM, then cPanel, then Upgrade to Latest Version — or /scripts/upcp --force at the shell, which re-runs the full cPanel update and restores its third-party components. It touches far more than phpMyAdmin, so keep it last. For an account-installed copy, download a fresh release from the phpMyAdmin documentation site, keep your config.inc.php, and replace everything else. The paths and script behaviour referenced above are documented at docs.cpanel.net.
If this is the kind of work you’d rather never own again, it’s the daily job of Managed Cloud Ops — book an infrastructure review.