How to install Memached extension in Xampp

What is memached? How do we do installation in XAMPP?

Patrick Wan


Memcache is a caching system used to speed up web applications by holding small pieces of arbitrary data, it could be broadly compared to the $_SESSION variable in PHP, but memcache works across the whole application not just on a per user basis and has been successfully proven to make great gains in speed increases on web applications.

Below step is to configure memcache in XAMPP.

1) Enable the module Memcache.

It can be done by editing the php.ini file(As per my system setup location is E:\xampp\php\php.ini)

Serach for the text ‘;extension=php_memcache.dll’ andreplace it with ‘extension=php_memcache.dll’

If the text ‘;extension=php_memcache.dll’ is not available in php.ini file add the below content to it.


memcache.allow_failover = 1
memcache.chunk_size =8192
memcache.default_port = 11211

2) Download the necessary php_memecache.dll file.

You can download it form

Make sure that you are downloading the correct ‘php_memcache.dll’ file that align with the PHP version you are using.

Otherwise there us a chance to you might be getting the following error

PHP Warning: PHP Startup: Unable to load dynamic library ‘xampp\php\ext\php_memcache.dll’ — The specified module could not be found

3) Unzip the php_memcache.dll file and put it into your php ext folder. In my case its E:/xampp/php/ext/

4) Download memcache server for windows

You can download it from

5) Unzip and put the files in memcached folder into a desired directory (e.g. e:/memcached/)

Run the memcached.exe file as administrator.

6) Install the memcache service

Type the following into the command line




Patrick Wan

My name’s Patrick. I’m a Software Developer, experience in Laravel, Vue Js, React Js, Livewire, Jquery, Codegniter, NPM, GIT. I have 5 years plus experience.