Configure Memcached Wordpress plugin with Unix socket

In this tutorial, we will install and activate "MemcacheD Is Your Friend" on Wordpress to reduce the server load and improve the site speed.

  1. Enable Memcached server from cPanel, for more information, please refer to the following article

  2. Login to your Wordpress as admin

  3. Go to plugins -> Add New

  4. Search for "Memcached Is Your Friend" and install it

  1. Open wp-config.php with cPanel File Manager and add the following line:

$memcached\_servers = array( 'default' => array('/home/YourUsername/memcached.sock:0'));

You can view the exact memcached.sock path from cPanel -> Mocha Memcached.

Port should be set to "0", when the socket is in use.

  1. Under WordPress Admin -> Tools -> Memcached you can see the unix socket is in use

memcached: /home/demo/memcached.sock:0 pid: 16005 uptime: 523 threads: 4 time: 1526849433

  • 1 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

WordPress Migration - using All-in-One WP Migration plugin

If you are currently hosting WordPress with another provider which does not provide cPanel...

Accessing WordPress Managed by WorldHostser

WordPress Manager allows you to update several settings for your WordPress installation without...

Wordpress Optimizations with Redis and W3 Total Cache

In this tutorial, we will install and configure "W3 Total Cache" with Redis on Wordpress to...

WooCommerce - Disable Cart Fragments

The WooCommerce store has a very common issue, which impacts significantly your page loading...

WordPress Slow Plugins- to stay away from

We have tried to compile an extensive list of "slow" plugins, which you should try to stay away...

Powered by WHMCompleteSolution