Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Have scoured the board but can't seem to find anything that's helped yet.

If I go to http://localhost/ it's fine, if I go to http://localhost/phpmyadmin I get an 'Error 500: Internal Server Error'

There doesn't seem to be anything that'll show up in the log files either. I've tried the RewriteLog as mentioned in PHPMyAdmin 500 Internal Server Error - But that doesn't really seem to help either, nothing gets written to it when I've got:

# Logfiles
ErrorLog  /home/www/beta.**.com/logs/error.log
CustomLog /home/www/beta.**.com/logs/access.log combined
RewriteLog /home/www/beta.**.com/logs/rewrite.log
RewriteLogLevel 9

I've tried uninstalling the package and re-installing it, but that's not helped either. Anyone got any other suggestions? I'm running Debian and Apache 2.

share|improve this question
Further to this, I've been through index.php and it dies after loading the required file libraries.common.inc.php - Which subsequently dies after the following lines (Line 538): /** * @global PMA_Config $_SESSION['PMA_Config'] * force reading of config file, because we removed sensitive values * in the previous iteration */ $_SESSION['PMA_Config'] = new PMA_Config('./config.inc.php'); –  christian.thomas Dec 19 '11 at 14:14

1 Answer 1

up vote 0 down vote accepted

Ok, so I resolved it by changing Line 538 to the full path, I.E. /etc/phpmyadmin/config.inc.php - Not 100% sure why, but it does.

share|improve this answer
In your config, you used ./config.inc.php which takes the file from the current directory - and doesn't do any searching. When you change that to the full path, then PHP knows where to find it. Also: since we can't see your configuration file, line 538 is meaningless. –  Mei Dec 20 '11 at 15:50
Line 538 was this line: $_SESSION['PMA_Config'] = new PMA_Config('./config.inc.php'); I'm aware that it'll just take it from the current directory, it just seems weird that a fresh out of the box install oh PHPMyAdmin would use that path.. Presumably the PMA_Config function should do something with the path which it wasn't necessarily doing.. –  christian.thomas Dec 20 '11 at 15:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.