On 06/09/2010 12:32 PM, Boris Epstein wrote:
Eero,

I've got 4 GB of swap. At the moment all 4 GB less 100 MB of it is
available. That logically should be enough to allow me to upload a 2
GB file, I would think.
  

Looking at the bugtracker: http://bugs.centos.org/view.php?id=3118

"PHP is not built with large file support on 32 bit x86, probably other 32 bit platforms, all releases of CentOS 4
Additional Information I verified that upstream does not have this problem. It is severe enough for my use (scientific processing) that I am changing OS."

While the report is for CentOS4, it may be related to your problem.

--
Benjamin Franz