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

droplet Ubuntu LEMP on 16.04

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.

×
4 answers

Hi @smartbet79

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

/etc/php/7.0/mods-available/memcache.ini

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:
http://stackoverflow.com/questions/1442411/when-should-i-use-memcache-instead-of-memcached

@smartbet79

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

/etc

i.e.

/etc/memcache.conf

or

/etc/memcached.conf

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.

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

Submit an Answer