LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-22-2010, 10:27 AM   #1
cyberio
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0
Unhappy Apache2 + PHP5 and Fileuploads via POST > 1GB


Hi all !

my server :
ubuntu jaunty 9.04 32bits
apache2 2.2.11-2ubuntu2.5
php5 5.2.6.dfsg.1-3ubuntu4.5

I have a problem uploading large files :
from 0 to 1 048 576 000 octet (1000mega) : OK
greater... KO... i mean even no file uploading temporaly in /tmp

I have tried using "jyraphe" or "openupload" in the server part and from mozilla or IE in the client part.... always the same thing...

php.ini :
post_max_size = 5G
upload_max_filesize = 5G

I even set "LimitRequestBody 10000000000" in /etc/apache2/sites-available/default thinking the default value (not set OR 0) didnt work but...

ALWAYS THE SAME THING grrrrrr !

Please help me (even the openupload dev is interrested in the answer)

CYBERIO
 
Old 02-26-2010, 08:25 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I found a couple of possibilities,

Quote:
If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size
Quote:
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.
hth
 
Old 03-01-2010, 03:18 AM   #3
cyberio
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Well this seems more an hard limit to me... remember what i have said :
"even no file uploading temporaly in /tmp" !!

less than 1go : file immediatly uploading temporaly in /tmp
more... nothing !!

??? im getting crazy with this thing lol

memory_limit should be larger than post_max_size ? memory_limit of 2Go ? i dont think so but i ll try and tell you...
(tested -> KO)

i heard about the 32 bit limit but cant get the point with this 1go limit...

anyway thanks for trying to help me

Last edited by cyberio; 03-01-2010 at 09:47 AM.
 
Old 03-01-2010, 09:38 AM   #4
cyberio
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
news !!

testing with a simple perl script i CAN upload files more than 1Go...

I am i right if i say that this means that PHP is the guilty apache extension for this bug ?
 
Old 03-01-2010, 10:25 AM   #5
cyberio
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
RESOLVED !

In fact it s a 2Go 32 bit hard limit

Setting those parameters to 5Go while only make php to go to default value... 1Go...

grrrr
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2+php5 sunescan Linux - Software 2 12-18-2008 04:54 AM
Apache2 and php5 barrythai Mandriva 2 05-08-2007 08:09 AM
Apache2 and PHP5 SpiderIRE Linux - Software 3 09-30-2005 03:25 PM
Apache2 and PHP5 rul3r Slackware 7 09-11-2005 05:21 PM
Apache2 + PHP5.0.3 24jedi *BSD 1 07-21-2005 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration