DeveloperSide.NET Forums
February 24, 2020, 11:16:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2.0.49 - Broken mod_deflate, anyone? on: September 12, 2004, 10:45:15 PM
Well, I fixed it :)

I commented out the bottom two lines:

 # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
# Matt commented out the two lines below on 9th Sept 2004
# AddEncoding x-compress Z
# AddEncoding x-gzip gz tgz

Thanks for all your help, and I hope this helps someone else with any similar problems :)
Matt
2  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2.0.49 - Broken mod_deflate, anyone? on: September 11, 2004, 11:55:16 PM
Quote from: "admin"
If your client can pull other files from your system, then he/she might be lying for some reason.  That or the client has something on his system that is causing this.


The way I see it is that you can never really know the exact circumstances of a problem someone else is having. He's using standard software (Windows XP, IE, Firefox, no download managers) but then there could be a multitude of other influential factors.

Quote from: "admin"
If your client cannot get any files with the zip/rar extension from your server, then the path the packets are taking could have a bad node in it.
Is the corruption consistent each time?  Are the md5sums the same for each download, or does he/she get a different hash each time?  What is the name of this file, and have you tried changing it, or the extension?


I haven't asked him to repeat the tests. The file ends in .rar and is composed of English characters, with an underscore in the middle. It's only about 10 characters long.

I'll see about repeating the tests.

Thanks,
Matt :)
3  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2.0.49 - Broken mod_deflate, anyone? on: September 11, 2004, 10:50:42 PM
Quote from: "admin"
All you have to do is view Apache's httpd.conf file to see if there is a "LoadModule" line with "mod_gzip or gzip_module" in it.


I did that originally... that's how I knew it's not installed. :) It wasn't compiled in either.

Matt
4  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2.0.49 - Broken mod_deflate, anyone? on: September 11, 2004, 09:04:03 PM
Quote from: "admin"
Are you sure that your Apache is not loading mod_gzip ?  I read your usenet post, you are not the admin of this server, nor have root access?


I am the owner of RetroWeb.net, a web hosting company. I have root access to all my servers. I'm not an expert at Linux, which is why I pay sysadmins to handle that. I do have some Linux knowledge however (I run in on a couple of workstations at home, including my main workstation which I'm typing on now) so I help out where I can. Trying to find an answer to this problem is a good example.

Matt :)
5  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2.0.49 - Broken mod_deflate, anyone? on: September 10, 2004, 07:39:23 AM
Thing is, he isn't having any problems downloading RAR or ZIP files from other servers in the same manner.

And I figured maybe my case was just an exception.

Matt
6  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2.0.49 - Broken mod_deflate, anyone? on: September 10, 2004, 12:53:59 AM
The problem is that when I downloaded it, I had no problems :)

It's a straight link - no PHP output or anything. I'll see what I can do with the logs - thanks :)

Matt
7  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2.0.49 - Broken mod_deflate, anyone? on: September 09, 2004, 11:06:09 PM
Quote from: "admin"
If the file was "corrupt" the md5sum would have changed when going from server to client.

You cannot have a good file match a corrupted file's md5sum.


The file was the same on the server as it was on my client's machine before he uploaded it. When he downloaded it back to his PC, it was corrupt and the md5sum had changed, thus proving that the corruption was caused in the process of downloading.

Quote from: "admin"
Test your file to make sure its good.  Turn off Apache's mod_deflate (or in your case mod_gzip ?) and see if it works.  Also check the headers, on the client/recieving side.

BTW, if you are using Apache to compress files, you did not turn ON any of PHP's compression directives under php.ini/cnf?


The file works fine before it's downloaded. We don't have mod_gzip installed. I'll try to get my client to check the headers.

We're not using any compression options in php.ini:

Code:
zlib.output_compression = Off
                                                                               
; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
;zlib.output_handler =



Any other ideas? Thanks for the help!

Matt :)
8  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2.0.49 - Broken mod_deflate, anyone? on: September 09, 2004, 05:45:52 PM
Hi,

I have a similar problem. I'm using Apache 1.3.31 and PHP 4.3.8. RAR and ZIP files are corrupt when downloaded.

The md5sum for the file on the server was the same as the md5sum on my client's PC, so the file is being corrupted by Apache. My client has tried testing it using Firefox and Internet Explorer on Windows XP. He's not using any download managers.

Any ideas would be gratefully appreciated! :)

Matt
RetroWeb.net
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!