Question: I'm trying to upload a file larger than 2GB to a local PHP 5.3.4 server. I've set the following server variables:

```none
memory_limit = -1
post_max_size = 9G
upload_max_filesize = 5G

```

However, in the error\_log I found:

> 
> PHP Warning: POST Content-Length of 2120909412 bytes exceeds the limit of 1073741824 bytes in Unknown on line 0
> 
> 
> 

Can anyone tell me why this keeps failing please?

Answer: 
Maybe this can come from apache limitations on POST size:

<http://httpd.apache.org/docs/current/mod/core.html#limitrequestbody>

It seems this limitation on 2Gb can be greater on 64bits installations, maybe. And i'm not sure setting 0 in this directove does not reach the compilation limit. see for examples that thread:

<http://ubuntuforums.org/archive/index.php/t-1385890.html>

Then do not forget to alter as well the max\_input\_time in PHP.

But you are reaching high limits :-) maybe you could try a rich client (flash? js?) on the browser side, doing the transfer in chunks or some sort of FTP things, with progress indicators for the user.
We've had the same problem: uploads stopped at 2GB.

Under SLES (SUSE Linux Enterprise Server) 11 SP 2, php53 was the problem.

Then we added a new repository that has php54:
<http://download.opensuse.org/repositories/server:/php/SLE_11_SP2/>

and upgraded to that, we now can upload 5GB :-)