When Memcached extension is not installed or enabled, the error "Memcached Not Found" will be triggered.
In this context, we shall look into the main causes of this error and how best to solve it.
As earlier stated, one of the reason why this error occurs is when the Memcached extension is not installed.
Likewise, even when this extension is installed, it might be possible that it has not been enabled or correctly configured.
We are going to consider a few cases to show you how we fixed this error.
i. Recently, we has a client complaining about this Memcached error when trying to migrate his WordPress website from one server to another. To fix this, we logged into his cPanel and navigated to the File Manager. Next we located the wp-content folder and changed the object-cache.php file to another name.
ii. In a similar scenario when a client already tried to get Memcached installed but for some unknown reasons it did not seem to be the correct extension.
To fix this, to begin, we check the status of Memcached to see if it was installed or not. We ran the following command;
sudo service Memcached status
The output of this showed that Memcached extension was not available. Then we installed it with the following command;
sudo apt-get install php5-memcached
After the installation process, we restarted Apache.
In this case , we noticed that the client had installed a similar package known as "Memcache" instead of Memcached extension. These are entirely different packages and should not be confused to be same!
Here at IbmiMedia, we have dealt with numerous Memcached related errors as part of our Server Support Services for our clients.