Bonjour,
Je suis entrain de déployer un API (Symfony) dans un nouveau serveur et j'ai des difficultés a installer "memchached" dans le php cli et web.
J'ai pas beaucoup d'experience avec l'installation des modules PHP, j'ai réussi a installer "memcache" depuis cPanel mais quand j'essaie d'installer "memcached" j'ai l'erreur suivante:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl/memcached requires PHP (version >= 7.0.0), installed version is 5.6.40
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
No valid packages found
install failed
Et quend j'essaie d'installer une version spécifique (2.2.0) j'ai:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading memcached-2.2.0.tgz ...
Starting to download memcached-2.2.0.tgz (70,449 bytes)
.................done: 70,449 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
libmemcached directory [no] : building in /root/tmp/pear/pear-build-root4C2Ao8/memcached-2.2.0
running: /root/tmp/pear/memcached/configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --with-libmemcached-dir=no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php56/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php56/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php56/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable memcached support... yes, shared
checking for libmemcached... yes, shared
checking whether to enable memcached session handler support... yes
checking whether to enable memcached igbinary serializer support... no
checking whether to enable memcached json serializer support... no
checking whether to enable memcached msgpack serializer support... no
checking whether to enable memcached sasl support... yes
checking whether to enable memcached protocol support... no
checking for ZLIB... yes, shared
checking for pkg-config... /usr/bin/pkg-config
checking for zlib location... /usr
checking for session includes... /opt/cpanel/ea-php56/root/usr/include/php
checking for memcached session support... enabled
checking for memcached igbinary support... disabled
checking for memcached msgpack support... disabled
checking for libmemcached location... found version 0.31, under /usr
checking whether to enable sasl support... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking whether libmemcached supports sasl... no
configure: error: no, libmemcached sasl support is not enabled. Run configure with --disable-memcached-sasl to disable this check
ERROR: `/root/tmp/pear/memcached/configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --with-libmemcached-dir=no' failed
J'aimerai bien avoir de l'aide car là je ne sais pas vraiment quoi faire :/
Merci d'avance.
Je n'arrive pas a installer memcached dans mon VPS
Related questions
- Perte de mot de passe
48266
26.05.2023 13:36
- Comment configurer/utiliser un SMTP depuis un VPS ?
46966
07.10.2019 10:49
- Je connais que le mutu et besoin de node js
46509
14.04.2017 13:34
- Qu'est-ce vcore?
45434
06.01.2017 19:20
- Envoi Email via SMTP (port 587) sur VPS Pro1
44558
27.01.2017 10:02
- [résolu] Serveur Mysql - hôte inconnu
42177
19.01.2017 16:21
- Mon VPS à Timed Out
41867
15.03.2017 22:50
- Délai de livraison VPS
41615
11.07.2018 15:15
- Problème avec statisitique Plesk
39029
29.03.2017 07:44
- Accès externe base de données
38628
18.07.2018 10:29
Salut @MatveyB
A tu essayer de passer par EasyApache pour faire cette install ou est-ce que tu fait tout par SSH ?
Quand tu regarde l'erreur, il semblerait que ta version de PHP soit en cause dans cette erreur :
> pecl/memcached requires PHP (version >= 7.0.0), installed version is 5.6.40
Je te recommande donc de passer ton site sur une version php plus récente (>7 donc) et tenter de nouveau l'install.
Jalinn
Salut Jalin,
Merci pour votre réponse,
Oui c'est en utilisant EasyApache que j'ai eu cette erreur
Malheureusement je ne pas utiliser php7 pour des raison de compabilité
Mais j'ai fianlement résolu mon pb (grâce au support cPanel) en utilisant easyApacheExperimental
$ yum -y install ea4-experimental
$ yum install ea-php56-php-memcache
$ yum install ea-php56-php-memcached