Laravel + PHP 7 + Windows + Memcached extension (Class 'Memcached' not found) -
i´m struggling 2 days on this... , googling doesnt me either.
problem: when try access page on newly configured laravel installation, following message:
class 'memcached' not found
my enviroment
- windows 7
- apache 2.4
- php 7.1.8 (ts, x86, apache module)
if execute on command line:
λ php -i | grep memcache memcache memcache support => enabled memcache.allow_failover => 1 => 1 memcache.chunk_size => 32768 => 32768 memcache.compress_threshold => 20000 => 20000 memcache.default_port => 11211 => 11211 memcache.hash_function => crc32 => crc32 memcache.hash_strategy => consistent => consistent memcache.lock_timeout => 15 => 15 memcache.max_failover_attempts => 20 => 20 memcache.protocol => ascii => ascii memcache.redundancy => 1 => 1 memcache.session_redundancy => 2 => 2 registered save handlers => files user memcache
after googling, found out laravel requires module memcached (yeah... final d). module managed load, not work laravel.
on post (class 'memcached' not found-(php 5.4.9,windows 7)), @rockerboo said module wasnt built windows, , "should" work if compile it...
my resources ended... didnt found module dll, , have no idea on how compile myself.
anyone knows new this? or perhaps, pinpoint me on how myself??
thx anyway!
to facing problem, found workaround. there´s package uses php_memcache library (yeah, without d).
this library has dll compiled (for php7), , ready download here:
https://github.com/nono303/php7-memcache-dll
and package laravel 5 can downloaded here:
https://packagist.org/packages/swiggles/memcache
follow instructions install both, , your´re ready go!
Comments
Post a Comment