简体   繁体   中英

How to install memcached on windows 7 + PHP 5.6.1

I am having an incredibly hard time installing memcached. I went through a number of answers here on stackoverflow, as well as a couple of guides on other sites and I just cannot do it.

I've gotten to a point where I've installed memcached as a service and I have it running ( or at least so I think ). Following the baby-steps on this article. However when I try to instantiate new Memcache or new Memcached I get class not found. So then I went to search for memcached options in php.ini and had 0 matches on a search for memcached . I manually added extension=php_memcached.dll among the other extension declarations but then I have to have a dll which I cannot find anywhere ! Why don't they just put dll s on the php site? I found some dll for PHP version 5.4.0 but I received error "Compiled with old API key" or something of this nature.

Can someone please guide me through this hell?

MemcacheD is a daemon and it seems like you have installed it as a service already. Now you need to setup Memcahce PHP extension, so it will work as client for MemcacheD daemon. You need to search for php_memcache.dll (no D letter on the end). You can find it here: http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM