LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   APC - "503 Service Unavailable" (http://www.litespeedtech.com/support/forum/showthread.php?t=4575)

MikeDVB 01-13-2011 04:56 PM

APC - "503 Service Unavailable"
 
Upon rebuilding PHP 5.2.14 via LSWS's control panel and building in APC support, when enabling apc.so we get 503 errors:
Quote:

2011-01-13 19:55:27.181
INFO
[114.43.135.244:2678-0#APVH_redacted.com] connection to [/tmp/lshttpd/APVH_redacted.com_Suphp.sock.923] on request #1, confirmed, 1, associated process: 21537, running: 0, error: Connection reset by peer!
2011-01-13 19:55:27.181
NOTICE
[114.43.135.244:2678-0#APVH_redacted.com] Request in process stage, fail with 503
2011-01-13 19:55:27.181
INFO
Remove pid: 21537
2011-01-13 19:55:27.181
NOTICE
[114.43.135.244:2678-0#APVH_redacted.com] oops! 503 Service Unavailable
Suggestions?

webizen 01-13-2011 06:22 PM

Is there anything in stderr.log when this happens? What's your server environment?

MikeDVB 01-13-2011 08:44 PM

Quote:

Originally Posted by webizen (Post 22804)
Is there anything in stderr.log when this happens? What's your server environment?

I didn't check the stderr.log, but I can watch it when I enable apc to see if anything hits it.

Beyond that, it's a CentOS 5 OpenVZ VPS.

skippybosco 01-14-2011 01:57 AM

@webizen:

In reading through the forums here I tested updating the php.ini with:
Code:

apc.enabled = 1
apc.shm_size = 48
apc.include_once_override = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX

This made things a little better in that it is not consistently throwing 503 , but still seeing them >30% of the time so I ended up having to disable the APC extension.

Aside from the server states Michael provided above, the website itself is a Wordpress 3.0.4 installation running WP Super Cache.

PHPINFO() suggests the APC bundled with LITESPEED is the beta version (3.1.4). Other threads in this forum suggest that was the root of their 503 errors and reverted to 3.0.9 stable.

That being said, looks like 3.1.6 is the the latest STABLE of APC.

Regarding stderr.log the consistent errors being thrown are:

Quote:

PHP Startup: Unable to load dynamic library '/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613/mailparse.so'
PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files

skippybosco 01-14-2011 06:39 PM

After a bit of research (and much effort by Mike) we may have this sorted out.

Even after using 3.019 of APC we were still seeing issues, turns out a conflict with ZEND was the culprit in this case. Once the ZEND extension was disabled everything has been running pretty smooth.

I'll monitor over over the next couple of days to ensure it is stable.. After which we can revisit if we should a) Move to LITESPEED bundled 3.14 beta b) Move to 3.16 STABLE c) Be thankful and leave well enough alone :-)

Thanks,
Frank

csdco 01-20-2012 03:22 PM

Thanks for posting your info. Please post back if you have any updates. We need Zend & APC, so disabling APC may be the only route we can take :(

skippybosco 01-20-2012 04:00 PM

Disabling APC did not work for us, it was necessary to disable Zend. APC is working without issue for us.

Quote:

Originally Posted by csdco (Post 31624)
Thanks for posting your info. Please post back if you have any updates. We need Zend & APC, so disabling APC may be the only route we can take :(



All times are GMT -7. The time now is 01:24 PM.