![]() |
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! |
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. |
No PHP process gets started though. Any ideas?
|
Please try the trouble shooting tips at the end of the wiki
http://www.litespeedtech.com/support...wiki:php:lsapi |
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? |
Have you tried to run
lsws/fcgi-bin/lsphp... -i from command line, I think it wont run at all. |
| All times are GMT -7. The time now is 02:32 PM. |