I am running Elgg-2.3.12, and no matter what I am unable to make memcache work on PHP 7.0 and 7.2 . In both php 7.0 and 7.2 only extension = memcached.so extension is loaded. If I fall back to php 5.6 , I see both extension = memcache.so, extension = memcached.so extensions are loaded, and memcache stats workings and shows up under Statistics : Server Info.
Is anyone having same issue?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 1 like
- MyHoTFB.COM ®@myHoTFB
MyHoTFB.COM ® - 0 likes
$CONFIG->memcache = true; // $CONFIG->memcache_servers = array ( array('127.0.0.1', 11211), array('198.23.48.101', 11211) ); // namespace prefix $CONFIG->memcache_namespace_prefix = 'memcache.so'; $CONFIG->memcached = true; $CONFIG->memcached_servers = array ( array('127.0.0.1', 11211), array('198.23.48.101', 11211) ); // namespace prefix $CONFIG->memcache_namespace_prefix = 'memcached.so';
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- MyHoTFB.COM ®@myHoTFB
MyHoTFB.COM ® - 0 likes
<?php global $CONFIG; if (!isset($CONFIG)) { $CONFIG = new \stdClass; } // Memcached configuration for Travis $CONFIG->memcache = true; $CONFIG->memcache_servers = [ ['127.0.0.1', 11211], ]; $CONFIG->memcache_namespace_prefix = 'elgg_';
- MyHoTFB.COM ®@myHoTFB
MyHoTFB.COM ® - 0 likes
<?php global $CONFIG; if (!isset($CONFIG)) { $CONFIG = new \stdClass; } // Memcached configuration for Travis $CONFIG->memcache = true; $CONFIG->memcache_servers = [ ['127.0.0.1', 11211], ]; $CONFIG->memcache_namespace_prefix = 'elgg_';
You must log in to post replies.memcached != memcache
does it mean memcached interexchanged with memcache ? otherwise speaking are you trying to say that memcached=memcache ? I think what are u r saying is memcached can not be quantified memcache as they are different.
So, will the following in setting.php solve
You need PHP extension php-memcached and memcached server only.
In Elgg settings.php use:
Please, read how to install PHP 7 with memcached.
And Elgg docs also.
These are different extensions (modules).
!= means NOT
I have had tried in past declaring singly array, but it didn't produce any result nor did it with exact as per your above declaration. As far as the server is concerned, Memcache is correctly installed in VPS server for 7.0 including 7.2.
Its just not working for elgg... with php 7 + ... the core script does't work as intended..... and so is the redis.... just sad!
this "elgg_" looks like to be db prefix. what is it doing in core memcache script?
I have had tried in past declaring singly array, but it didn't produce any result nor did it with exact as per your above declaration. As far as the server is concerned, Memcache is correctly installed in VPS server for 7.0 including 7.2.
Its just not working for elgg... with php 7 + ... the core script does't work as intended..... and so is the redis.... just sad!
this "elgg_" looks like to be db prefix. what is it doing in core memcache script?