SOLVED [EA-8224] EA4 Experimental PHP Memcached Extensions Stop Working After Latest Update

matt1206

Well-Known Member
Dec 20, 2011
60
11
58
cPanel Access Level
Root Administrator
Code:
ea-php71-php-memcached-3.0.2-1.1.229.cpanel.x86_64
ea-php56-php-memcached-2.2.0-1.4.225.cpanel.x86_64
ea-php70-php-memcached-3.0.2-1.5.220.cpanel.x86_64
On the most recent update, memcached is no longer working via the EA4 experimental packages. Memcache works, but not the above provided memcached.

Phpinfo shows it including the memcached.ini file, which calls the correct .so file, however, it's not actually loading.

Code:
# ./php -m                                                   [PHP Modules]
bcmath
bz2
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
intl
ionCube Loader
json
libxml
mbstring
mcrypt
memcache
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
SPL
sqlite3
standard
timezonedb
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)
Code:
# cat /opt/cpanel/ea-php70/root/etc/php.d/memcached.ini
; Enable yaml extension module
extension=memcached.so

; for further documentation on settings see
; http://php.net/manual/en/memcache.ini.php

; use memcache to store PHP sessions
; session.save_handler = "memcache"
; session.save_path = "tcp://localhost:11211"

; use a different default memcche port
 

Adrian Boldor

Registered
Apr 19, 2019
1
2
3
Romania
cPanel Access Level
Root Administrator
The workaround that works and I got from Cpanel Support is:

The workaround here, for now, is to remove the Experimental RPMs we provide and then exclude the Experimental RPMs and then install the libmemcached and libmemcached-devel RPMs provided by CentOS yum repos.

The following can be used to disable those from the EA4 repos.

rpm -ev --nodeps libmemcached
yum install --disablerepo=EA4-experimental libmemcached
echo 'exclude=libmemcached' >> /etc/yum.repos.d/EA4-experimental.repo
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

Internal case EA-8399 is open to address an issue where the ea-php##-php-memcached extensions fail to load after the libmemcached package is moved to the ea-libmemcached namespace upon applying the latest EA4 experimental update.

I'll monitor the case and update this thread with more information as it becomes available. In the meantime, you can review the workaround steps in the previous post to switch over to the CentOS libmemcached and libmemcached-devel RPMs.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello Everyone,

This was fixed as part of case EA-8224 in the 2019-6-25 EasyApache 4 Experimental Release:

ea-memcached
  • EA-8224 - Fix/test/get updated all memcache packages
    • ea-php54-php-memcache
    • ea-php54-php-memcached
    • ea-php55-php-memcache
    • ea-php55-php-memcached
    • ea-php56-php-memcache
    • ea-php56-php-memcached
    • ea-php70-php-memcache
    • ea-php70-php-memcached
    • ea-php71-php-memcache
    • ea-php71-php-memcached
    • ea-php72-php-memcache
    • ea-php72-php-memcached
    • ea-php73-php-memcache
    • ea-php73-php-memcached
  • Updated ea-memcached to 1.5.16
  • Updated spec file from upstream and install files under /opt/cpanel/libmemcached.
  • Move into the ea- namespace to avoid conflicts with base repos
You can find the full change log on the link below:

Experimental Repository Change Log - EasyApache 4 - cPanel Documentation

Let us know if of any additional issues.

Thanks!