where 's located memcache.ini ?

where 's located memcache.ini to add failover instruction?

droplet Ubuntu LEMP on 16.04


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

i have installed memcacheD

/etc/memcached.conf is ok

/etc/php/7.0/mods-available/memcache.ini doesnt exist /etc/php/7.0/mods-available/memcached.ini doesnt exist


If you’re referring to the configuration file for memcache or memcached, it’s generally located in






memcached is preferred over memcache though, as @hansen stated in his post.

The module file, memcached.ini isn’t designed for service configuration, so you’d want to edit the corresponding file above if you need to modify how memcache/d works/functions.

Hi @smartbet79

That sounds like the PHP module, so that would be located here:


But it’s only located there if you have installed the module php-memcache.

But all in all, it’s recommended to use memcacheD instead of memcache: