How to use Memcached with PHP7?
You need to use the php7
branch; see here, Travis is passing.
This should be the complete set of steps to install the memcached
extension on a Debian/Ubuntu OS:
sudo apt-get updatesudo apt-get install -y libmemcached-dev libmemcached11 git build-essentialgit clone https://github.com/php-memcached-dev/php-memcachedcd php-memcachedgit checkout php7git pull/usr/local/php7/bin/phpize./configure --with-php-config=/usr/local/php7/bin/php-configmakesudo make install
You may need to change some of the paths if you have them installed at different locations.
To install memcached on the latest ubuntu for the latest php use:
sudo apt-get install php-memcached
For Debian 8 users, you can use:
sudo apt-get install php7.0-memcached