Article ID: 116645, created on Aug 6, 2013, last review on May 10, 2014

  • Applies to:
  • Plesk 11.0 for Linux


You have Debian or Ubuntu installation and you receive an error while you trying to upload gziped sql dump in PHPMyAdmin:

 You attempted to load file with unsupported compression (application/zip).
 Either support for it is not implemented or disabled by your configuration


  1. find /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/import.php
  2. Locate function\_exists('gzopen') and replace 'gzopen' with 'gzopen64'. Resulting code should looks like this:

    case 'application/gzip':
         if ($cfg['GZipDump'] && @function_exists('gzopen64')) {
                 $import_handle = @gzopen64($import_file, 'r'); 
    } else {


Debian 6 x64 uses zlib1g instead of zlib by default. zlib1g has different function naming: gzopen64 instead of gzopen, gzseek64 instead of gzseek etc. Since phpMyAdmin uses hard-coded check function_exists('gzopen'), it will fail in such conditions.

PHP bug -

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c aea4cd7bfd353ad7a1341a257ad4724a 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF