The command apt-get install php-memcached
will be installing php7.0
.
Is there any way to install memcahed
extension with php7.1
?
The command apt-get install php-memcached
will be installing php7.0
.
Is there any way to install memcahed
extension with php7.1
?
You need to compile php extension from source . IIRC there is no apt-get method is available yet.
install required libraries
sudo apt-get install libmemcached-dev libmsgpack-dev libmsgpackc2 zlib1g-dev php7.1-dev
then compile extension
git clone --depth 1 https://github.com/php-memcached-dev/php-memcached.git
cd php-memcached
phpize
./configure
make
sudo mv modules/ /usr/local/memcached/
and then enable that in your php.ini file append at the end as
extension=/usr/local/memcached/memcached.so
then restart.
shameless plug
I wrote a detailed blog post on memcached and php7.1 for Ubuntu/Debian https://www.computersnyou.com/5828