View previous topic :: View next topic |
Author |
Message |
jahve n00b
Joined: 25 Aug 2002 Posts: 44 Location: Uppsala, Sweden
|
Posted: Mon Mar 22, 2004 6:38 pm Post subject: Apache2 can not handle 2G+ files |
|
|
When trying to download a 4.3G mac disk image, Apache/2.0.48 fails strangly and writes Code: | (75)Value too large for defined data type: access to /backup/XXX.dmg failed | in my error_log file.
Actually it won't even list my backup image in the apache-generated index, while other files (with same file extension) in the same directory shows up without problem.
Google searches gives me discussions on the subject and it seems to be an issue with lacking large file support (LFS) in linux and/or Apache.
http://www.suse.de/~aj/linux_lfs.html
http://www.apacheweek.com/features/vendorversions
It seems like SuSE, Debian among other distros are building Apache with LFS-support. But I want a Gentoo solution to this matter. Where do I go from here? _________________ Interoperating only with yourself is just a standards-compliant form of masturbation. /Mark Pilgrim |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Wed Mar 24, 2004 10:06 pm Post subject: |
|
|
I added
Code: |
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
|
to my CFLAGS, and then it seems to kinda work, but Mozilla doesn't like it. |
|
Back to top |
|
|
cpdsaorg Guru
Joined: 16 Oct 2003 Posts: 359
|
Posted: Wed May 09, 2007 8:15 am Post subject: |
|
|
question about your fix... I am running apache-2.0.58-r2
does your entire system have to be compiled with that flag our can you just compile apache and take it back out?? _________________ PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB |
|
Back to top |
|
|
xces Guru
Joined: 11 Oct 2002 Posts: 515
|
Posted: Thu May 10, 2007 10:12 pm Post subject: |
|
|
cpdsaorg wrote: | does your entire system have to be compiled with that flag our can you just compile apache and take it back out?? |
Since Apache httpd 2.2.4 was just added to ~ARCH, you shouldn't need to set these flags anymore. |
|
Back to top |
|
|
mudrii l33t
Joined: 26 Jun 2003 Posts: 789 Location: Singapore
|
Posted: Thu May 10, 2007 11:54 pm Post subject: |
|
|
apache has an limitation on 32 bits OS if your CPU support 64 bit you will not have eny more this problem. _________________ www.gentoo.ro |
|
Back to top |
|
|
xces Guru
Joined: 11 Oct 2002 Posts: 515
|
Posted: Fri May 11, 2007 2:48 pm Post subject: |
|
|
mudrii wrote: | apache has an limitation on 32 bits OS |
Not if you use Apache httpd 2.2... |
|
Back to top |
|
|
|