How to install xCache on EasyApache 4
I installed xCache, like this:
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:
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
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:
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
-
Hello, I installed xCache, like this: wget
/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: Thank you.0 -
At ./configure --enable-xcache I get 'configure: error: Cannot find php-config. Please use --with-php-config=PATH' 0 -
At ./configure --enable-xcache I get 'configure: error: Cannot find php-config. Please use --with-php-config=PATH'
Just switch to opcache and memcahe ot prpvide better performance, I have moved from xCache in EA40 -
Just switch to opcache and memcahe ot prpvide better performance, I have moved from xCache in EA4
I appreciate the feedback! I was trying to get opcache to work but I didn't have mod_socache_memcache installed. I'm still not get great page loads speeds, so I guess there's more work to do!0 -
You may also want to add your feedback to the existing feature request for official Xcache support at: XCache in EasyApache4 Thank you. 0
Please sign in to leave a comment.
Comments
5 comments