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.

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:
    272
    Likes Received:
    0
    Trophy Points:
    16
    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:
    41
    Likes Received:
    8
    Trophy Points:
    8
    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:
     
  3. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    272
    Likes Received:
    0
    Trophy Points:
    16
    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:
    272
    Likes Received:
    0
    Trophy Points:
    16
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    There are a few potential alternatives. Discussion of the topic is found at:

    EasyApache4 symlink race protection

    Thanks!
     
Loading...

Share This Page