To install the Memcached Server on Windows, we need to have its “exe” or “batch” process file to execute. However, Memcached server was written for Unix/Linux based operating system and you can’t get a Windows version from Memcached server official website.
On my PHP 5.6 site I have been using the Memcache extension to interface with the memcached daemon. As the extension has a matching DLL, it meant I could deploy it on my Windows dev machine as well and all was good.
This extension has been abandoned however, and there is no official support for PHP7. So I would like to move to the MemcacheD extension instead. The problem is that I can't find any windows DLL version for this. There is this post from 5 years ago on StackOverflow but nothing since that I can find.
There seem to be no official plans to build a Windows DLL, but since PHP provides instructions for how to compile one (beyond what I can do without help), I'm hoping someone else knows of a source compatible with PHP 7.2
1 Answer
Please find php_memcache.dll for php7.0.x, php7.1.x, php7.2.xhttps://github.com/nono303/PHP7-memcache-dll
Memcached Windows Server Settings
- vc14 & vc15
- x86 & x64
- ts & nts
You can also try:The new memcached
extension doesn't work on Windows because libmemcached
doesn't work on Windows. However, someone seems to have gotten the old memcache
extension to install on Windows. I can't find a nice pre-compiled binary, but, after a lot of digging, I found a PHP Bug Report about this issue. Someone there seems to have found a solution:
[2016-01-20 23:11 UTC] php at alternize dot com
the branch 'NON_BLOCKING_IO_php7' of the git repository https://github.com/websupport-sk/pecl-memcache.git builds fine against php 7.0.2 in win32 x86 thread-safe mode. i have not tested it with non-thread-safe and/or x64.
to build the php_memcache.dll, i followed the instructions on https://wiki.php.net/internals/windows/stepbystepbuild#building_pecl_extensions using: