phpMyAdmin doesn't load database import file with unsupported compression (application/gzip)
i had the same problem under different configuration: Ubuntu 16.04 + PHP 7.0 + VirtualMin. The zip library for php7.0 was simply not installed, so this fixed the problem:
apt-get install php7.0-zip
Edit: this works for php 7.0, the command must suit your php version (7.x)
Put the fix from here http://piwigo.org/forum/viewtopic.php?pid=151458
if (extension_loaded('zlib') && !function_exists('gzopen') && function_exists('gzopen64'))
{
function gzopen($filename, $mode, $use_include_path = 0) {
return gzopen64($filename, $mode, $use_include_path);
}
}
in your /etc/phpmyadmin/config.inc.php. Then it will survive an apt-get upgrade.
Here's an alternative scenario for you.
Downloaded an SQL file from phpmyadmin to local laptop. Before uploading to new server , I compressed locally form within finder. ( this is the mistake ) as this adds __MACOS folder to the compressed file. myfile.sql.zip
Generates the same error message.
phpMyAdmin doesn't load database import file with unsupported compression (application/gzip)
To stop that from happening, just gzip the file from the command line so you have..
gzip myfile.sql
myfile.sql.gz
and upload that.