• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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