memcached on 64 bit Windows

Download memcached 1.4.4-14 from here (note that later versions of memcached have been modifed and DO NOT work as windows services).

Unzip to a folder on your computer (say d:\memcached)

Open an ADMINISTRATOR command window, and navigate to the memcached folder:

image

Typing “memcached –h” will display all the available options

1. Install memcached service on your system by typing

memcached.exe –d install

2. Tell memcached to start

memcached.exe –d start

You are done.. When you view your taskmanager, you will notice memcached service running:

image

This service is setup to autostart with windows so you will not need to repeat the above.

Now, if you want to access/use memcached via php (or Zend Framework), you need to install  php_memcache extension.

php_memcache.dll comes bundled in a zip file available here (Many thanks to Anindya for making this available). Extract and save the dll file in your php ext directory.

Edit your php.ini and add this line:

extension=php_memcache.dll

Restart Apache.. Navigate to your phpinfo and you should see a section for memcache.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s