Installing Memcached for PHP 5.3 on Windows 7
by Shiki

First off, all credits go to this guy. I’m just listing the steps on how I did it in Windows 7 with PHP 5.3. Also, I tested this using WampServer but I believe it should work on any PHP install.
Install memcached
- Download the Memcached Win32 library here: http://code.jellycan.com/memcached/. Extract the downloaded archive file in a
directory (e.g.
c:\memcached). There should be amemcached.exein there. - Run a command prompt as an administrator. Some info on how to do that here.
Install memcached as a service. Go to the memcached directory, type and run:
memcached -d installStart the memcached service by running:
memcached -d start
Install PHP Memcache extension (php_memcache.dll)
- Chances are you don’t have
php_memcache.dllin your PHP extensions yet. You can download a build of it here. Make sure to download the correct one for your system. Mine was 32bit and PHP 5.3 so I used this: php_memcache-cvs-20090703-5.3-VC6-x86.zip. The archive should containphp_memcache.dll. Extract the archive to your php extensions directory. On my system (WampServer), this wasC:\wamp\bin\php\php5.3.0\ext. Edit
php.ini, add this line to enable the extension:extension=php_memcache.dllThis is a little easier for WampServer users because there’s a menu for enabling extensions ^_^x
Test
Test the installation using the sample PHP code here: http://www.php.net/manual/en/memcache.examples-overview.php.
this is sucks, the php client library is not memcacheD its just ‘memcache’ (without D), if any of you find this fucking D please let me know.
@orlando Thanks for pointing that out. Sorry I always get confused by that D.
Tnx man, you saved my life :D
how are we supposed to let you know? you didn’t provide contact details ^^
Thanks for this article
Great helpful work Shiki! worked great for me. Thanks.