Question

phpmyadmin suddently gives http error 500

Hi,

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.

Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Accepted Answer

SOLVED!!

After many hours i finally found what was wrong.

In /etc/phpmyadmin/config.inc.php last line there was a “;” missing

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

alexdo
Site Moderator
Site Moderator badge
November 22, 2020

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! Regards, Alex

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.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.