Zend Opcode Cahe and php 5.4+
I know it is not yet officially supported, but APC was giving me serious problems. I replaced it with Zend Opcode cache following an online guide. It works very well, in fact better than APC. The major problem I am having is that I can't clear the cache from any of the opcache guis I have tried. They all cause segfault 11. I have to restart apache to get things working again. I was wondering if anyone is using this setup. I'm using
php 5 handler as DSO.
Suexec and Ruid 2 on
I was wondering if anyone has run into this?
Thanks.
-
Hello :) What's the specific error message you see in /usr/local/apache/logs/error_log when this occurs? Thank you. 0 -
[Wed Jan 14 11:16:11 2015] [notice] child pid 10405 exit signal Segmentation fault (11) [Wed Jan 14 11:16:11 2015] [notice] child pid 10465 exit signal Segmentation fault (11) [Wed Jan 14 11:16:11 2015] [notice] child pid 10600 exit signal Segmentation fault (11) [Wed Jan 14 11:16:11 2015] [notice] child pid 10601 exit signal Segmentation fault (11) [Wed Jan 14 11:16:11 2015] [notice] child pid 10602 exit signal Segmentation fault (11) [Wed Jan 14 11:16:11 2015] [notice] child pid 10603 exit signal Segmentation fault (11) [Wed Jan 14 11:16:11 2015] [notice] child pid 10604 exit signal Segmentation fault (11) [Wed Jan 14 11:16:11 2015] [notice] child pid 10605 exit signal Segmentation fault (11) 0 -
You may want to verify that your server is not running out of memory when this happens. You can use a command such as "free -m" at the time of the error. Thank you. 0 -
Hmm, there is only site. Anyway that is not the case. free -m shows 4.6GB free. 0 -
Are you able to use PHP 5.5 at this time? If so, there's a workaround referenced here: [url=http://features.cpanel.net/responses/easyapache-zend-opcache-for-php-55]EasyApache: Zend Opcache for PHP 5.5 | cPanel Feature Requests Thank you. 0 -
Yes I have seen that. I have the same setup, but I can't use php 5.5 yet. 0 -
You may want to consult with a qualified system administrator if you are unable to resolve the issue, as it's not something that's supported. Other than that, you may find some discussion of this on the following feature request helpful: [url=http://features.cpanel.net/responses/add-zend-opcache-on-easyapache-for-php-53-and-54_2]Add Zend OPcache on EasyApache for PHP 5.3 and 5.4 | cPanel Feature Requests Thank you. 0 -
Just in case someone runs into this issue. Make sure all other cache systems are disabled completely. After some deep digging and looking closely at the php info pages, it was apprent that APC cache was still running in some capacity. Even though I disbaled it in /usr/local/lib/php.ini, it was still being invoked by a custom php.ini directive in /usr/local/lib/php.ini.d/$user.ini Once I figured this out, I was able to get everything working. 0 -
I am happy to see the issue has been resolved. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
9 comments