Hi all, I am trying to run a web-based PHP application on a CentOS 5 32-bit machine that requires me to upload large files. The machine also happens to have little RAM (256MB). I have no problem setting my upload limit ( upload_max_filesize ) to 1 GB but for some reason 2 GB or above seems to be no go. Would anybody know why? Could it be one of the many 32-bit vs 64-bit issues? Thanks. Boris.
2010/6/9 Boris Epstein <borepstein at gmail.com>:> Hi all, > > I am trying to run a web-based PHP application on a CentOS 5 32-bit > machine that requires me to upload large files. The machine also > happens to have little RAM (256MB). > > I have no problem setting my upload limit ( upload_max_filesize ) to 1 > GB but for some reason 2 GB or above seems to be no go. Would anybody > know why? Could it be one of the many 32-bit vs 64-bit issues?add more swap and memory ? -- Eero
> I have no problem setting my upload limit ( upload_max_filesize ) to 1 > GB but for some reason 2 GB or above seems to be no go. Would anybody > know why? Could it be one of the many 32-bit vs 64-bit issues?upload_max_size is not the only variable that would affect uploading. You may also want to look at the settings for: post_max_size -- uploading files is done through the HTTP POST mechanism so this has to be at least as big as upload_max_size memory_limit -- If memory limits are enabled, this also must be larger then upload_max_size It may also be a 32bit limit as well: (from php.net) Note: PHP allows shortcuts for bit values, including K (kilo), M (mega) and G (giga). PHP will do the conversions automatically if you use any of these. Be careful not to exceed the 32 bit signed integer limit (if you're using 32bit versions) as it will cause your script to fail. -- Drew "Nothing in life is to be feared. It is only to be understood." --Marie Curie
Plus at that point you might also be hitting problems with browser behaviour.... since you say it is a web app.... 2 gigs is a heck of a post... have you looked into any other solutions such as an uploader in flash or java capable of resuming transfers and streamed (partial) transfers rather than a single post? Sent from Android mobile On Jun 9, 2010 8:45 PM, "Whit Blauvelt" <whit at transpect.com> wrote:> > 2010/6/9 Boris Epstein <borepstein at gmail.com>:> >> I have no problem setting my upload limit ( upload_max_filesize ) to 1 > >> GB but for some rea...Other PHP settings, like post_max_size, also can affect large uploads. Google is your friend on this. Whit _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.c... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100609/274d5b4b/attachment-0001.html>