The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Zend Opcode Cahe and php 5.4+

Discussion in 'Workarounds and Optimization' started by rligg, Jan 10, 2015.

  1. rligg

    rligg Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    277
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. rligg

    rligg Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    277
    Likes Received:
    0
    Trophy Points:
    16
    [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)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. rligg

    rligg Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    277
    Likes Received:
    0
    Trophy Points:
    16
    Hmm, there is only site. Anyway that is not the case. free -m shows 4.6GB free.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. rligg

    rligg Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    277
    Likes Received:
    0
    Trophy Points:
    16
    Yes I have seen that. I have the same setup, but I can't use php 5.5 yet.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  9. rligg

    rligg Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    277
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator

Share This Page