Skip to main content

PHP Warning: Module 'memcached' already loaded in Unknown on line 0

Comments

8 comments

  • kodeslogic
    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
  • amelen
    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
  • kodeslogic
    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 = 11211
    0
  • amelen
    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
  • kodeslogic
    Try commenting: extension=memcached.so
    0
  • amelen
    Will do, thanks!
    0
  • kodeslogic
    You're most welcome :)
    0
  • cPRex Jurassic Moderator
    Great collaboration :cool:
    0

Please sign in to leave a comment.