Memcached

From SME Server
Revision as of 16:24, 2 April 2024 by ReetP (talk | contribs)
Jump to navigationJump to search

Memcached for SME 10 - needs testing properly

Install EPEL

yum install smeserver-extrarepositories-epel
signal-event yum-modify

Install

yum --enablerepo=epel install memcached php*-pecl-memcached
config set memcached service status enabled TCPPort 11211 access local
mkdir -p /usr/lib/systemd/system/memcached.d
nano 50koozali.conf

Paste and save

[Install]
WantedBy=sme-server.target

And ugrade;reboot

signal-event post-upgrade;signal-event reboot

Check it is running

systemctl status memcached

Now you need to test it is working with PHP.


Memcached for SME9 only

Deprecated.

yum install smeserver-extrarepositories-remi
signal-event yum-modify
yum install memcached php*-pecl-memcached
config set memcached service status enabled TCPPort 11211 access local
cd /etc/rc.d/rc7.d
ln -s S50memcached /etc/rc.d/init.d/memcached
config set UnsavedChanges no
service memcached start