• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

XCache doesn't loaded, what do I miss to load XCache

mavera2

Basic Pleskian
I migrated my codes to another server.
I'm trying to load XCache.

I installed XCache like this:
mkdir /opt/my
cd /opt/my
wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz
tar zxvf xcache-3.1.0.tar.gz
cd /opt/my/xcache-3.1.0
phpize --clean
phpize
./configure --enable-xcache && make
make install

I opened Plesk panel. I go to domain's "PHP settings" in Plesk.
I pasted this in settings:
[xcache-common]
extension = xcache.so
[xcache.admin]
xcache.admin.enable_auth = Off
xcache.admin.user = "admin"
xcache.admin.pass = "404c47ca4ed629060063b17621457fbd"
[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 12M
xcache.count = 1
xcache.slots = 8K
xcache.ttl = 0
xcache.gc_interval = 0
xcache.var_size = 1M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300
xcache.var_namespace_mode = 0
xcache.var_namespace = ""
xcache.readonly_protection = Off
xcache.mmap_path = "/dev/zero"
xcache.coredump_directory = ""
xcache.coredump_type = 0
xcache.disable_on_crash = Off
xcache.experimental = Off
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off
[xcache.coverager]
xcache.coverager = Off
xcache.coverager_autostart = On
xcache.coveragedump_directory = ""

But I still can't see xcache when I make "php -v"

What should I do more to load XCache ??
 
I solved this problem with creating a xcache ini file:
# vi /etc/php.d/xcache.ini

pasting all xcache directives in this file.
removing xcache directives from Plesk-domain-PHP settings page.
 
Hello,

Yes Right, You will have to create file /etc/php.d/xcache.ini file on your server.

I didn't need xcache.ini in my old server.
Adding XCache directions from Plesk's-domain.com-PHP settings-Additional directives was adequate.
But now it didn't worked without adding xcache.ini to php.d.
 
Back
Top