Installing memcache on PHP 7.1

แปะเก็บไว้

CentOS 6 (prerequisite)

# install webtatic repo
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
# install memcache things
yum -y install yum-plugin-replace
yum -y install libmemcached
yum -y replace libmemcached --replace-with libmemcached10
yum -y install libmemcached10-devel.x86_64

CentOS 7 (prerequisite)

yum -y install libmemcached-devel

 Install memcached.so

yum -y install git
cd ~
rm -rf php-memcached
git clone https://github.com/php-memcached-dev/php-memcached.git
cd php-memcached
git checkout php7
phpize
./configure --disable-memcached-sasl
make
make install

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.