Many people seem to think that configuring your WAMP stack to use memcached is difficult to do. Personally, I think it is very easy, providing you have the right information at hand.
So here it is:
- The first thing in installing memcached with wamp is to install the Memcached service. Go to this site and download the Win 32 binary version.
- Inside the download you will find a memcached.exe file. Extract this to C:\memcached
- Now to install the service, open a command window and enter the following
- If all of this was successful, you should get a command line that says “The memcached server service was started successfully.”
- The next thing to do is to add the PHP extention. Open your php.ini file and locate your extentions. At the bottom, add the following:
- Finally, we need to download that dll file. You can get it from here. This page has two download files. You only need one, but you may need to try both to get things working. When you have done all this, restart PHP and Apache and run a phpinfo(). If memcached does not feature on this page, download the other dll and repeat the process.
- Assuming all of the above is ok, you should be able to run the following test script and have some information dumped out onto your screen:




