phpmyadmin suddently gives http error 500

Posted November 22, 2020 171 views
MySQLUbuntu 18.04


I have 3 Droplets all with ubuntu 18.04, Php 7.2.24, phpmyadmin ver. 4.6.6. Until yesterday phpmyadmin worked fine, but now it gives me HTTP Error 500. Otherwise there is nothing wrong with the servers - (not that i know of). Has anyone experienced the same?.

I have no problem using heidisql

Is there a safe solution to fix the problem. One of the servers is in production, and vulnerale to downtime.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

3 answers


After many hours i finally found what was wrong.

In /etc/phpmyadmin/ last line there was a “;” missing

$cfg[‘TempDir’] = ’/usr/share/phpmyadmin/tmp’; <– ;

Hello, @lcgondellesm

I will recommend to examine the web server (Apache/Nginx) error_log in order to track down what exactly is causing the issue.

You can simply execute this command and then access phpMyAdmin in order to see the logged error message:

Apache on Ubuntu:

tail -f /var/log/apache2/error.log

Apache on On Centos:

tail -f /usr/local/apache/logs/error_log

Nginx on Ubuntu:

tail -f /var/log/nginx/error.log

Feel free to share any logged messages here so we can investigate this further.

Hope that this helps!

Thanks for you answer @alexdo , but there is nothing to see in the error.log . I checked the access log and can see I try to run /phpmyadmin.

Submit an Answer