EasyApache 4 install of memcache and memcached what else should I do?

3awh

Active Member
Sep 1, 2008
33
1
58
WWW
I installed memcache and memcached in EasyApache 4 what else should I do to get it working?
when I had Cloudflare RailGun from Parnters.Cloudlare it was installed via pecl
Since it has been Removed no longer in Partners and I want to reinstall it.

so far I installed it via easyApache

Code:
php72-php-memcache Installed

memcache extension for ea-php72

php72-php-memcached Installed

php-memcached extension for ea-php72


php73-php-memcache Installed

memcache extension for ea-php73

php73-php-memcached Installed

php-memcached extension for ea-php73



php74-php-memcache Installed

memcache extension for ea-php74

php74-php-memcached Installed

php-memcached extension for ea-php74
I checked memcache.ini

Code:
; Enable yaml extension module

extension=memcache.so

; for further documentation on settings see

; http://php.net/manual/en/memcache.ini.php

; use memcache to store PHP sessions

; session.save_handler = "memcache"

; session.save_path = "tcp://localhost:11211"

; use a different default memcche port

; memcache.default_port = 11211

I checked memcached.ini

Code:
; Enable yaml extension module
extension=memcached.so

; for further documentation on settings see
; http://php.net/manual/en/memcache.ini.php

; use memcache to store PHP sessions
; session.save_handler = "memcache"
; session.save_path = "tcp://localhost:11211"

; use a different default memcche port
; memcache.default_port = 11211
I checked /opt/cpanel/ea-php72/root/usr/bin/php -i | grep memcache

Code:
[[email protected] ~]# /opt/cpanel/ea-php72/root/usr/bin/php -i | grep memcache
/opt/cpanel/ea-php72/root/etc/php.d/memcache.ini,
/opt/cpanel/ea-php72/root/etc/php.d/memcached.ini,
memcache
memcache support => enabled
memcache.allow_failover => 1 => 1
memcache.chunk_size => 32768 => 32768
memcache.compress_threshold => 20000 => 20000
memcache.default_port => 11211 => 11211
memcache.hash_function => crc32 => crc32
memcache.hash_strategy => consistent => consistent
memcache.lock_timeout => 15 => 15
memcache.max_failover_attempts => 20 => 20
memcache.prefix_host_key => 0 => 0
memcache.prefix_host_key_remove_subdomain => 0 => 0
memcache.prefix_host_key_remove_www => 1 => 1
memcache.prefix_static_key => no value => no value
memcache.protocol => ascii => ascii
memcache.redundancy => 1 => 1
memcache.session_prefix_host_key => 0 => 0
memcache.session_prefix_host_key_remove_subdomain => 0 => 0
memcache.session_prefix_host_key_remove_www => 1 => 1
memcache.session_prefix_static_key => no value => no value
memcache.session_redundancy => 2 => 2
memcache.session_save_path => no value => no value
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 memcache memcached
Tried to use command memcached -d -u nobody -m 1024 127.0.0.1 -p 11211

Code:
[[email protected] ~]# memcached -d -u nobody -m 1024 127.0.0.1 -p 11211
-bash: memcached: command not found
What am I do ing wrong or is it not needed?
What else should I do besides installing it via easyapache?

Mitch

Edited also heres the phpinfo file attached
 

Attachments

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
804
155
168
New Jersey
cPanel Access Level
DataCenter Provider
That is just the PHP extension, you need to install the daemon itself.

Code:
yum -y install memcached.x86_64
 chkconfig memcached on
service memcached start
Should do it
 
  • Like
Reactions: cPanelLauren