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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > problem with php/lsws restart

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2005, 01:57 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Default problem with php/lsws restart

Hi there,

my problem is only partly lsws-related but I guess you can help most in this case.

First my configuration, I'm running lsws with php-fcgi on one machine and the database-server on another one.
Two days ago my database-server went down and needed a reboot.
Lsws/PHP seems to have timed out while that was the case.

Still even as the db-server got up again it still returned the timeout.
Seems like the php-children have still been busy/hanging in some strange state.
I needed to stop lsws, manually kill the php-processes (lsws wasn't able to do this and was hanging too because of that) and restart lsws to get it running again.

Anyone ever seen such a problem? Any idea on how to work around it?

Thanks,

Thomas
Reply With Quote
  #2  
Old 06-25-2005, 04:44 PM
Test Test is offline
New Member
 
Join Date: Jun 2005
Posts: 9
Default Re: problem with php/lsws restart

Quote:
Originally Posted by ts77
H
I needed to stop lsws, manually kill the php-processes (lsws wasn't able to do this and was hanging too because of that) and restart lsws to get it running again.
the same problem,
Fast CGI instances are not terminated (sig TERM is a must) by litespeed after shutdown/restart.
Reply With Quote
  #3  
Old 06-26-2005, 01:16 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Well, I can't say that it never works.
If the fcgi-processes are spawned by lsws *and* correctly working, then they are killed for me.
Its just that in the case mentioned above (the php-processes are hanging) they are not getting killed or at least not successfully killed.
Reply With Quote
  #4  
Old 06-27-2005, 09:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thomas,

Do you have to kill PHP processes with "SIGKILL" or just "SIGTERM"?
LSWS always try to stop all fcgi processes stated by itself with "SIGTERM" before it quits. So, unless LSWS lost tracking to PID of those processes, or those processes does not respond to "SIGTERM", those processes should be killed.

I guess for some reason lsws lost tracking to those PID.

I will take a closer look on this issue.
Reply With Quote
  #5  
Old 06-27-2005, 10:23 PM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
a "killall php" was enough which is SIGTERM as far as I know.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
command line restart of individual rails apps instead of webserver? nathanc Ruby/Rails 3 01-16-2008 10:43 AM
3.0RC1 won't do a graceful restart on FreeBSD 6.1 phallstrom General 6 01-17-2007 01:40 PM
problems if Auto Restart is off ts77 Bug Reports 1 10-01-2006 03:48 PM
Graceful Restart sometimes works, sometimes fails sid137 Bug Reports 4 09-07-2006 04:50 PM
.htaccess problem xinn Install/Configuration 1 12-07-2005 12:01 PM


All times are GMT -7. The time now is 08:43 AM.



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