Fix phpMyAdmin and PHP 7.2 Issues on Ubuntu 18.04


The version of phpmyadmin for ubuntu doesn’t play nice with php 7.2.  The problems were fixed in newer versions of phpmyadmin.

The Fix

Just a few steps and things will be fixed.

First visit and download the latest version. My example is version 4.8.1.
> cd /tmp
> wget

Unzip and rename the folder.
> unzip
> mv phpMyAdmin-4.8.1-all-languages phpmyadmin

Backup the old version of phpmyadmin and move over the new version.
> mv /usr/share/phpmyadmin /usr/share/
> mv phpmyadmin /usr/share/

Edit /usr/share/phpmyadmin/libraries/vendor_config.php and make the following change.


define('CONFIG_DIR', '');


define('CONFIG_DIR', '/etc/phpmyadmin/');

That’s it.


This is a bug that will eventually get fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *