Title: Memcached issue with WHM
Last modified: November 22, 2022

---

# Memcached issue with WHM

 *  [Byron Iniotakis](https://wordpress.org/support/users/orloxgr/)
 * (@orloxgr)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/memcached-issue-with-whm/)
 * 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ć](https://wordpress.org/support/users/aidvu/)
 * (@aidvu)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/memcached-issue-with-whm/#post-16223735)
 * 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](https://wordpress.org/support/users/orloxgr/)
 * (@orloxgr)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/memcached-issue-with-whm/#post-16223788)
 * 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ć](https://wordpress.org/support/users/aidvu/)
 * (@aidvu)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/memcached-issue-with-whm/#post-16223996)
 * > 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](https://wordpress.org/plugins/memcached/#installation).
 * But you’re right. Most of the confusion is either memcache/memcached or people
   not reading `Installation` and activating the plugin. 🙂
 *  [Scott Farrell](https://wordpress.org/support/users/sfarrell5123/)
 * (@sfarrell5123)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/memcached-issue-with-whm/#post-16247774)
 * 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ć](https://wordpress.org/support/users/aidvu/)
 * (@aidvu)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/memcached-issue-with-whm/#post-16248074)
 * Maybe [@orloxgr](https://wordpress.org/support/users/orloxgr/) can help you, 
   since he managed to install the extension on WHM.
 *  [caldwell](https://wordpress.org/support/users/caldwell/)
 * (@caldwell)
 * [3 years ago](https://wordpress.org/support/topic/memcached-issue-with-whm/#post-16634724)
 * 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:
 *     ```wp-block-code
       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?
 *  [caldwell](https://wordpress.org/support/users/caldwell/)
 * (@caldwell)
 * [3 years ago](https://wordpress.org/support/topic/memcached-issue-with-whm/#post-16634787)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/memcached.svg)
 * [Memcached Object Cache](https://wordpress.org/plugins/memcached/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/memcached/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/memcached/)
 * [Active Topics](https://wordpress.org/support/plugin/memcached/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/memcached/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/memcached/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [caldwell](https://wordpress.org/support/users/caldwell/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/memcached-issue-with-whm/#post-16634787)
 * Status: not resolved