Install memcache on Windows 7 (XAMPP)

I am using Windows 7, 64 bit and PHP 5.3.5.

memcache displays like this in phpinfo:

Active persistent connections: 0 Version: 2.2.5 Revision: $Revision: 1.114 $ 

And I also get a connection error Notice: Memcache::get() [memcache.get]: Server localhost (tcp 11211) failed

This is what I did:

1) I installed and started the 64-bit memcached service: http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip .

2) I copied php_memcache.dll ( https://thinkam.googlecode.com/files/php_memcache-cvs-20090703-5.3-VC6-x86.zip ) to php / ext.

3) I added extension = php_memcache.dll in php.ini.

4) I restarted XAMPP.

What can I lose?

* Update *

Memcache seems to be listening on port 11211 right now, but now the following error appears from my application:

Note: Memcache :: get () [memcache.get]: Server 127.0.0.1 (tcp 11211) failed: the connection attempt failed because the connected side did not respond properly after a certain period of time or the connection failed because the connected host could not answer. (10060)

+7
windows php apache memcached xampp
source share
3 answers

You must start memcached server in Windows Control Panel->Administration->Services .

+3
source share

Run path/memcache.exe -d start and make sure memcache is running.

0
source share

As stated in the comments to @Gigala, you can get another php_memchace.dll for different php versions here http://windows.php.net/downloads/pecl/releases/memcache/3.0.8

Download the extension for your php version in the following example:

php_memcache-3.0.8-5.3-nts-vc9-x86.zip as "5.3" should be your version of php

It works for me

0
source share

All Articles