PhpMyAdmin and the White Screen of Death
After a recent hardware failure (*) I've been setting up a new LAMP sandbox, this time using Ubuntu 9.04 running in a virtualised environment.
Everything was going fine, but after importing a database backup into MySQL, PhpMyAdmin started misbehaving, giving a White Screen of Death after login. View source revealed an empty file.
The problem was permissions related - the /etc/phpmyadmin/config-db.php file had been rewritten, and now belonged to the www-data group. Since the file was inaccessible to the user running apache, PhpMyAdmin was silently crashing.
In my case, the solution was to grant wider read-access to the file - safe because this is a private sandbox, for testing, and never to be exposed to the harsh realities of the wider world. For a production server, I'd need to work out why the group changed and fix the underlying fault.
Posted in the hope that this will save someone else a few hours troubleshooting.
(*) Our Kidputer suffered a motherboard failure. To get it up and running again, I sacrificed my test server, leaving me with no sandbox environment.

Comments
Wow thanks for the useful
Wow thanks for the useful article indeed. I had such a problem yesterday and I was just shocked. I mean I was trying to upload my existing database, import it. And suddenly I got white screen of death. I was shocked, because my first thoughts were that database is corrupted and so on, this database is really important for me.. But after reading your entry, I have looked over my config file, and it was rewritten. Now everything works fine. Thanks for the great article indeed. I will be looking forward to other great posts from you in the nearest future.
Sincerely,
Toby Timpon from java development company
Got the same issue
I got the same issue after trying to import .sql to my database and failed halfway.
The problem is solved by clearing the cache from browser.
It saved my time, even though
It saved my time, even though I am a mobile app developer I didn't know some of these aspects. Thank you!