Leaseweb / LswMemcacheBundle

Symfony bundle for Memcache Doctrine caching and session storage in the Web Debug Toolbar.
MIT License
202 stars 57 forks source link

PHP7 memchached is not supported #86

Closed kironet closed 7 years ago

kironet commented 7 years ago

Hey,

what should I install to use this bundle with php7 if php7 doesn't support memcached?

Thanks

mevdschee commented 7 years ago

It is available now, just run sudo apt install php-memcache, that will do it.

I updated the docs on: https://github.com/mevdschee/TqdMemcacheBundle

kironet commented 7 years ago

Thanks for reply, I'm using centos and still see this error.

pecl/memcached requires PHP (version >= 5.2.0, version <= 6.0.0, excluded versions: 6.0.0), installed version is 7.0.13

GabrielAnca commented 7 years ago

Hi!

Apparently php7 support is not available in the memcached pecl packages yet. However, this seems to work: https://github.com/php-memcached-dev/php-memcached/tree/php7

Here you can find how to install it: https://github.com/ChiVincent/php-7-centos/blob/master/memcached.sh

mevdschee commented 7 years ago

AFAIK this bundle no longer uses pecl/memcached, it uses pecl/memcache.

LswMemcacheBundle uses the 'memcache' PHP extension (memcached client) and not the libmemcache based 'memcached' PHP extension.

This is what the readme says about this.

kironet commented 7 years ago

Oh, then I should uninstall memcached and install memcache. Thanks

mevdschee commented 7 years ago

Not sure, but in your case I would use this howto:

http://boomshadow.net/tech/installs/how-to-install-php-memcache/

And use the source code from this site:

https://github.com/websupport-sk/pecl-memcache/tree/NON_BLOCKING_IO_php7

It is much easier is to use Ubuntu Xenial (16.04), which has PHP 7 and the corresponding pecl/memcache version 3.0.9-dev in the repositories (sudo apt install php-memcache).