S
S
simakmak2016-05-28 14:56:21
PHP
simakmak, 2016-05-28 14:56:21

How to setup memcache for OwnCloud?

Raised OwnCloud in conjunction with Debian (Apache2 Mysql PHP), but noticed that the site does not work as fast as we would like. And in the OwnCloud settings, a reminder about memcache always hangs. I decided to read it, and in the end I made small conclusions for myself! This should help! I turned to OwnCloud instructions . Everything seems to be elementary.
I tried to make the APCu option initially (as I understood it php5-apcu)
From the settings everything looks elementary and simple, add one line to the config.php of the cloud

'memcache.local' => '\OC\Memcache\APCu',

And life will immediately go smoothly, but it wasn’t there, the site simply stopped responding.
I read it in Google, found the settings
on the toaster. But this option did not work either.
I went the other way, I decided to take 2 instructions , again from the official site.
Memcached
The variant is quite a bit more complicated. Corrected the config, installed the 256MB cache in the standard version.
Let's go, go to config.php, drive it there
'memcache.local' => '\OC\Memcache\APCu',
'memcache.distributed' => '\OC\Memcache\Memcached',
'memcached_servers' => array(
     array('localhost', 11211),
     array('server1.example.com', 11211),
     array('server2.example.com', 11211),
     ),

We save. solemn moment, we fly to the site, iiii ....
And nothing ... Damn, nothing again. Again the site does not respond) We comment on the lines we added, and everything comes to life. Eh, I'm very weak on the web, so I'm sure everything lies on the surface, but I can't find the answer. Surely somewhere I could have forgotten the point, something else, please correct me)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Bobarev, 2017-01-24
@simakmak

It works for me like this:

'memcache.local' => '\OC\Memcache\Memcached',
'memcache.distributed' => '\OC\Memcache\Memcached',
'memcached_servers' => array(
     array('localhost', 11211),
     ),

A
Alexander Shishov, 2016-05-28
@AleX52

Good article: itheap.info/blog/debian_linux/386.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question