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

blog comments powered by Disqus
Next Post
Exception Inspection  15 Jul 2009
Prior Post
Performance of Dynamic  12 Jul 2009
Related Posts
Browsers and WSL  31 Mar 2024
Factory methods and functions  05 Mar 2023
Using Constructors  27 Feb 2023
An Inconvenient API  18 Feb 2023
Method Archetypes  11 Sep 2022
A bash puzzle, solved  02 Jul 2022
A bash puzzle  25 Jun 2022
Improve your troubleshooting by aggregating errors  11 Jun 2022
Improve your troubleshooting by wrapping errors  28 May 2022
Keep your promises  14 May 2022
Archives
July 2009
2009