Unfortunatelly, the old memcached module with php7 is officially no longer supported in favour of redis or some other cache, so one of the thing you can do about it if still in need of it is to compile it.

I’ll assume that you’ve already compiled php7 as describe on this site.

Follow these steps to add php-memcached module to it:

yum --enablerepo=epel install libmemcached-devel fastlz-devel

First, let’s add some dependencies:

git clone https://github.com/igbinary/igbinary.git
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make
make install

and now let’s install memcached:

git clone https://github.com/php-memcached-dev/php-memcached.git
cd php-memcached/
git checkout php7
/usr/local/php7/bin/phpize
./configure --enable-memcached-json --with-system-fastlz --with-php-config=/usr/local/php7/bin/php-config --enable-memcached-igbinary
make
make install

Leave a Reply

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