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

Go Back   LiteSpeed Support Forums > External Applications > PHP > [solved] 408 Request Time-out

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2011, 01:50 AM
jeckdenial jeckdenial is offline
Member
 
Join Date: Nov 2010
Posts: 21
Default [solved] 408 Request Time-out

Hello there,

I am using Litespeed server Current Version: 4.0.19 with my CENTOS 5.5 x86_64 till now all was working well with my PHP ver 5.3.2

But since 2 days one of my website just keep loading and end with 408 Request Time-out.

While my other website hosted on same server works file.

I am not very familiar with Litespeed and this is bringing me a lot of lost with website.

I thought there should be some issue with PHP so i switch to apache and website is up again. Then i upgrade PHP to different version then i switch back to Litespeed and the same problem was there.

Can you please let me know where the things are going wrong?

Regards
Jeck

Last edited by NiteWave; 02-13-2011 at 07:20 AM..
Reply With Quote
  #2  
Old 02-13-2011, 02:15 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
what's the setting of
admin console->Server->Tuning->Connection Timeout (secs)?
Reply With Quote
  #3  
Old 02-13-2011, 02:21 AM
jeckdenial jeckdenial is offline
Member
 
Join Date: Nov 2010
Posts: 21
Quote:
Originally Posted by NiteWave View Post
what's the setting of
admin console->Server->Tuning->Connection Timeout (secs)?
Hello NiteWave,

Thanx for reply.

Thats is set to 60 sec.

Regards
Jeck
Reply With Quote
  #4  
Old 02-13-2011, 02:25 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
it's too short. that means if a php script running over 60 seconds, lsws may think it's hanging and kill the php process, and issue 408 time out error.

please check if that php script run for a long time?

if it's the case, increase the time out.
Reply With Quote
  #5  
Old 02-13-2011, 02:32 AM
jeckdenial jeckdenial is offline
Member
 
Join Date: Nov 2010
Posts: 21
Quote:
Originally Posted by NiteWave View Post
it's too short. that means if a php script running over 60 seconds, lsws may think it's hanging and kill the php process, and issue 408 time out error.

please check if that php script run for a long time?

if it's the case, increase the time out.
i can understand that but till now all was set to fine and my website was even loading in just about 2-3 sec.

I havnt changed any value in lsws or even in sever. This happened since 2 days.

so if i increase this time that mean my website still will take more than 60 sec to load. that what i am not expecting from lsws.

Update:

I have increased to 120 sec. i will give you report on how long php is running
Reply With Quote
  #6  
Old 02-13-2011, 02:39 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
Quote:
so if i increase this time that mean my website still will take more than 60 sec to load
no. if php scripts only need 2-3 seconds to complete, increasing timeout won't affect these scripts at all. only affect those scripts which need above 60 seconds to complete.

can you figure out which url cause 408 time out error ? or many URLs ?
Reply With Quote
  #7  
Old 02-13-2011, 02:41 AM
jeckdenial jeckdenial is offline
Member
 
Join Date: Nov 2010
Posts: 21
yes php wait for that long and again giving same error even if i have make that to 120.

One thing i have found that .html works well if i make new page with html that is no problem.

While my whole website is on php. From index page to even single php page same thing happens.
Reply With Quote
  #8  
Old 02-13-2011, 02:48 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
strange. how about phpinfo() page? 408 error as well ?
Reply With Quote
  #9  
Old 02-13-2011, 02:59 AM
jeckdenial jeckdenial is offline
Member
 
Join Date: Nov 2010
Posts: 21
Quote:
Originally Posted by NiteWave View Post
strange. how about phpinfo() page? 408 error as well ?
I make test.php for phpinfo(). you right the same with that as well.

Update:

After long like 7-8 min the page appear. but that still load like hell.

Last edited by jeckdenial; 02-13-2011 at 03:03 AM..
Reply With Quote
  #10  
Old 02-13-2011, 03:06 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
maybe rewrite cause a infinite loop or loop in a mod_security rule?

can disable all mod_security rules temporarily if it's the latter case.

for former case, in docroot .htaccess, put
rewriteengine off
in first line.

then access test.php again.
Reply With Quote
Reply

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 04:43 AM.



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