Install Memcache on XAMPP Windows

Here are the steps that should be followed when you install memcache.

  1. start your xampp.
  2. click on ‘config’ and open php.ini file.

search for

;extension=php_memcache.dll

If not found add

extension=php_memcache.dll

[Memcache]

memcache.allow_failover = 1

memcache.max_failover_attempts=20

memcache.chunk_size =8192

memcache.default_port = 11211

  1. download the filephp_memecache.dllfrom windows.php.net (make sure to check your php version and php_memcache.dll are same. Otherwise, it will through error.)

unzip it and paste ‘.dll’ file in the path xampp\php\ext, in my case it is F:\xampp\php\ext (I had to rename the file to memcache.dll but when you take a look on other sites that describes the steps for this, they don’t tell to rename, but I have done this in my project!).

  1. Download and installing Memcache server for windows

Download the Memcache.exe from jellycan

After completion of download, unzip and put the memcache.exe file into any desired directory of your choice (e.g. C:/memcached/). make sure folder name should be memcached

  1. Open thecmd prompt with “Run as Administrator” and execute the line to install

c:/memcached/memcached.exe -d install

then type

net start “memcached server”

In case you get memcache is already installed. then just go through line net start “memcached server”.

Or

For the installation purpose you can go to the path where you have copied the memcache.exe. and double click to the file, memcache is installed, now just add line net start “memcached server” and your memcache is enabled.

  1. Restart Xampp Apache
  2. Restart Memcached:

C:\Windows\system32> net start “memcached”

The memcached service is starting. The memcached service was started successfully.

C:\Windows\system32> net stop “memcached”

The memcached service is stopping. The memcached service was stopped successfully.

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