Ubuntu 16.04 phpMyAdmin config bug

Ubuntu provides phpMyAdmin as a package so it is very easy to get this installed on a server. The config file is stored in /etc/apache2/conf-enabled/phpmyadmin.conf.

If you are running Ubuntu 16 with PHP 7 then the PHP directives contained in this config file may not be working. This is a known bug: https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/1637911.

Edit this file and change <IfModule mod_php.c> to <IfModule mod_php7.c>, restart Apache and it will work again.

It is more secure to increase the file upload limit here than globally for all PHP sites on your server.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.