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
  #11  
Old 03-22-2011, 08:09 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
yes, need trace the root cause of litespeed restart. litespeed itself not restart often -- it must relate to the php scripts on your server.

do you have mod_security rules enabled? RC5 has big changes on support mod_security 2.5 rules. while RC4 and 4.0.20 is more compatible. it's not likely 4.1RC4 can't switch back to 4.0.20 and have to reinstall.
Reply With Quote
  #12  
Old 03-22-2011, 09:24 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
after version switch, wait for a few seconds and refresh the page such as web console version manager page to see the new version. this is to let existing admin console php processes (on the old version) to exit and newly started php processes to detect the new version.
Reply With Quote
  #13  
Old 03-23-2011, 06:23 AM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Quote:
Originally Posted by NiteWave View Post
yes, need trace the root cause of litespeed restart. litespeed itself not restart often -- it must relate to the php scripts on your server.

do you have mod_security rules enabled? RC5 has big changes on support mod_security 2.5 rules. while RC4 and 4.0.20 is more compatible. it's not likely 4.1RC4 can't switch back to 4.0.20 and have to reinstall.
I did have mod_security rules enabled. I turned them off temporarily to see if it helps with the restarting problem.

I looked through the log but nothing stands out in it when litespeed restarted, so I'm not sure where to even start looking to try and fix this problem.
Reply With Quote
  #14  
Old 03-23-2011, 06:41 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
still recommend you test on 4.1RC4, or 4.1RC5+disable mod_security.

4.1 also has better support on upload progress bar which is a must when upload large files.
Reply With Quote
  #15  
Old 03-23-2011, 06:45 AM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Quote:
Originally Posted by NiteWave View Post
still recommend you test on 4.1RC4, or 4.1RC5+disable mod_security.

4.1 also has better support on upload progress bar which is a must when upload large files.
I will try 4.1RC5 again with no mod_security and let you know.

But I'm not using the upload_progress php thing, I'm using a flash based uploader that just works with a regular PHP upload script.
Reply With Quote
  #16  
Old 03-23-2011, 08:16 AM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
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.
Reply With Quote
  #17  
Old 03-23-2011, 10:34 AM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Well that didn't make much of a difference either. 4.1RC4 still restarts about every hour or so.

This is from the log when it restarted last.

http://uploadingit.com/file/w8pjquf9.../restart+1.png

http://uploadingit.com/file/2jl7qvao.../restart+2.png
Reply With Quote
  #18  
Old 03-23-2011, 11:48 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Please do followings to help troubleshooting:
  1. Change 'graceful restart timeout' => 7200 (from -1)
  2. Enable debug logging to see what happen to the upload:
    1. Enable debug logging (Web Console -> Configuration -> Server -> Log):
      Log Level: DEBUG
      Debug Level: MEDIUM or HIGH
      Graceful restart lsws to make it effective.
    2. grep /usr/local/apache/logs/error_log with your IP address during the upload

Last edited by webizen; 03-23-2011 at 12:02 PM..
Reply With Quote
  #19  
Old 03-23-2011, 01:47 PM
dlewis23 dlewis23 is offline
Member
 
Join Date: Dec 2009
Posts: 31
Quote:
Originally Posted by webizen View Post
Please do followings to help troubleshooting:
  1. Change 'graceful restart timeout' => 7200 (from -1)
  2. Enable debug logging to see what happen to the upload:
    1. Enable debug logging (Web Console -> Configuration -> Server -> Log):
      Log Level: DEBUG
      Debug Level: MEDIUM or HIGH
      Graceful restart lsws to make it effective.
    2. grep /usr/local/apache/logs/error_log with your IP address during the upload
I tried that, but I don't see anything in the debug that is different from what was in the log before. I've been checking the error log and there is nothing while i'm uploading. And it still restarts.

I don't really have a problem with uploading I can get a file to finish and process correctly now, but I can't stop the server from restarting. Every time litespeed restarts it stalls the upload.
Reply With Quote
  #20  
Old 03-23-2011, 07:14 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
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.
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 10:12 AM.



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