1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Easy way to instale Memcache on WHM and configure it?

Discussion in 'Server Configuration and Hosting' started by Claudio, Aug 8, 2012.

  1. Claudio

    Claudio Well-Known Member

    I would like to know which is the best way to install memcache on a CentOS server with WHM installed.

    I know that I have to configure config.php file on xenforo folder, but which are the best parameters to set in the memcache configuration file?
  2. Digital Doctor

    Digital Doctor Well-Known Member

    Popular topic.


    This one seems good.

    Solution is simple, build memcache and include it in php.ini. Let see, how we do it.
    Step 1 – Download memcache
    mkdir repo
    cd repo
    wget http://pecl.php.net/get/memcache-3.0.6.tgz
    tar -xvfz memcache-3.0.6.tgz
    Step 2 – Compilation & installation
    cd memcache-3.0.6
    you should see something like this;
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20060613
    Zend Extension Api No: 220060519
    make install
    Step 3 – Load in php.ini
    Enable memcache in php.ini.
    echo "extension=memcache.so" >> /usr/local/lib/php.ini
    service httpd restart
  3. Claudio

    Claudio Well-Known Member

    I get this error:

  4. Slavik

    Slavik XenForo Moderator Staff Member

    On Centos?

    yum install memcached.x86_64 php-pecl-memcache.x86_64
  5. Banana Pup

    Banana Pup Well-Known Member

    Be sure after you do to enable it in WHM too. Software ->> Module Installer ->> PHP Pecl and search memcache. You should get two results, memcache and memcached, install both then restart Apache.

Share This Page