where 's located memcache.ini ?

May 15, 2017 407 views
PHP Caching Ubuntu 16.04

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

droplet Ubuntu LEMP on 16.04

3 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

Have another answer? Share your knowledge.