How to Install Memcached in Windows 7 / WAMP ?

           How to install memcached in WAMP/ Windows  ?

                 Today I have an new article for you all here. Last time I did post article about server side javascript Node.js. Today I am going to show you how to install Memcache in WAMP 2.1 / Windows. Now a days, lots of well known websites like Facebook, Twitter, Digg, Youtube are using open source, high performance distributed memory object caching. Which is known as Memcached. Lots of peoples are confortable with windows and they are interested to develop application in windows environment only. So here is an article to show you , “ How to Install Memcached in Windows 7 (WAMP) ? “  
                I am using WAMP server 2.1 and PHP version 5.3 in my system. Installation steps are given below –
   Step 1 :  
                 First of all you need to download I search a lot and at last got the appropriate package, which you can download from here.
   Step 2 :
                  Then you need to unzip the package and you will get memcached.exe. Now what you need to do is, paste it in your directory. I have paste it in my E:\memcache\memcached.exe. and my wamp server also in E drive.
   Step 3 :
                  So now open the directory and right click in the memcached.exe and run as administrator. Since we are using windows 7 so it will show directly in right click itself.
   Step 4:
                 Now it’s time to install the memcached in server. To do that, Just open your command prompt as administrator settings and type the path of your executable file and space and –d install then hit enter.
For your reference ,
  D:\> your path memcached.exe –d start
For further reference look at the screenshot which I added below,

Here you may face some problem. It’s may shows some error like “The program can't install because MSVCR71.dll is missing from your computer .“ Which I faced. Screen shots are given below for your reference.


   Step 5 :
                    To solve this issue you need to download the MSVCR71.dll file. I searched a lot for appropriate version and finally I got it. Here is the link You can download from here. Download the dll and paste it inside your system 32 folder which is in C:\Windows\system32  and again go to the command prompt and installation process and hit enter. Now it won’t show you any error. So that you are sure that your memcached installed successfully.

Step 6 :
            After insatalling go to services inside control panel and search for memcached server and start the service. Else you can go to command prompt and type start memcached server. You will get success messege.
Step 7 :
             Finally you have to change configuration in php.ini file to start working with you memcached with PHP. Then only php will configure with memcached. For this you need php_memcached.dll . You can download this dll from this link
              That’s all you have all steps. Now restart WAMP.  You are ready to work with memcached with php. Which will give you good performance.  Hope you like this tutorial and my posts.  

             Please do leave your valuable comments and let me know if you are facing any problem installing it.

Subscribe blog via RSS so that you will get all my updates when ever any new article will post here and do share.

In my next post i will show you how to use memcached with PHP.



  1. Hi Sanjoy,

    I installed the memcache successfully as per your tutorial but still its showing me the following error:

    Fatal error: Class 'Memcache' not found in \wamp\www\projectname\application\Bootstrap.php on line 160

    I'm using
    PHP 5.3.9
    Wampserver 2.2
    Zend Framework

    Please help how can I deal with this issue.

    1. Hi !
      To be honest currently I don't have any idea about how to configure memcache class with zend framework. I guess zend is having the inbuilt class to provide caching system.

      Please follow the class which i provided in my next article. You need to create the class called Memcache and then using that class u need to perform your operation. If you created the above class in your server then just check the file path correctly.

      Hope this will solve your problem.

      With Thanks & Regards,

  2. Thanks filled in in the missing pieces for me!

  3. thanks for the great article!!!

Follow Us On Facebook Open Source Web Developers by Appsntech facebook group Twitter Open Source Web Developers by Appsntech twitter group Google+ Open Source Web Developers by Appsntech Google group Linkedin Open Source Web Developers by Appsntech, LinkedIn group
Copyright @2011-2015 All rights reserved. Powered By- Sanjoy Dey Productions