• 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.

Resolved memcached installed but not detected

nornagest

New Pleskian
Hi
I have installed (maybe correctly) memcached, with the following commands:

Code:
apt install memcached libmemcached-dev libmemcached-tools
systemctl enable memcached
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt install php-memcached php8.0-memcached

but the extensions is not detected from any script.
I have checked the status of the extension with several commands, and it seems installed correctly, but the php scripts do not detect it.

See below my output

Code:
root@server:/# systemctl status memcached
● memcached.service - memcached daemon
     Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-02-04 12:12:34 UTC; 1h 30min ago
       Docs: man:memcached(1)
   Main PID: 102744 (memcached)
      Tasks: 10 (limit: 7032)
     Memory: 1.4M
     CGroup: /system.slice/memcached.service
             └─102744 /usr/bin/memcached -m 256 -p 11211 -u memcache -l 127.0.0.1 -c 2048 -P /var/run/memca>

Feb 04 12:12:34 server.stacksystem.it systemd[1]: Started memcached daemon.

and

Code:
root@server:/# php -i | grep "memcached support"
memcached support => enabled

and

Code:
root@server:/# php -i | grep memcached
/etc/php/8.0/cli/conf.d/25-memcached.ini
memcached
memcached support => enabled
libmemcached version => 1.0.18
memcached.compression_factor => 1.3 => 1.3
memcached.compression_threshold => 2000 => 2000
memcached.compression_type => fastlz => fastlz
memcached.default_binary_protocol => Off => Off
memcached.default_connect_timeout => 0 => 0
memcached.default_consistent_hash => Off => Off
memcached.serializer => php => php
memcached.sess_binary_protocol => On => On
memcached.sess_connect_timeout => 0 => 0
memcached.sess_consistent_hash => On => On
memcached.sess_consistent_hash_type => ketama => ketama
memcached.sess_lock_expire => 0 => 0
memcached.sess_lock_max_wait => not set => not set
memcached.sess_lock_retries => 5 => 5
memcached.sess_lock_wait => not set => not set
memcached.sess_lock_wait_max => 150 => 150
memcached.sess_lock_wait_min => 150 => 150
memcached.sess_locking => On => On
memcached.sess_number_of_replicas => 0 => 0
memcached.sess_persistent => Off => Off
memcached.sess_prefix => memc.sess.key. => memc.sess.key.
memcached.sess_randomize_replica_read => Off => Off
memcached.sess_remove_failed_servers => Off => Off
memcached.sess_sasl_password => no value => no value
memcached.sess_sasl_username => no value => no value
memcached.sess_server_failure_limit => 0 => 0
memcached.store_retry_count => 2 => 2
Registered save handlers => files user memcached

My system is a VPS with Ubuntu 20.04 and Plesk Obsidian.

This my phpinfo: PHP 8.0.1 - phpinfo()

Any idea?

Thanks!
 
Hi IgorG

I followed your method, but phpinfo still doesn't find it, and the script doesn't detect it https://naturbiotica.com/phppsinfo.php
(user & pass: prestashop, if it asks you).

After trying again...
Code:
root@server:/# /opt/plesk/php/8.0/bin/pecl install memcached
pecl/memcached is already installed and is the same as the released version 3.1.5
install failed

Any other suggestions?
 
Hi
I try on 7.4 dont work i need help for this also i tried docker method too still failed
 
Back
Top