LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Large PHP Uploads Stall/Fail

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2011, 06:32 PM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Default Large PHP Uploads Stall/Fail

I'm having a problem with large PHP uploads. For some reason I can't upload files greater then about 180 MB.

Right now I'm trying to upload a file that is 700 MB through PHP, but it seems to stall as soon as I start the upload. It will go to 0.03% and not any further. The transfer speed is super low, either 8 KB/s or 12 KB/s. My connection will do 180 KB/s.

I know the script works because If I switch back to Apache I can upload a 2 GB file with no problem. I have both PHP upload settings set to 2048 MB. 256 MB PHP memory limit.

Litespeed tmp is set to a second 1TB drive with plenty of free space for the uploads. I did a few searches on the forum but didn't really come up with any kind of solutions.

Does anyone have any settings or ideas for me to try?

Thanks
Reply With Quote
  #2  
Old 03-21-2011, 08:42 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
See if this helps.

http://www.litespeedtech.com/support...ead.php?t=4147
Reply With Quote
  #3  
Old 03-22-2011, 06:32 AM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Quote:
Originally Posted by webizen View Post
I saw that and looked through it. I am using his settings from his first post, I wasn't sure about the connection timeout at 10000 since I have a ton of small images being downloaded.

But I set them all the same. And still have the same problem.

Uploads also get really slow after a little bit of uploading. Im uploading a 200 MB file right now and it started at 175 KB/s and now its down to about 20 KB/s and I use users complaining about the same thing happening to them.
Reply With Quote
  #4  
Old 03-22-2011, 08:02 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
try 4.1RC4 or 4.1RC5, see if any difference.
Reply With Quote
  #5  
Old 03-22-2011, 01:14 PM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Quote:
Originally Posted by NiteWave View Post
try 4.1RC4 or 4.1RC5, see if any difference.
Well I tried that, but it screwed everything up. All of my rewrite rules seemed to stop working, no one could download anything. So I had to completely uninstall litespeed, but I couldn't do that because I couldn't stop the litespeed service.

Had to restart, then uninstall, then reinstall lsws.

Is there anything else I should look into because Id rather not like to go thought that again and have an hour of downtime.
Reply With Quote
  #6  
Old 03-22-2011, 01:39 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Try increase your memory_limit in php.ini to 512M and memory_limit (soft/hard) in lsphp5 to 500M.
Reply With Quote
  #7  
Old 04-27-2011, 08:13 PM
peterpiper812 peterpiper812 is offline
New Member
 
Join Date: Apr 2011
Posts: 7
Yes it is chmod 777.

Max Request Body Size (bytes) = 500M
Reply With Quote
  #8  
Old 04-27-2011, 08:23 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
is mod_security installed? maybe some mod_security rules blocks upload/

for test, change
Quote:
$target = "upload/";
to something else, like "abc", see if any difference.

If still problem, please PM the access info of the server.
Reply With Quote
  #9  
Old 04-27-2011, 08:45 PM
peterpiper812 peterpiper812 is offline
New Member
 
Join Date: Apr 2011
Posts: 7
It uploads small files so I know mod_security isn't blocking it.

We have disabled the firewall and tested still no go.

What exactly do you need access to?
Reply With Quote
  #10  
Old 04-27-2011, 08:47 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
ssh root access
Reply With Quote
Reply

Tags
php uploads

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:12 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.