Answer the question
In order to leave comments, you need to log in
How to install memcache extension for PHP 7 on CentOS 7?
I had to move from PHP 5.6 (CentOS 6) to PHP 7.1 (CentOS 7). I installed PHP 7.1 and other extensions from the IUS repository, but I don’t understand what to do with memcache. Additionally, the issue of switching from memcache to memcache d has surfaced .
Here, for example, they write that there is no stable version of the extension: https://github.com/iuscommunity/wishlist/issues/111
The memcache d extension is at least supported by developers, but memcache has not been updated for several years.
https://pecl.php.net/package/memcache
Where do you get the version for 7.1 then? Or does it not need to be rewritten to adapt the extension? How does it all work? And which extension is currently more popular? Maybe everyone switched to memcache d a long time ago, and I just live in the last century?
What will the "pecl install memcache" command do? First, it tries to install the old version 2.2.7. Second, will it work with PHP 7.1? I installed PEAR from the same IUS, but which version of PHP is it tied to? Or is the version determined automatically? When I entered the command, I got an error:
The php-devel package is required for use of this command.
ERROR: `phpize' failed
Answer the question
In order to leave comments, you need to log in
Why not use the REMI repo? And pull all PHP with modules from there.
Here is php7.1 in a CentOS7 based container:
[[email protected] /]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
[[email protected] /]# php -v
PHP 7.1.1 (cli) (built: Jan 18 2017 11:37:34) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
[[email protected] /]# rpm -qa | grep memcache
memcached-1.4.34-1.el7.remi.x86_64
php-pecl-memcache-3.0.9-0.7.20161124gitdf7735e.el7.remi.7.1.x86_64
[[email protected] /]# yum info php-pecl-memcache
......
Installed Packages
Name : php-pecl-memcache
Arch : x86_64
Version : 3.0.9
Release : 0.7.20161124gitdf7735e.el7.remi.7.1
Size : 292 k
Repo : installed
From repo : remi-php71
Summary : Extension to work with the Memcached caching daemon
URL : pecl.php.net/ package/memcache
License : PHP
Description : Memcached is a caching daemon designed especially for
: dynamic web applications to decrease database load by
: storing objects in memory.
:
: This extension allows you to work with memcached through
: handy OO and procedural interfaces.
:
: Memcache can be used as a PHP session handler.
:
: Package built for PHP 7.1.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question