PHPMyAdmin - Error 500
7,649
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.
Related videos on Youtube
Author by
christian.thomas
Updated on September 18, 2022Comments
-
christian.thomas over 1 year
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.
-
christian.thomas over 12 yearsFurther 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');
-
-
Mei over 12 yearsIn 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. -
christian.thomas over 12 yearsLine 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..
-
Frederik about 9 yearsOP does not mention WAMP anywhere in the question..
-
elaz about 9 yearssorry i did not mean it i will remove it now