admin/ April 25, 2016/ Linux, Magento2/ 0 comments

Install Memcache on Ubuntu and setup with Magento2 (M2).

There are few steps below.

Step 1-:
Install Memcache required packages.

Open the Memcache configuration, Increase the memory size to 1GB.

Replace the line from


Restart memcache

Step 2-:
Open the php.ini and configure the php session to memcache.

Change the statement from


Step 3-:

Configure the Magento2 for memcache.
Open env.php of Magento2 instance

Replace the line from


Step 4-:

Clean the Magento2 cache.

Restart Apache Server.

Additional Step-:
To check the memcache.

At the prompt, enter

Output something like-:

Share this Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.