How to Install Memcached (Caching Server) on CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

14 Responses

  1. Orazio says:

    Hi Ravi,

    I followed this fantastic guide and installed memcache. Now on my server, if I test it from the console, memcache is installed, but if i try from PHP info it is not installed. I need to speed up Prestashop but even from the control panel of Prestashop Memcache it is not seen. What am I doing wrong?

    • Ravi Saive says:


      Please install Memcached PHP extension to work with Memcached daemon.

      # yum install php-pecl-memcache
  2. olidev says:

    Nicely explained. Why some prefer CentOS over Debian? To me, Debian has been really easy to setup. It was also really easy to configure Memcached with PHP on Debian. Do you think it is because of performance or maybe security?

  3. landy says:

    With server have 1G ram, how many config Cachesize=?

  4. De Nguyen says:

    Could you show me how about the hardware requirement to install Memcache?

  5. bala says:

    when editing memchached file pls put -l local host that is not “-1” thats “l”

  6. RAJ says:


    Every thing fine but now how can we route all the Users to Memcached server to avail the cache service?

  7. Umesh Gaire says:

    Hi, I am a subscriber of your site. And I found a confusion; at the firewall you have inserted the IP ranges from to for Port 11211

    what I need to put there ? should I need to insert there my vps’ ip address or local ipaddress ? Please help me. What I need to put there ?

  8. FiFi says:

    In the Enable EPEL Repository section, under RHEL 5/CentOS 5 64-bit, the second command has an extra “wget” at the start. It should just be an “rpm” command like the second command in the other related sections, but it has “wget rpm …” and the “wget ” is extra.

  9. Ravi says:

    Good one ….

Leave a Reply to Ravi Saive Cancel reply

Your email address will not be published. Required fields are marked *

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