apache2.2 on centOS-5.3 not allowing web upload > 2GB

cogagni
cogagni used Ask the Experts™
on
I'm trying to web upload a file larger than 2GB but apache isn't showing the exact upload size of the file and suddenly connection is resetting. I have these configurations:

php.ini

upload_max_filesize = 100000M
post_max_size = 100000M
max_execution_time = 19600
max_input_time = 19600
memory_limit = 768M

httpd.conf:

Added LimitRequestBody 0 on my VirtualHost config.

Hoping for your help,

Oliver

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Kerem ERSOYPresident

Commented:
Hi,
It seems that you're using a 32 bit Centos. The max file size is 2 GB in 32 bit systems. For larger sizes you'll need to upgrade to a 64 bit version of your OS.

Cheers,
K.

Author

Commented:
Is this an OS issue or just apache? If apache, can I use lighttpd?
Kerem ERSOYPresident

Commented:
I guess this is an OS issue. If you're using an 32 bit os (uname -a) will show you the platform.

For Apache has corrected the problem with lfiles larger than 2G with version 2.2.4 (2.2.7 is best) and later.

You can double check it with FTP and make sure that you can not download a 2GB+ file using FTP.

Cheers,
K.
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Kerem ERSOYPresident

Commented:
Is there any news ?

Author

Commented:
checking

Author

Commented:
where is this documented? the client is POSITIVE they uploaded large files before...

"It seems that you're using a 32 bit Centos. The max file size is 2 GB in 32 bit systems. For larger sizes you'll need to upgrade to a 64 bit version of your OS."
President
Commented:
> where is this documented? the client is POSITIVE they uploaded large files before...

I've already sent you the way to verify. Try to upload the same file with FTP. This is not an issue with the OS if you could succeed. (I tell you this because you don't provide me about your OS as I've requested earlier: uname -a  will show the platform.

CentOS says ext3 filesystems have 3TB file/ Filesystem sizes:
http://www.centos.org/product.html

However there is an "acknowledged" state bug reports that PHP has a 2 GB file restriction (not compiled with large file support) in 32-bit platforms and that bug does not affect the RHEL. This applies to both CentOS v4 and  v5 x86_32.

Did you recently updated your PHP? If this is the case it seeme that the previous version was either custom built or come from a different Repo.

Will you please post the contents of your:
ls -al /etc/yum.repos.d cat /etc/yum.repos.d/CentOS-Base.repouname -arpm -qa | egrep -i "php|^httpd"

Cheers,
K.

Author

Commented:
i can download and upload > 2gb file without any problem.

ls -al /etc/yum.repos.d
total 20
drwxr-xr-x  2 root root 4096 Oct  5 12:19 .
drwxr-xr-x 50 root root 4096 Mar  4 06:36 ..
-rw-r--r--  1 root root 2323 Oct  5 12:17 CentOS-Base.repo
-rw-r--r--  1 root root  626 Mar 16  2009 CentOS-Media.repo
-rw-r--r--  1 root root  195 Oct  5 12:20 utterramblings.repo

cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


uname -a

 Linux hostname.com 2.6.18-128.2.1.el5.028stab064.8PAE #1 SMP Sat Oct 31 11:13:46 MSK 2009 i686 i686 i386 GNU/Linux

rpm -qa | egrep -i "php|^httpd"
httpd-2.2.3-22.el5.centos
php-pdo-5.2.11-jason.1
php-5.2.11-jason.1
php-gd-5.2.11-jason.1
php-apc-3.0.19-1.jason.1
php-pear-1.4.9-4.el5.1
php-common-5.2.11-jason.1
php-cli-5.2.11-jason.1
php-mysql-5.2.11-jason.1
php-devel-5.2.11-jason.1


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial