I have new server required to use PHP memcached.
But it showed this error.
PHP Fatal error: Class 'Memcached' not found
The server version is CentOS 7, so used below commands.
Check linux version: lsb_release -a yum clean all yum -y update yum -y install memcached systemctl start memcached.service systemctl enable memcached.service systemctl restart memcached.service
Run this to check memcached installed:
php -m | grep memcache
You should see like “memcache”, if it is installed correctly.
Restart apache:
systemctl restart httpd