PHP Cannot find saved memcache handler

I am sorting my brains about this problem (it should be simple), but it seems that I cannot find a solution, so I hope one of you can help me. I am trying to save sessions using php memcache extension.

I run MAMP and installed the extension correctly (I think ... it appears when I do phpinfo), I start the daemon and can connect to it via php using something like this:

$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");

So, I KNOW that php can communicate with the daemon. The problem is that I turn on memcache memory storage in php.ini and try to execute session_start (), it gives me the error message "Cannot find saved memcache handler". This is what is in my php.ini:

session.save_handler = memcache
session.save_path = "tcp://127.0.0.1:11211"

Any help would be much appreciated = (

Additional Information:

:

http://lullabot.com/articles/setup-memcached-mamp-sandbox-environment

OSX 1.6.4, .so

+3
4

Memcached, Memcache. , .

session.save_handler = memcached

, OP , .

:
http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/
http://phpslacker.com/2009/03/02/php-session-clustering-with-memcache/

"", " memcache?"

, Memcached ( D). - .

+9

memcached memcache, , tcp:// session.save_path. session.save_path

session.save_path = "tcp://127.0.0.1:11211"

session.save_path = "127.0.0.1:11211"
+4

You may need to install the PHP memcached extension, for example yum install php55-pecl-memcached

+4
source

You will need to enable memcache session handler support and then install php5-memcache. What OS are you using and how did you install it?

0
source

Source: https://habr.com/ru/post/1772235/


All Articles