Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

EasyApache 4 + Opcode Caching

Discussion in 'EasyApache' started by hicom, Oct 18, 2016.

Tags:
  1. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    282
    Likes Received:
    2
    Trophy Points:
    168
    Hi,

    is EasyApache 4 + Mod_Ruid + PreFork supports ZendGuard OpCache ?

    Every time we enable ea-php56-php-opcache , it does not install. CentOS 7 + cPanel 11.58 b26.

    As in it doesn't show up in PHP.ini or phpinfo , as if it was never enabled. Thank you.
     
  2. cPLevey

    cPLevey Technical Analyst Supervisor
    Staff Member

    Joined:
    Dec 3, 2015
    Messages:
    44
    Likes Received:
    8
    Trophy Points:
    83
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hey @hicom,

    Package ea-php56-php-opcache is obsoleted by ea-php56-php-zendguard. If you try installing ea-php56-php-opcache, it should automatically install the zendguard RPM instead.

    You should also see the opcache module listed in the zenguard.ini file located here:
    Code:
    [/opt/cpanel/ea-php56/root/etc/php.d]# grep opcache zendguard.ini
    zend_extension="/opt/cpanel/ea-php56/root/usr/lib64/php/modules/opcache.so"
    Keep in mind, with EasyApache 4 modules are loaded from individual .ini files located in /opt/cpanel/ea-phpXX/root/etc/php.d/

    Some great resources:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    282
    Likes Received:
    2
    Trophy Points:
    168
    Thank you David. To enable opcache to work efficiently, do we include the OpCache config lines in zendguard.ini as such ?

    Code:
    ; Enable Zend Guard Loader extension module
    zend_extension="/opt/cpanel/ea-php56/root/usr/lib64/php/modules/ZendGuardLoader.so"
    zend_extension="/opt/cpanel/ea-php56/root/usr/lib64/php/modules/opcache.so"
    opcache.memory_consumption=128
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=4000
    opcache.revalidate_freq=60
    opcache.fast_shutdown=1
    opcache.enable_cli=1
    
     
  4. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    282
    Likes Received:
    2
    Trophy Points:
    168
    Ok, I figured it out. It turns out that Mod_Ruid2 while it installs and configures with OpCache/ZendGuard, the extension is useless for caching. Mod_Ruid2 does not offer caching capabilities.

    Any module other than Mod_Ruid2 has good compatibility and can protect from SymLink issues?

    Tamouh
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    There are a few potential alternatives. Discussion of the topic is found at:

    EasyApache4 symlink race protection

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice