• So after doing the installation steps and coping the obj file to wp-content the website was braking with the error message something about cannot find memcache.
    WHM (cpanel) supports both memcache and memcached but has dropped support for memcache. Please note that memcached is supposedly better. So I did not have memcache installed. Only memcached. And I had the critical error.

    After installing memcache (along memcached) the error gone.
    I am pretty sure the plugin is using the memcached but for some reason it wants also memcache also installed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Andrija Vu?ini?

    (@aidvu)

    Hi,

    > Please note that memcached is supposedly better.

    I could agree with newer or better maintained. The APIs for these 2 extensions are different. It would require a pretty big rewrite to make this one work with memcached instead of memcache.

    > I am pretty sure the plugin is using the memcached but for some reason it wants also memcache also installed.

    This is not correct. It is using the memcache extension.

    Glad you made it work!

    Thread Starter Byron Iniotakis

    (@orloxgr)

    oh boi! Then maybe you should rename the extension to memcache or state that it works with memcache only instead of memcached ??
    I bet 90% of the error reporting is because people are using memcached ??
    Dunno why they have so similar names.
    Anyway, thank you for the plugin and your work ??

    Plugin Contributor Andrija Vu?ini?

    (@aidvu)

    > Then maybe you should rename the extension to memcache or state that it works with memcache only instead of memcached

    The back end is memcached. The PHP extension is memcache. I agree there’s confusion, but it’s in the installation section.

    But you’re right. Most of the confusion is either memcache/memcached or people not reading Installation and activating the plugin. ??

    is there a solution to this ?

    I have the same issue php 80/81 there’s no php-memcache on whm

    Plugin Contributor Andrija Vu?ini?

    (@aidvu)

    Maybe @orloxgr can help you, since he managed to install the extension on WHM.

    The issue is that with CPanel and WHM and even CentOS in general, memcache is not available to even install past PHP 7.4. A search of yum for memcache shows this:

    ea-php74-php-memcache.x86_64 : memcache extension for ea-php74
    ea-php74-php-memcache-debuginfo.x86_64 : Debug information for package ea-php74-php-memcache
    ea-php74-php-memcached.x86_64 : php-memcached extension for ea-php74
    ea-php74-php-memcached-debuginfo.x86_64 : Debug information for package ea-php74-php-memcached
    ea-php80-php-memcached.x86_64 : php-memcached extension for ea-php80
    ea-php80-php-memcached-debuginfo.x86_64 : Debug information for package ea-php80-php-memcached
    ea-php81-php-memcached.x86_64 : php-memcached extension for ea-php81
    ea-php81-php-memcached-debuginfo.x86_64 : Debug information for package ea-php81-php-memcached

    So, for anyone who wants to use something newer than PHP 7.4 on a CPanel server, this plugin does not appear to be a viable option unless the author supports memcached.

    It would be helpful if you would make it a bit clearer in the documentation, as I spent quite a while trying to get this to work after following the instructions –as best as I could– before finding this support thread. Maybe something along the lines of “Do not install memcached without memcache or this plugin will not work.”

    Also, DO you plan to support memcached or not?

    So there’s a bit of a solution:

    The plugin author notes in readme to “install PECL memcache module.” For people using CPanel/WHM, the way you typically install PHP extensions is by using EasyApache 4. That will NOT work because (as noted above) memcache is not available beyond 7.4 while memcached is.

    First:

    yum install libmemcached libmemcached-devel

    Then go to Module Installers in WHM, choose “manage” beside PHP Pecl, type in memcache, install BOTH memcache and memcached.

    It appears to show data being written to the cache.

    HOWEVER, it doesn’t work for two sites for me at the moment. I put an unique salt in another site’s wp-config.php, copied the object-cache.php into the wp-content folder of a second site, visited it in a web browser, and the request was redirected to the FIRST site I had installed caching on.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Memcached issue with WHM’ is closed to new replies.