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
  #21  
Old 03-24-2011, 08:55 AM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Quote:
Originally Posted by NiteWave View Post
litespeed restarting frequently is not normal -- usually it doesn't. it should relate to large file upload. let's work together to resolve this issue.

4.1RC4 just updated --- please do a "Force Reinstall".

to watch
1.do't restart frequently, or have some improvements

2.even restart, upload will complete without break.
I did a Force Reinstall of 4.1RC4 and while it did stay up longer, it still restarted. It had a uptime of about 1 hour 55 minutes before it did a restart this time. I'm trying to upload a large file and see if it breaks right now. I will update once its finished.
Reply With Quote
  #22  
Old 03-24-2011, 10:22 AM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Just an update. I was able to upload a 850 MB file with no problem just now using 4.1RC4 and I think litespeed did restart close to the end of the upload.

I'm going to try with a 1.5 GB file and see how it goes.

Thank you for all your help so far.
Reply With Quote
  #23  
Old 03-24-2011, 12:34 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
Originally Posted by dlewis23 View Post
Letting you know I tried 4.1RC5 again with no mod_security and it caused the same problem. Totally messed up mod_rewrite so none of my pages would load.

I installed 4.1RC4 and that worked great. I'm running that right now and I will let you know if it continues to restart.
Can you give us details about your mod_rewrite rules. We will try to reproduce and fix the problem with 4.1RC5. 4.1 release will be based off 4.1RC5, need to address it before the official release.
Reply With Quote
  #24  
Old 03-24-2011, 12:46 PM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Quote:
Originally Posted by mistwang View Post
Can you give us details about your mod_rewrite rules. We will try to reproduce and fix the problem with 4.1RC5. 4.1 release will be based off 4.1RC5, need to address it before the official release.
I sent you a PM with my mod_rewrite rules. Not sure if you need anything else.

Also I would like to add, that I can't upload any files larger then 1GB in size. When I select them and start the upload, the uploader just sits doing nothing. Any idea why this would happen?
Reply With Quote
  #25  
Old 03-24-2011, 03:27 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
Originally Posted by dlewis23 View Post
I sent you a PM with my mod_rewrite rules. Not sure if you need anything else.
That's in document root .htaccess, right?
Better sending us a the whole .htaccess file, if there is .htaccess in parent directory, send us that as well.
It also may be related to mod_security rules if used. send us a copy of your mod_security rule.
Last, we need the URL that should be rewritten but broken under 4.1RC5.
If there is anything that may help replicating your problem in our lab, please also let us know.
You can send those information to bug@litespeed...

Quote:
Also I would like to add, that I can't upload any files larger then 1GB in size. When I select them and start the upload, the uploader just sits doing nothing. Any idea why this would happen?
Right now, LiteSpeed has hard limit of 1GB for HTTP request body, we will bump it up to around 2GB.
Reply With Quote
  #26  
Old 04-27-2011, 07:50 PM
GOT GOT is offline
Member
 
Join Date: Apr 2011
Posts: 19
I have checked the settings in this thread and others referenced. However, I am pretty new to Lightspeed and I'm not even sure I am looking in all the right places.

I have a very basic upload script here:

http://www.x x x x.com/uploadtest/

The php code is simply:

Code:
<?php
$target = "upload/";
$target = $target . basename( $_FILES['uploaded']['name']) ;
$ok=1;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
}
else {
echo "Sorry, there was a problem uploading your file.";
}
?>
Very small files (a few K) upload fine. a 2 MB file (which should upload pretty quickly) causes the page to hang for a few minutes and then says something about the connection being terminated.

I would really appreciate someone pointing me very specifically where I should look on this.

Last edited by NiteWave; 04-27-2011 at 09:30 PM..
Reply With Quote
  #27  
Old 04-27-2011, 07:57 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
please refer:
http://www.litespeedtech.com/support...adprogress_bar

what's the value of upload_max_filesize ?
can create a phpinfo() page to get it.
Reply With Quote
  #28  
Old 04-27-2011, 08:00 PM
GOT GOT is offline
Member
 
Join Date: Apr 2011
Posts: 19
We can't compile 5.3.x as it breaks our site and we are live on it now.

phpinfo page is here

http://www.x x x.com/phpinfo.php

upload_max is set to 550 MB. I'm pretty sure the php.ini is all set right for this. I'm assuming its a lightspeed setting(s) that I am missing.

Last edited by NiteWave; 04-27-2011 at 09:31 PM..
Reply With Quote
  #29  
Old 04-27-2011, 08:08 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
php settings looks ok.

1.Server –>Tuning–>Max Request Body Size (bytes) ?

2.check permission of upload/:
Quote:
$target = "upload/";
try and see:
chmod 777 upload/
Reply With Quote
  #30  
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
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 03:25 PM.



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