Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm configuring a new VPS and after I exported the database from the the older server using phpmyadmin (and using gzip to compress it) I can't import it on the new server.

It states "You attempted to load file with unsupported compression (application/gzip). Either support for it is not implemented or disabled by your configuration.". I saw another post here but couldn't solve it yet.

It's under Ubuntu Server 10.04 LTS and running phpmyadmin 3.3.2. Also it says in the upload dialog "Imported file compression will be automatically detected from: None, bzip2, zip" but I can't see gzip there.

I can't make the backup in another format.

share|improve this question
up vote 3 down vote accepted

Easiest way to fix it is to uncompress and recomposes the image.

gunzip <compressed_file>
bzip2 <extracted_file>

That should give you a .bz2 file to upload.

share|improve this answer
Thanks, it worked :) – demogar Nov 7 '10 at 15:22

Probably you did not install gzip on your machine. Try to digit at command line:

sudo apt-get install gzip

Rememeber, before doing that update your system using

sudo apt-get update sudo apt-get upgrade

share|improve this answer

As far as I can remember php has zlib support installed by default. You may have disabled it in your php.ini.

You might also use the following php script to determine which modules are being loaded:

share|improve this answer
"Zlib support in PHP is not enabled by default. You will need to configure PHP --with-zlib[=DIR]" - – danlefree Nov 6 '10 at 23:11
As he is on ubuntu 10.04 server the deb packages shipped with the distribution are compiled with zlib support – pacey Nov 7 '10 at 10:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.