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

Go Back   LiteSpeed Support Forums > External Applications > PHP > 503 Errors - APC with cPanel matched PHP binary

Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2009, 01:08 PM
ziggy95 ziggy95 is offline
Member
 
Join Date: Feb 2009
Posts: 16
Default 503 Errors - APC with cPanel matched PHP binary

Hi there. I have successfully installed litespeed and matched the PHP 5.2.8 binary from cPanel. I have installed APC and included it in php.ini correctly.

When I restart litespeed, I confirm that APC is added to phpinfo().

PHP pages load fine for a few seconds, and then quickly go to 503 errors. There is nothing recorded to stderr.log.

In error_log it says:

2009-02-18 12:36:59.838 [NOTICE] [97.77.97.51:1386-0#APVH_sitename.com:lsapi] Redirect: #2, URL: /vbseo.php
2009-02-18 12:36:59.838 [ERROR] [97.77.97.51:1386-0#APVH_sitename.com:lsapi] detect loop redirection.
2009-02-18 12:37:00.829 [INFO] [97.77.97.51:1389-0#APVH_sitename.com] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:00.831 [INFO] [97.77.97.51:1389-0#APVH_sitename.com] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:00.833 [INFO] [97.77.97.51:1389-0#APVH_sitename.com] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:00.833 [NOTICE] [97.77.97.51:1389-0#APVH_sitename.com] oops! 503 Service Unavailable
2009-02-18 12:37:00.833 [NOTICE] [97.77.97.51:1389-0#APVH_sitename.com] Content len: 0, Request line:
GET / HTTP/1.1
2009-02-18 12:37:00.834 [INFO] [97.77.97.51:1389-0#APVH_sitename.com:lsapi] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:00.835 [INFO] [97.77.97.51:1389-0#APVH_sitename.com:lsapi] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:00.836 [INFO] [97.77.97.51:1389-0#APVH_sitename.com:lsapi] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:00.836 [NOTICE] [97.77.97.51:1389-0#APVH_sitename.com:lsapi] oops! 503 Service Unavailable
2009-02-18 12:37:00.836 [NOTICE] [97.77.97.51:1389-0#APVH_sitename.com:lsapi] Content len: 0, Request line:
GET / HTTP/1.1
2009-02-18 12:37:00.836 [NOTICE] [97.77.97.51:1389-0#APVH_sitename.com:lsapi] Redirect: #2, URL: /vbseo.php
2009-02-18 12:37:00.836 [ERROR] [97.77.97.51:1389-0#APVH_sitename.com:lsapi] detect loop redirection.
2009-02-18 12:37:32.870 [INFO] [66.249.70.226:45454-0#APVH_sitename.com] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:32.871 [INFO] [66.249.70.226:45454-0#APVH_sitename.com] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:32.873 [INFO] [66.249.70.226:45454-0#APVH_sitename.com] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:32.874 [NOTICE] [66.249.70.226:45454-0#APVH_sitename.com] oops! 503 Service Unavailable
2009-02-18 12:37:32.874 [NOTICE] [66.249.70.226:45454-0#APVH_sitename.com] Content len: 0, Request line:
GET /members/sexculer.html HTTP/1.1
2009-02-18 12:37:32.874 [NOTICE] [66.249.70.226:45454-0#APVH_sitename.com] Redirect: #1, URL: /vbseo.php
2009-02-18 12:37:32.875 [INFO] [66.249.70.226:45454-0#APVH_sitename.com:lsapi] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:32.878 [INFO] [66.249.70.226:45454-0#APVH_sitename.com:lsapi] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:32.880 [INFO] [66.249.70.226:45454-0#APVH_sitename.com:lsapi] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #0, Connection reset by peer!
2009-02-18 12:37:32.880 [NOTICE] [66.249.70.226:45454-0#APVH_sitename.com:lsapi] oops! 503 Service Unavailable
2009-02-18 12:37:32.880 [NOTICE] [66.249.70.226:45454-0#APVH_sitename.com:lsapi] Content len: 0, Request line:
GET /members/sexculer.html HTTP/1.1
2009-02-18 12:37:32.880 [NOTICE] [66.249.70.226:45454-0#APVH_sitename.com:lsapi] Redirect: #3, URL: /vbseo.php
2009-02-18 12:37:32.880 [ERROR] [66.249.70.226:45454-0#APVH_sitename.com:lsapi] detect loop redirection.

I would like to use APC, but must disable it until I can resolve this.
Reply With Quote
  #2  
Old 02-18-2009, 01:09 PM
ziggy95 ziggy95 is offline
Member
 
Join Date: Feb 2009
Posts: 16
Static pages continue to load fine. At first I thought maybe the problem was a conflict with vbseo.php, but then after a while even phpinfo() goes to 503.
Reply With Quote
  #3  
Old 02-18-2009, 02:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Most likely caused by "Memory soft/hard limit" for lsphp5 external app, increase the limit, or reduce the cache memory size for APC.
http://www.litespeedtech.com/docs/we.../#memSoftLimit
Reply With Quote
  #4  
Old 02-18-2009, 03:17 PM
ziggy95 ziggy95 is offline
Member
 
Join Date: Feb 2009
Posts: 16
I tried increasing soft/hard for lsphp5 to from 250M/300M to 2500M/2500M and restarted and still get same result. Do I need to change it somewhere else also?
Reply With Quote
  #5  
Old 02-18-2009, 03:28 PM
ziggy95 ziggy95 is offline
Member
 
Join Date: Feb 2009
Posts: 16
I also tried increasing it in the Server > Security tab. No avail.
Reply With Quote
  #6  
Old 02-18-2009, 06:34 PM
ziggy95 ziggy95 is offline
Member
 
Join Date: Feb 2009
Posts: 16
Any help you can provide would be appreciated.
Reply With Quote
  #7  
Old 02-18-2009, 08:43 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Do you get anything in stderr.log?
Reply With Quote
  #8  
Old 02-19-2009, 12:17 PM
ziggy95 ziggy95 is offline
Member
 
Join Date: Feb 2009
Posts: 16
Quote:
Originally Posted by mistwang View Post
Do you get anything in stderr.log?
Only if there is an error in php.ini. When APC is active there is nothing logged to stderr.log.
Reply With Quote
  #9  
Old 02-19-2009, 12:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Are you using a VPS?
What is the cache memory size for APC in php.ini? maybe you need to reduce the cache memory size, especially when you use PHP suEXEC. Maybe you should disable PHP suEXEC if you use VPS to host a few web sites, not for shared hosting.
Reply With Quote
  #10  
Old 02-19-2009, 12:27 PM
ziggy95 ziggy95 is offline
Member
 
Join Date: Feb 2009
Posts: 16
It is a dedicated server cluster, one web server and one database server. I am not using suEXEC. I haven't specified cache size in php.ini for APC, I'll look into that, though I am doubtful that the default would cause overload - especially since I tried raising limit to 3,000MB.
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 06:32 PM.



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