• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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