Install memcached on CentOS 7

To install memcached on CentOS 7, run

yum -y install memcached

Set memcached to start on boot

systemctl enable memcached

Start memcached with

systemctl start memcached

Installing PHP Module

You need remi repository installed, that provide memcached module for all versions of php they support.

For PHP 5.6, run

yum install php-memcache

Now phpinfo() will show

centos 7 php memcache

See memcached

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *