PHP Warning: Module 'memcached' already loaded in Unknown on line 0
Started getting this error recently:
PHP Warning: Module 'memcached' already loaded in Unknown on line 0
Here is where memcache is being referenced. What could be the issue?
[root@server1 ~]# grep memcache -R /opt/cpanel/ea-php72/root/etc
/opt/cpanel/ea-php72/root/etc/php.d/zzzzzzz-pecl.ini:extension="memcached.so"
/opt/cpanel/ea-php72/root/etc/php.d/memcache.ini:extension=memcache.so
/opt/cpanel/ea-php72/root/etc/php.d/memcache.ini:;
-
You should check files /opt/cpanel/ea-php72/root/etc/php.d/memcache.ini /opt/cpanel/ea-php72/root/etc/php.d/memcached.ini
and probably disable/remove one of them - or put comments (the # sign) at the beginning of the lines to disable.0 -
You should check files
/opt/cpanel/ea-php72/root/etc/php.d/memcache.ini /opt/cpanel/ea-php72/root/etc/php.d/memcached.ini
and probably disable/remove one of them - or put comments (the # sign) at the beginning of the lines to disable.
I installed it a while back following cpanel's guidance - they never mentioned anything about commenting something out. Do you know if there is any further guidance on which one I should be commenting out?0 -
See below lines, both are trying for the same port is conflicting and throwing error. So just disable ( comment with # sign ) either memcache or memcached and you should be okay. /opt/cpanel/ea-php72/root/etc/php.d/memcache.ini:; memcache.default_port = 11211 /opt/cpanel/ea-php72/root/etc/php.d/memcached.ini:; memcache.default_port = 112110 -
Contents of those two files are below btw. Which one should I disable? i was under the assumption that to use memcache you need both of them? ; Enable yaml extension module extension=memcached.so ; Enable yaml extension module extension=memcache.so 0 -
Try commenting: extension=memcached.so0 -
Will do, thanks! 0 -
You're most welcome :) 0 -
Great collaboration :cool: 0
Please sign in to leave a comment.
Comments
8 comments