DevHeads.net

apache - upload files bigger than 2Go

Hi,

I need to upload files larger than 4.4Gb (iso DVD) on CentOS (5.5 x64)
http server (httpd-2.2.3-43.el5.centos)

On the apache server set in my /etc/php.ini

upload_max_filesize = 4900M

post_max_size = 5000M

In my httpd.conf I set :

LimitRequestBody 0

I'm using firefox and/or chrome client for upload a file with 4.2gb size
on the server.

But it doesn't work.

Everything work fine and I can upload my file if it's not greater than
2gb.

I see that there are a technical apache limitation.

<a href="http://httpd.apache.org/docs/current/mod/core.html#limitrequestbody" title="http://httpd.apache.org/docs/current/mod/core.html#limitrequestbody">http://httpd.apache.org/docs/current/mod/core.html#limitrequestbody</a>

how to get around this limitation for upload a DVD iso (4.2Gb)?

Regards.

Comments

Re: apache - upload files bigger than 2Go

By John Doe at 01/14/2014 - 12:33

Maybe try the answer there:
<a href="http://stackoverflow.com/questions/13574542/4gb-http-file-uploads-using-jquery-file-upload-apache-and-php" title="http://stackoverflow.com/questions/13574542/4gb-http-file-uploads-using-jquery-file-upload-apache-and-php">http://stackoverflow.com/questions/13574542/4gb-http-file-uploads-using-...</a>

JD

Re: apache - upload files bigger than 2Go

By Peter Brady at 01/13/2014 - 16:35

On 13/01/14 3:05 PM, MOKRANI Rachid wrote:
Maybe this is overkill for you but I run file sender for very similar tasks:

<a href="https://www.assembla.com/spaces/file_sender/wiki" title="https://www.assembla.com/spaces/file_sender/wiki">https://www.assembla.com/spaces/file_sender/wiki</a>

And have shunted a couple of hundred gig over it no problems. Its great
for shunting volumes of university and research data around.

<snip>

Wouldn't be an underlying files system and/or volume limit your hitting
would it?

Also +1 for just sftp/rsync if you already have shell access.

Cheers
-pete

Re: apache - upload files bigger than 2Go

By SilverTip257 at 01/13/2014 - 13:22

On Mon, Jan 13, 2014 at 9:05 AM, MOKRANI Rachid <rachid. ... at ifpen dot fr>wrote:

If you have shell access, why don't you just rsync the file?
Either normal rsync or rsync via ssh.

Or ftp.

See my suggestions above.