Question

how to install and enable memcached for wordpress on LEMP Ubuntu 14.04?

Posted December 29, 2015 4.2k views
PHPWordPressLEMP

i am new vps starter , how to install and enable memcached for wordpress on LEMP Ubuntu 14.04?

1 comment
  • I have succeed to install the memcached for the server according to https://www.digitalocean.com/community/tutorials/how-to-install-and-use-memcache-on-ubuntu-12-04
    but for wordpress , I install the plugin “Memcached Object Cache” , and Copy object-cache.php to wp-content, met a Fatal error: Cannot redeclare class WPObjectCache in /var/www/html/wp-content/plugins/memcached/object-cache.php on line 93 , and the web is erro 500. when remove it from wp-content, the web working normally.

    how to solve this problem?

    by Etel Sverdlov
    Memcache is a system that works to speed up virtual private servers by caching server information. The program allows you to allocate a specific amount of the server ram toward caching recently queried data for a certain amount of time. This tutorial covers Memcache installation and illustrates how to use memcache with a simple php script.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @icemanfinn,

Installing Memcache and a Plugin for WordPress to use it should be sufficient. There is no need to edit anything else in the WordPress files directly. The plugin would make it’s necessarily files and work with them.

Regards,
KDSys

Submit an Answer