- Install the Memcached packages
apt-get install php7.0-memcached memcached
- Test Memcached:
php -a
Paste the following:
$m = new Memcached();
$m->addServer('127.0.0.1', 11211);
$m->set('foo', 100);
echo $m->get('foo') . "\n";
If 100 returned, all is good.
You can also paste the above in to a .php on the server to test it via web browser.
Download the Memcached plugin. Extract the object-cache.php file. Upload it to wp-content of your WP Install.