Lately, I work on the WordPress website that my client enables Memcache on their site. In order to develop the features and have the full test on my localhost. I need to install Memcache on WAMPserver. Today I am gonna share how to install and enable Memcache on Wamp.
I assume you already have Wampserver installed on your computer. If you don’t install WAMPserver yet, you can download and install it from this link.
Let’s do it
- download the Memcache package that compatible with your PHP version and Wamp version (32 or 64 bits). I download the Thread Safe one.
- extract the downloaded package then copy the php_memcache.dll into your extensions folder of your PHP such as E:\wamp64\bin\php\php5.5.38\ext. The php5.5.38 is your PHP folder.
- open the php.ini file and search for extension=php_bz2.dll which should be the first extension on the extensions list then copy extension=php_memcache.dll and paste at the end of the extensions list.
- restart Wamp server
- now you should see the Memcache loaded when you visit http://localhost
If the steps above don’t work, you just open the error log file at the logs folder at the root directory and check the error there.
More Memcache packages can be found here.