phpMyAdmin Blank White Page After Login Fix

Database Errors Intermediate 👁 7 views 📅 Jun 27, 2026

Blank white page after phpMyAdmin login? Often it's a PHP memory limit or error display issue. Here's the real fix.

Why you're seeing a blank white page

You log into phpMyAdmin, the screen goes white, nothing loads. No error message. Just emptiness. It's frustrating, I know. I've seen this dozens of times with new setups or after a PHP update.

The fix is almost always something dumb: a PHP memory limit that's too small, or PHP error display turned off so you can't see what broke. Let's fix that.

The main fix: bump PHP memory limit and turn on errors

The first thing to do is check your PHP memory limit. phpMyAdmin needs at least 256MB to run well, especially if you have many databases. If it's set to 128MB or less, that blank page will show up.

  1. Find your php.ini file. On most Linux servers, it's at /etc/php/8.1/apache2/php.ini (replace 8.1 with your PHP version). On Windows with XAMPP, it's C:\xampp\php\php.ini. If you're not sure, create a file called info.php in your web root with this content:
    <?php phpinfo(); ?>
    Open that file in your browser, look for "Loaded Configuration File". That's your php.ini.
  2. Edit the file with a text editor as root or admin. Find the line memory_limit. It might look like memory_limit = 128M. Change it to memory_limit = 256M or even 512M if you have many databases.
  3. Find the lines display_errors and display_startup_errors. They're probably set to Off. Change both to On:
display_errors = On
display_startup_errors = On

After you save, restart your web server. On Apache: sudo systemctl restart apache2 or sudo service apache2 restart. On Nginx: sudo systemctl restart nginx or sudo service nginx restart. On XAMPP: restart the Apache service from the control panel.

Now go back to phpMyAdmin and log in again. If you still see a blank page, you'll at least see an error message now. That error message will tell you exactly what's wrong. Common ones:

  • "Fatal error: Allowed memory size exhausted" — bump memory_limit higher.
  • "Parse error" — you have a syntax error in a PHP file. Check the file listed.
  • "Class not found" — a PHP extension is missing. Install it.

Why this works

phpMyAdmin is a big PHP application. When you log in, it loads lots of PHP files, connects to your database, and builds the interface. If the PHP memory limit is too low, it hits the wall and dies silently. Turning on error display makes it actually tell you what's wrong instead of hiding it. That's why we fix both at once.

Less common variations of this issue

Sometimes the memory limit isn't the problem. Here are other things that cause the same blank page.

1. Wrong PHP version

phpMyAdmin 5.x requires PHP 7.2 or higher. If you're running PHP 5.6, it won't work. Check your PHP version with php -v in the terminal. If it's too old, update PHP. On Ubuntu: sudo apt install php8.1 php8.1-mysql php8.1-mbstring php8.1-xml (adjust version).

2. Missing PHP extensions

phpMyAdmin needs mysqli, mbstring, and xml extensions. If any are missing, you get a blank page. Check with php -m | grep -E 'mysqli|mbstring|xml'. Install missing ones with your package manager. For Ubuntu: sudo apt install php8.1-mysql php8.1-mbstring php8.1-xml.

3. Broken config.inc.php file

If your config.inc.php file has a syntax error or wrong settings, phpMyAdmin crashes. Open /etc/phpmyadmin/config.inc.php (or wherever yours is) and check for typos. A common mistake is using a wrong $cfg['Servers'][$i]['host'] — if it's set to 'localhost' but MySQL uses a socket, change it to '127.0.0.1'.

4. Session directory permissions

phpMyAdmin uses PHP sessions to keep you logged in. If the session save directory (usually /var/lib/php/sessions) has wrong permissions, the page goes blank. Fix with: sudo chmod 733 /var/lib/php/sessions and sudo chown -R www-data:www-data /var/lib/php/sessions (replace www-data with your web server user).

5. Browser cache or cookies

I know this sounds basic, but clear your browser cache and cookies for the phpMyAdmin domain. Sometimes a stale session or cached script causes the blank page. Do this before you dive into server config.

How to prevent this in the future

Once you've got phpMyAdmin working, take these steps so you don't hit the same wall again.

  • Set memory_limit to 256M or higher in your php.ini right from the start. Don't rely on the default 128M.
  • Turn on error display in development servers. For production, turn it off but always check the PHP error log (/var/log/apache2/error.log or /var/log/nginx/error.log).
  • Keep PHP and phpMyAdmin updated. Old versions have bugs that cause blank pages. Update with your package manager.
  • Test after any PHP upgrade. When you upgrade PHP, always test phpMyAdmin right after. The new PHP version might drop an extension you need.

That's it. In most cases, the memory limit and error display fix works in under 5 minutes. If not, go through the list above. You'll find the problem.

Was this solution helpful?