In Progress CPANEL-34948 - Upon install of PHP-memcache in Module Installers, the version of PHP-memcached in "Search Modules" shows memcache's version

cool_recep

Well-Known Member
Apr 10, 2013
59
7
58
cPanel Access Level
Website Owner
Also it shows up with a wrong version number!

1605711856749.png

Code:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to
update
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.1.5.tgz ...
Starting to download memcached-3.1.5.tgz (83,015 bytes)
....................done: 83,015 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
libmemcached directory [no] : zlib directory [no] : use system fastlz [no] : enable igbinary seriali
zer [no] : enable msgpack serializer [no] : enable json serializer [no] : enable server protocol [no
] : enable sasl [yes] : enable sessions [yes] : building in /root/tmp/pear/pear-build-rootJQHmda/mem
cached-3.1.5
running: /root/tmp/pear/memcached/configure --with-php-config=/opt/cpanel/ea-php74/root/usr/bin/php-
config --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbi
nary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=no --en
able-memcached-sasl=yes --enable-memcached-session=yes
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 pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php74/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php74/root/usr/include/php -I/opt/cpanel/ea-php74/root
/usr/include/php/main -I/opt/cpanel/ea-php74/root/usr/include/php/TSRM -I/opt/cpanel/ea-php74/root/u
sr/include/php/Zend -I/opt/cpanel/ea-php74/root/usr/include/php/ext -I/opt/cpanel/ea-php74/root/usr/
include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php74/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php74/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
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 whether to use system FastLZ library... no
checking for ZLIB... yes, shared
checking for pkg-config... /bin/pkg-config
checking for zlib location... /usr
checking for session includes... /opt/cpanel/ea-php74/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... configure: error: memcached support requires libmemcached. Use
--with-libmemcached-dir=
to specify the prefix where libmemcached headers and library are loca
ted
ERROR: `/root/tmp/pear/memcached/configure --with-php-config=/opt/cpanel/ea-php74/root/usr/bin/php-c
onfig --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbin
ary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=no --ena
ble-memcached-sasl=yes --enable-memcached-session=yes' failed
 

WasChristine

Technical Analyst
Aug 10, 2018
57
11
83
Houston, TX
cPanel Access Level
Root Administrator
Hello,

To install php-memcached, the extension requires that you have the libmemcached and libmemcached-devel packages installed. To do so, perform this command:

Code:
yum install libmemcached libmemcached-devel
You should be able to install the package afterwards.

As for the version mismatch; It would appear that the version for memcache is being pulled in the interface instead. What version of PHP are you doing this for? We can use that to replicate the error, as well as see if it occurs on other versions.
 

cool_recep

Well-Known Member
Apr 10, 2013
59
7
58
cPanel Access Level
Website Owner
As for the version mismatch; It would appear that the version for memcache is being pulled in the interface instead. What version of PHP are you doing this for? We can use that to replicate the error, as well as see if it occurs on other versions.
PHP 7.4

Memcahced installed. Thanks.

1605737908592.png
 
Last edited:

WasChristine

Technical Analyst
Aug 10, 2018
57
11
83
Houston, TX
cPanel Access Level
Root Administrator
Hello,

We are glad to hear that the installation worked for you. Did you still find that the memcached package was listed under the wrong version in the WHM interface while doing so? We attempted to reproduce the problem on testing environments but we have not gotten very far with successfully replicating. Any information that you may have for us to move forward would be greatly appreciated!
 

WasChristine

Technical Analyst
Aug 10, 2018
57
11
83
Houston, TX
cPanel Access Level
Root Administrator
Hello,

We attempted to test this, and we found that memcached will only copy memcache's verison if the memcache package is installed first. I filed an internal case with our developers such that we could have that looked into. This is the case ID: CPANEL-34948. The case will appear on our change logs at Change Logs | cPanel & WHM Documentation if and when changes are made.

We appreciate that you brought this to our attention.
 
  • Like
Reactions: cool_recep