PHP memcache with sasl

JohnyByk

Verified User
Joined
Mar 7, 2012
Messages
251
Hi.

Memcache is not secure without sasl. I installed memcached, memcache php library and sasl libraries but still don't works properly. I can connect to memcache with sasl instance but i cant authenticate my connection. I added user to database (saslpasswd2 -a memcached -c someuser)

I was using this class for tests https://github.com/hull/php-memcache-sasl

Im using debian with php-fpm56.
Maybe somebody know how to run php memcache with sasl or maybe is better way to secure memcache?

My php log:
Code:
[Tue Feb 28 10:38:55.605014 2017] [proxy_fcgi:error] [pid 24226:tid 140359606535936] [client 46.175.239.112:36845] AH01071: 
Got error 'PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message 'Auth failure.' in /home/user/domains/domain.com/public_html/sinfo.php:103\nStack trace:\n#0
/home/user/domains/domain.com/public_html/sinfo.php(410): MemcacheSASL->setSaslAuthData('someuser', 'pasword')\n#1 
{main}\n  thrown in /home/user/domains/domain.com/public_html/sinfo.php on line 103\n'

Regards
 
Back
Top