Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.

learn more… | top users | synonyms

4
votes
5answers
3k views

Enabling gzip compression in IIS and having it take effect

We've enabled Gzip compression on the server in IIS (IIS6). We've run iisreset. It just doesn't want to take effect. We had this before on another server, and after a little while, it just started ...
1
vote
2answers
223 views

What reasons (if any) are there to *not* enable gzip compression for your web server?

Specifically I am working with IIS7, in case there are platform specific reasons, but I am curious in general. I know gzip compression is more CPU intensive for both the server and the client, but it ...
1
vote
4answers
4k views

how to copy & gzip files individually over ssh

I'd like to transfer a directory with uncompressed files over using ssh, gzip'ing them individually along the way. Can anyone recommend a simple oneliner to achieve this? eg. fileA.ext -> ssh/pipe ...
1
vote
1answer
562 views

Turn off gzip compression for one virtual host

I'm running into a problem where I think PHP deprecation errors are causing the headers to be malformed, causing a 330 error. If I disable error reporting for E_DEPRECATION, the error disappears, so ...
0
votes
3answers
119 views

Uncompressing gzip file

I have compressed a folder using following command: tar czvf arch.tar.gz dirname/ When I try to uncompress it using following command tar xvfz arch.tar.gz then it uncompress folder but contents ...
5
votes
1answer
349 views

Apache deflates .xml.gz files

I noticed an error in google webmaster tools regarding a gzipped version of a sitemap. Turns out the sitemap.xml.gz file is gzipped twice: one upon creation (as it should be) and another time when ...
0
votes
2answers
6k views

gunzip: invalid compressed data--format violated

Problem definition: I transferred a tar.gz file from a Linux machine to a Windows partition.The Windows partition has mounted with the Linux server as cifs. OS : Red Hat Enterprise Linux Server ...
3
votes
1answer
6k views

How can I enable GZIP compression in Jetty?

I have a Jetty server which does not have compression enabled (I tested this here). How can I enable compression?
1
vote
1answer
416 views

making apache serve unzipped content from zipped files

I need to serve a bunch of gzipped MIDI files from an Apache server. The catch is that when the user requests them, the response should come back with a "audio/midi" content-type header and not a gzip ...
-1
votes
1answer
1k views

Unable to decompress a .gz file on centos. gunzip: filename.tar.gz: not in gzip format

I am trying to install the latest apache ant to centos. I did as follows: wget http://ant.apache.org/bindownload.cgi/apache-ant-1.8.2-bin.tar.gz gzip -d apache-ant-1.8.2-bin.tar.gz and I get the ...
1
vote
2answers
94 views

Is it possible to store MySQL data as comressed?

Is it possible to store MySQL data compressed? Option for that in MySQL?
0
votes
1answer
996 views

Gzip Compression IIS7 with Proxy Not working

I have seen posts with GZIP compression not working on IIS7, but none seemed to help in my case. I have a proxy server that sends the request to my website on IIS7. I have the following in web.config ...
3
votes
2answers
400 views

Erratic gzip compression on IIS7.5

This is best demonstrated when we just try to request a single CSS file from our IIS server. Sometimes we get the whole uncompressed file back. We'll wait 5 seconds and refresh, then the CSS file is ...
0
votes
1answer
330 views

gzip, deflate are not showing while accessing from a proxy

We enabled gzip and deflate in our local server and it shows correctly in phpinfo like shown below HTTP_ACCEPT_ENCODING gzip,deflate,sdch We installed the same in our client's server and there was ...
3
votes
2answers
2k views

How can I disable gzip in apache on Ubuntu 10.10?

I'm trying to figure out how to disable or uninstall gzip from my Ubuntu server. This is to support a package of buggy software that breaks when it's trying to do a crazy call to a css file (don't ...
1
vote
1answer
119 views

gzipped tar archive file paths

I am creating a tar.gz file containing some files and folders as follows: /bin/tar cfz /usr/local/backups/mybackup-${DATENAME}.tar.gz /usr/local/backups/db-${DATENAME}.sql.gz ...
0
votes
3answers
204 views

When I extract .tar.gz all of the files within the folders have the .gz suffix

I have recently begun using a VPS and am learning linux along the way. I have compressed a folder using tar, then I gzipped it and used scp to send it to my server. When I decompress using tar -zxvf ...
2
votes
1answer
544 views

IIS7 is gzipping files but not serving the gzipped version

By following a number of helpful blog posts I have configured IIS to gzip my static files. I have even enabled Failed Request Tracing and filtered to the 200 status code, and I can see the successful ...
1
vote
1answer
509 views

How to get Apache (on Debian squeeze) to compress JS/CSS

I am running Debian squeeze and cannot get Apache to compress JavaScript or CSS. HTML, however, is being compressed. In the conf files in the sites-enabled dir, I've got the following: <Location ...
2
votes
1answer
549 views

Apache inflate application/ with mod_filter

I need to prevent pdf objects from being gzipped. Really, this only needs to take place if the request is from the Mozilla browser (but since I can't get something as seemingly simple as no-gzip for ...
3
votes
3answers
7k views

Linux gzip multiple subdirectories into separate archives?

How would I be able to compress subdirectories into separate archives? Example: directory subdir1 subdir2 Should create subdir1(.tar).gz and subdir2(.tar).gz
2
votes
3answers
6k views

“tar cfz” versus “tar cf - | gzip”: are they different? (or how to improve a backup)

I want to speed up my backup done with tar cfz, the common way to do it. But day by day my backed up files grow so it becomes slower. I was thinking to take advantage of the several cores available ...
0
votes
2answers
3k views

I am trying gzip compression for my javascripts and css file but for css it is not working

I am trying gzip compression for my js and css files. but for css it is not working. also when i do page speed analysis using firefox page speed it asks to enable gzip compression on your server. it ...
0
votes
2answers
1k views

How to disable chunking in apache?

When using mod_deflate in Apache2, Apache will chunk gzipped content, setting the Transfer-encoding: chunked header. Is there any setting that would change Apache's default behavior, and have Apache ...
2
votes
2answers
175 views

Backup file format that enables easy access of specific files?

I need to upgrade a Server and there have to make a compressed backup of a lot of directories. The question is: Which format should I use? tar.gz, cpio? Both compression and decompression processes ...
0
votes
2answers
3k views

TAR command to extract a single file from a .tar.gz

Does anyone have a command syntax for extracting 1 file from a .tar.gz that also allows me to place the extracted file in a certain directory? I have Google'd this and get too many variations with a ...
5
votes
3answers
3k views

How to list content from a tar file without recursion?

I've a tar (gz, bzip) file and want to see its content, but not recursively. This is: The "first level" in the file. I already know how to see content: tar -ztf file.tar.gz But it's recursive!! ...
0
votes
3answers
142 views

Ran Gzip command and broke my site, need help with reverse command

In trying to back up a website on an apache server this am I ran the following: gzip -r /var/www/httpd/vhosts/mysite.com/ mysite.gzip Trying to backup the path to the gzip file. Howvever, after ...
2
votes
2answers
164 views

is gunzip atomic?

I have two scripts that watch a directory (postgres warm-standby) one script copies compressed files into the directory and then uncompresses them. the other script watches for the uncompressed ...
2
votes
5answers
1k views

Backup MySQL database and gzip

I'm trying to get a little more usefulness out of my MySQL backups. I'm wanting to gzip my backup when it's completed from a cron job. Here's the script I have so far to do the backup. #!/bin/sh ...
0
votes
1answer
1k views

Apache mod_deflate enable?

I'm using the follow code in .htaccess. It works nicely in localhost, however in production server i'm having troubles with gzip compression. AddOutputFilterByType DEFLATE text/css text/html ...
1
vote
2answers
2k views

IIS6: Serve static content gzipped for clients that support it

How can I configure IIS to automatically serve static resources (pictures, javascript, css and so on) compressed for clients that support it - and serve "normal" content for clients that does not ...
0
votes
4answers
1k views

How to tar.gz *.php, *.txt, *.inc, *.js, *.css, *.php3 files?

I want to backup my server, but not bother with images /videos etc. how can i tar.gz all those types of files i want (basically text files)?
1
vote
1answer
3k views

How to change the HTTP GZIP Compression Level for Dynamic Content in IIS7?

I would like to change the HTTP GZIP compression level in IIS7 from 0 to 4 as mentioned in these articles: http://weblogs.asp.net/owscott/archive/2009/02/22/iis-7-compression-good-bad-how-much.aspx ...
2
votes
2answers
2k views

Use mod_deflate or gzip for centos5+apache

I'd like to compress the JS and CSS (perhaps also html?) files that I'm sending out. I've read a lot about gzip and mod_deflate but I'm not really sure what's the best to use? I'm looking for the ...
0
votes
5answers
826 views

gunzip “No space left on device”

I have a gzipped file that Ubuntu reports is 2,119,952,848 bytes in size. When I try to gunzip on a mount with 12GB free space, I get the error "No space left on device". Here's where it gets really ...
3
votes
6answers
2k views

Does gunzip work in memory or does it write to disk?

We have our log files gzipped to save space. Normally we keep them compressed and just do gunzip -c file.gz | grep 'test' to find important information but we're wondering if it's quicker to keep ...
0
votes
1answer
259 views

How to enable gzip?

I would like to enable GZIP throughout my whole website. What would be the best way to do it? Would it be through .htaccess? Any pointers on how to do this would be greatly appreciated.
1
vote
2answers
867 views

View rotated log files Mac OS X Server (*.?.gz)

Trying to look at some of our older log files and find they're cryptic "Unix Executable Files". This particular server I'm working with is an older Mac OS X Server (10.4 - Tiger). -rw-r----- 1 ...
3
votes
2answers
1k views

nginx is not using gzip to talk to backend servers

Our web servers are running IIS 7 and are configured to compress dynamic and static content. When I hit these servers directly, gzip compression works. I recently placed nginx in front of them, ...
1
vote
1answer
385 views

Why Can't I Pre-Zip Server Files?

It's just good common sense to have your server gzip your files before they send them to users (I use Nginx) Is there anyway to save the server some overhead and pre-zip those files for the server, ...
0
votes
2answers
375 views

What are the command-line options for un-tarring a tar.gz file to a specific directory?

This is one of those things I don't quite do often enough to memorize. I thought it would be nice to have the answer here so I (and maybe others with as poor a memory as me) can star it. What ...
5
votes
1answer
325 views

How does a web server/the http protocol handle version control and compression?

When a client browser requests a file from the web server, I know that some kind of check is performed, because the files needed to serve the web page may already be cached by the web browser. So, if ...
4
votes
3answers
1k views

Incorrect gzipping of http requests, can't find who's doing it

We're seeing some very strange mangling of HTTP responses, and we can't figure out what is doing it. We have an app server handling JSON requests. Occasionally, the response is returned gzipped, but ...
3
votes
2answers
721 views

gzip js on apache

the following configuration in httpd.conf only gzip css and html, not javascript, any idea? AddOutputFilterByType DEFLATE text/html text/plain text/javascript text/css AddOutputFilterByType DEFLATE ...
0
votes
1answer
993 views

Normalize Accept-Encoding via HAProxy for optimized Squid hit rate

Our website infrastructure uses HAProxy for load balancing, a Squid cluster for caching, and application data is on an IIS cluster. We load balance HAProxy by URI to optimize the Squid hit-rate, but ...
3
votes
3answers
8k views

How do I turn on gzip in Apache2?

I simply did : sudo aptitude install apache2 And that's how my server is set up. No extra modules, no nothing. I'm on ubuntu jaunty.
4
votes
2answers
152 views

How GZipped contents are transfered on the web?

I heard that static contents like CSS and JavaScript can be better delivered in GZip format. And Content Developer Network (CDN) always does so. However I don't understand how the format works. First ...
2
votes
1answer
1k views

IIS6 not doing gzip compression when including Via header in request

I have some static content going through a CDN. I am using IIS6's built in compression (gzip & deflate) for static content and this is working fine when I request it. However, when the CDN makes ...
3
votes
2answers
100 views

enabled gzip — running out of threads

I enabled gzip in apache2 and started load testing -- I am seeing a lot of keep alives state busy state -- 95% of the web server worker threads are being used at any given time While CPU is ok, I am ...