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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Trying to debug a 503 with PHP

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2008, 01:24 AM
digx digx is offline
New Member
 
Join Date: Jul 2007
Posts: 3
Default Trying to debug a 503 with PHP

Hey guys,

I'm trying to debug a 503 error with PHP. I'm pretty sure I have the default settings for LSWS set up and I compiled PHP using LSWS. I get nothing in stderr.log

Here's what I get in the INFO log:

INFO [66.176.**.**:60756-0#my.website.com] ExtConn timed out while processing.
INFO [66.176.**.**:60756-0#my.website.com] connection to [uds://tmp/lshttpd/my.website.com_lsphp.sock] on request #0, error: Connection timed out!
NOTICE [66.176.**.**:60756-0#my.website.com] oops! 503 Service Unavailable
NOTICE [66.176.**.**:60756-0#my.website.com] Content len: 0, Request line:
GET / HTTP/1.1

Any ideas on how to debug this? Need more info?

Thanks!
Reply With Quote
  #2  
Old 09-02-2008, 08:33 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You should "strace/truss/ktrace" the lsphp5 process handling the request.
try a "phpinfo" page to get the lsphp5 process fired up, then strace it with command

strace -p <pid_of_lsphp5>

Then send the request with problem.
Reply With Quote
  #3  
Old 10-01-2008, 09:57 PM
digx digx is offline
New Member
 
Join Date: Jul 2007
Posts: 3
No PHP process gets started though. Any ideas?
Reply With Quote
  #4  
Old 10-01-2008, 10:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Please try the trouble shooting tips at the end of the wiki

http://www.litespeedtech.com/support...wiki:php:lsapi
Reply With Quote
  #5  
Old 10-09-2008, 03:23 AM
digx digx is offline
New Member
 
Join Date: Jul 2007
Posts: 3
Here's my error.log - Nothing is popping up in the stderror.log

2008-10-08 22:53:04.593 [INFO] [myhostname_lsphp] pid list size: 1
2008-10-08 22:53:04.593 [INFO] [myhostname_lsphp] add child process pid: 29633
2008-10-08 22:53:04.601 [INFO] Remove pid: 29633
2008-10-08 22:53:04.601 [INFO] Pid: 29633 associated with [myhostname_lsphp]
2008-10-08 22:53:04.601 [INFO] [myhostname_lsphp] pid list size: 2
2008-10-08 22:53:04.601 [INFO] [myip:63018-0#myhostname] add child process pid: 29634
2008-10-08 22:53:04.601 [INFO] [myhostname_lsphp] pid list size: 1, pid stop list size: 0
2008-10-08 22:53:04.609 [INFO] Remove pid: 29634
2008-10-08 22:53:04.609 [INFO] Pid: 29634 associated with [myhostname_lsphp]
2008-10-08 22:53:04.609 [INFO] [myhostname_lsphp] pid list size: 2
2008-10-08 22:53:04.609 [INFO] [myip:63018-0#myhostname] add child process pid: 29635
2008-10-08 22:53:04.609 [INFO] [myhostname_lsphp] pid list size: 1, pid stop list size: 0
2008-10-08 22:53:04.616 [INFO] Remove pid: 29635
2008-10-08 22:53:04.616 [INFO] Pid: 29635 associated with [myhostname_lsphp]
2008-10-08 22:53:04.616 [INFO] [myhostname_lsphp] pid list size: 2
2008-10-08 22:53:04.616 [INFO] [myip:63018-0#myhostname] add child process pid: 29636
2008-10-08 22:53:04.617 [INFO] [myhostname_lsphp] pid list size: 1, pid stop list size: 0
2008-10-08 22:53:04.624 [INFO] Remove pid: 29636
2008-10-08 22:53:04.624 [INFO] Pid: 29636 associated with [myhostname_lsphp]
2008-10-08 22:53:04.624 [INFO] [myhostname_lsphp] pid list size: 0, pid stop list size: 0
2008-10-08 22:53:04.624 [NOTICE] [myhostname_lsphp] stop worker processes
2008-10-08 22:53:04.624 [INFO] [myhostname_lsphp] 1 request being processed, kill external app later.
2008-10-08 22:53:14.024 [INFO] [myip:63018-0#myhostname] No request delivery notification has been received from LSAPI process:-1, possible run away process.
2008-10-08 22:53:14.024 [INFO] [myip:63018-0#myhostname] connection to [uds://tmp/lshttpd/myhostname_lsphp.sock] on request #0, Connection timed out!
2008-10-08 22:53:14.024 [NOTICE] [myip:63018-0#myhostname] oops! 503 Service Unavailable
2008-10-08 22:53:14.024 [NOTICE] [myip:63018-0#myhostname] Content len: 0, Request line:
GET / HTTP/1.1

I tried the troubleshooting but nothing helped. Any ideas?
Reply With Quote
  #6  
Old 10-09-2008, 07:29 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Have you tried to run
lsws/fcgi-bin/lsphp... -i

from command line, I think it wont run at all.
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 10:47 AM.



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