Link to home
Start Free TrialLog in
Avatar of cogagni
cogagni

asked on

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

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

Avatar of Kerem ERSOY
Kerem ERSOY

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.
Avatar of cogagni

ASKER

Is this an OS issue or just apache? If apache, can I use lighttpd?
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.
Is there any news ?
Avatar of cogagni

ASKER

checking
Avatar of cogagni

ASKER

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."
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cogagni

ASKER

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