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

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
3answers
2k views

Attempted gzip of directory applied gzip to each file individually

I tried to gzip a directory with the following command: gzip -r /home/path/to/backups/mydirectory.gz /home/site/public_html/ I was expecting to see a .gz file show up inside ...backups containing ...
2
votes
2answers
177 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
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 ...
1
vote
1answer
535 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 ...
0
votes
2answers
210 views

Apache isn't deflating my website home page

I have the following 3 rules at /.htaccess AddOutputFilterByType DEFLATE text/html text/plain text/css application/json AddOutputFilterByType DEFLATE text/javascript application/javascript ...
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
144 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
167 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 ...
1
vote
1answer
752 views

Gzip pre-compression

I'm using mod_deflate to compress my .css and .js files on the fly: <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css ...
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 ...
2
votes
1answer
552 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 ...
7
votes
3answers
12k views

Content-Length not sent when gzip compression enabled in Apache?

I would really appreciate some help understanding this Apache behaviour. I am communicating to PHP from an iPhone Objective-C app in application/json. Gzip compression is enabled on the server, and ...
1
vote
3answers
2k views

Help me enable gzip compression on nginx

Here's the gzip section from my current nginx.conf: gzip on; gzip_http_version 1.1; gzip_vary on; gzip_comp_level 6; gzip_proxied any; gzip_types text/plain text/html text/css application/json ...
2
votes
2answers
1k views

Faster zlib alternatives

I wonder, if there are any faster builds of zlib around with more advanced optimizations? If it's possible to optimize it using SSE instructions or Intel C++ compiller, or some trick which were ...
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 ...
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)?
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
854 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
3k 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
260 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
899 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 ...
0
votes
1answer
2k views

How to disable Gzip compression by PHP script on FastCGI

We used this PHP code to disable gzip compression for specific scripts @apache_setenv('no-gzip', 1); But our admin migrated to FastCGI and this does not work anymore. How to do it? Thanks
1
vote
1answer
392 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
378 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 ...
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, ...
5
votes
1answer
333 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 ...
1
vote
7answers
6k views

Compressing and copying large files on Windows Server?

I've been having a hard time copying large database backups from the database server to a test box at another site. I'm open to any ideas that would help me get this database moved without having to ...
0
votes
1answer
129 views

Does PS3 browser handle gzipping? [closed]

Not sure if this would be a correct place to post, but here it goes. I've been getting reports form people who try accessing my site from a PS3, that every page appears like a jumble of random ...
14
votes
3answers
27k views

How to enable either Gzip or Deflate compression via .htaccess?

How to enable either Gzip or Deflate compression via .htaccess and which one is best these days? Code examples needed.
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
726 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
2answers
4k 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 ...
0
votes
1answer
1k 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.
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 ...
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 ...
5
votes
1answer
1k views

Howto: create file with current date and time on linux

I have a cron job for creating a gzip file: mysqldump... | gzip -c > myfile..sql.gz I want myfile to be of the format "time_date.sql.gz" How do I create file with the current date and time? ...
2
votes
2answers
9k views

Apache - How to disable gzip content encoding (eg DEFLATE) for one set of URLs?

I have a ubuntu apache webserver and I have enabled mod_deflate to gzip all the content. However there's one folder I'd like to disable the mod_deflate for. I was going to do something like this: ...
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 ...
39
votes
7answers
44k views

mysqldump to a tar.gz

Usually after dumping a MySQL database with mysqldump command I immediately tar/gzip the resultant file. I'm looking for a way to do this in one command: So from this: mysqldump dbname -u root -p ...
5
votes
4answers
9k views

how to enable iis 7 dynamic content compression?

I've turned on dynamic content compression in IIS 7, but Fiddler is showing that my dynamic pages are still being served without content-encoding: gzip. Static content compression is working fine on ...
1
vote
3answers
306 views

Can Apache 2 be configured to start sending gzipped data early?

We have Apache set up to gzip compress html pages before they are sent to the client browser. However, some of our pages are slowish to generate and it seems that Apache is holding on until it has ...
3
votes
3answers
8k 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
0
votes
1answer
2k views

nginx - combine js files, cache and serve gzipped

I'm using nginx to serve static files. I have several js files and different client require different combination of the available files. Is it possible that nginx will combine the files in the ...
0
votes
1answer
539 views

Apache output compression working for CSS/JS but not PHP

I have this in my .htaccess: <IfModule mod_deflate.c> <FilesMatch "\.(js|css|php)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> Testing files on my site, it seems ...
1
vote
1answer
334 views

bzip2 and compressed stream concatenation

With gzip you can do something like this: gzip -c file1 > output.gz gzip -c file2 >> output.gz gzip -c file3 >> output.gz and when you uncompress output.gz it will contain ...
1
vote
1answer
294 views

Can automatic decompression be configured in .htaccess?

I've got a bunch of static files (eg index.xhtml) in an Apache2 web root. I don't have control over the server's configuration, but am allowed to modify .htaccess in the web root. I would like to ...
2
votes
4answers
3k views

Break up a dd image into multiple files

I'm doing some data recovery from a hard disk. The disk has about 300GB of data on it, but I lack another hard drive that has 300GB of free space. I have three HDs, with 150, 40, and 120 GB free. ...