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.

How to install xCache on EasyApache 4

Discussion in 'EasyApache' started by Neso, Aug 9, 2016.

Tags:
  1. Neso

    Neso Member

    Joined:
    Feb 11, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I installed xCache, like this:
    Code:
    wget https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz
    tar -zxvf xcache-3.2.0.tar.gz
    cd xcache-3.2.0
    phpize
    ./configure --enable-xcache
    make
    make install
    
    and then I moved xcache.so to /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ from /usr/local/lib/php/extensions/no-debug-non-zts-20131226

    then I created xcache.ini in /opt/cpanel/ea-php56/root/etc/php.d with these settings:
    Code:
    extension="/opt/cpanel/ea-php56/root/usr/lib64/php/modules/xcache.so"
    xcache.admin.enable_auth="off"
    xcache.admin.pass="49d339c351f146c33a5e6ed5cb97dd69"
    xcache.admin.user="Neso"
    xcache.cacher="On"
    xcache.coredump_directory=""
    xcache.count="12"
    xcache.coveragedump_directory="/tmp/pcov/"
    xcache.coverager="Off"
    xcache.gc_interval="7200"
    xcache.mmap_path="/dev/zero"
    xcache.optimizer="Off"
    xcache.readonly_protection="Off"
    xcache.size="6114M"
    xcache.slots="256K"
    xcache.test="Off"
    xcache.ttl="14400"
    xcache.var_count="12"
    xcache.var_gc_interval="7200"
    xcache.var_maxttl="14400"
    xcache.var_size="1024M"
    xcache.var_slots="256K"
    xcache.var_ttl="14400"
    
    
    It show in php info that xcache is loaded: s3.amazonaws.com/upload.screenshot.co/4740d82014 but when I try to use it in script, it say Unable to use this backed.

    Did I missed something?

    Only xcache is enabled, I set permission on xcache.so like for other modules, 0755

    xcache diagnosis show this: s3.amazonaws.com/upload.screenshot.co/888056b5f6

    Any help would be great as I need xcache for my servers and I wish to move to EA 4
     
    #1 Neso, Aug 9, 2016
    Last edited by a moderator: Aug 10, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    EasyApache 4 includes support for multiple versions of PHP, so you must utilize the PHP 5.6 SCL in EasyApache 4. Thus, the "phpize" command in your example should be:

    Code:
    /opt/cpanel/ea-php56/root/usr/bin/phpize
    Note that EasyApache 4 does not any opcode cache out of the box, other than OPCache. This is documented at:

    PHP Options - EasyApache 4 - cPanel Documentation

    Please add feedback to the existing feature request for XCache if you would like to see it implemented with EasyApache 4:

    XCache in EasyApache4

    Thank you.
     
Loading...

Share This Page