Questions tagged [gzip]

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.

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.

Gzip is based on the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding. DEFLATE was intended as a replacement for LZW and other patent-encumbered data compression algorithms, which, at the time, limited the usability of compress and other popular archivers.

"Gzip" is often also used to refer to the gzip file format, which is:

  • a 10-byte header, containing a magic number, a version number and a time stamp
  • optional extra headers, such as the original file name
  • a body, containing a DEFLATE-compressed payload
  • an 8-byte footer, containing a CRC-32 checksum and the length of the original uncompressed data

source: wikipedia

334 questions
0
votes
2 answers

CRC Failed, File is broken, using php system command to tar a directory

Can anybody see a problem with the below PHP code? Or have any ideas to troubleshoot a solution as to why whenever I download the backup file.tar.gz and try to open it using 7zip on windows... that I keep being told CRC failed, file is…
darkAsPitch
  • 1,931
  • 4
  • 25
  • 42
0
votes
3 answers

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 of folder remains compressed. Before compression…
0
votes
1 answer

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 not such entry in phpinfo in the client's server.…
Rt007
0
votes
2 answers

IIS6 wont compress js and css

So recently I configured IIS6 to compress files I now have most files compressing apart from my JavaScript and CSS files. Does anyone have an idea what maybe causing them not to be compressed. I know this due to Yslow Add-on and the compression…
Matt
  • 111
  • 3
0
votes
3 answers

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 .tar.gz, all of the files within the folder still…
mikeyrocks
  • 101
  • 1
0
votes
3 answers

How to pre gzip static JS

my site is running IPB 3.1.4 and I want to pre-compress my .js files. I have ssh root access and need the command to gzip the js directory and the code for htaccess. My htaccess: Options -Indexes Options…
user71793
  • 1
  • 1
0
votes
2 answers

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 means gzip compression is not working. Here is the…
user68275
  • 1
  • 1
  • 1
0
votes
2 answers

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 set a Content-length header instead of chunking…
yclevine
  • 101
  • 1
  • 1
0
votes
3 answers

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 completeion i go to the website url and get the apache…
Martin
  • 1
0
votes
1 answer

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 application/x-javascript application/javascript
Pedro Gil
  • 103
  • 1
  • 3
0
votes
4 answers

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)?
tarnoob
0
votes
6 answers

gzip to bmp images on the fly?

I havent decided on a technology yet but i wanted to ask. BMP images are large, i compressed a 3mb image to 50k. Browsers can decode gzip text, so would it be possible to gzip bmp on my server and have the user request mysite.com/images/test.bmp and…
user274
0
votes
5 answers

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 strange... the file is a compressed mysqldump so…
Eric J.
  • 772
  • 2
  • 14
  • 28
0
votes
1 answer

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.
George
0
votes
1 answer

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
Josef Sábl
  • 111
  • 1
  • 4