Install memcache

  • Step 1: Login into your WHM panel and using easyapache enable Memcache

  • Step 2: SSH into your server and fire this command yum install memcached.x86_64 php-pecl-memcache.x86_64

  • Step 3: Go to Software -> Module Installers -> PHP Pecl, Search for memcache and then install both memcache &memcached

  • Step 4: Restart apache once, Fire: service httpd restart

  • Step 5: Start memcache by firing this command: memcached -d -m 512 -l -p 11211 -u nobody (d = daemon, m = memory, u = user, l = IP to listen to, p = port)

  • Step 6: Check your memcached server is running successfully: ps -eaf | grep memcached

    If you are unable to install "memcached", do the following:
  • Download the latest source from

    # wget
    # tar xvf libmemcached-1.0.17.tar.gz
    # cd libmemcached-1.0.17
    # ./configure
    # make & make install


    Start the memcached as daemon process and ensure memcached is automatically started after each server reboot.

    # memcached -d -u nobody -m 1048 -p 11211
    # vim /etc/rc.d/rc.local
    // add this line
    memcached -d -u nobody -m 1048 -p 11211

    Add the following codes into php.ini

    # vi /usr/local/lib/php.ini
    // add this line
  • 0 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

How To: Back Up MySQL Databases From The Command Line

While automated backups are important, sometimes you just want to take a quick and dirty snapshot...

How To Install MariaDB on CentOS 6

MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and...

How to Display (List) All Jobs in Cron / Crontab

View Root’s Cron Jobs crontab -l  View a User’s Cron Jobs crontab -u username -l Example with...

How To: Automate Server Scripts With Cron

Servers can automatically perform tasks that you would otherwise have to perform yourself, such...

How to find sending spam emails and enable mail header in php.ini

- In Linux servers if there are a lot of emails in the queue "over 100" emails. you can check if...