This topic contains 1 reply, has 2 voices, and was last updated by wangari wangari 2 years, 4 months ago.

  • Author
    Posts
  • #590
     Adriane Phila 
    Participant

    How do i install memcache?

  • #591
    wangari wangari 
    Participant

    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 127.0.0.1 -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 http://libmemcached.org/libMemcached.html

    # wget https://launchpad.net/libmemcached/1.0/1.0.17/+download/libmemcached-1.0.17.tar.gz
    # 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 127.0.0.1
    # vim /etc/rc.d/rc.local
    // add this line
    memcached -d -u nobody -m 1048 -p 11211 127.0.0.1

    Add the following codes into php.ini

    # vi /usr/local/lib/php.ini
    // add this line
    extension=memcache.so

You must be logged in to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending
TD Web Services

 COPYRIGHT OF TD WEB SERVICES © 2017. ALL RIGHTS RESERVED.

or

Log in with your credentials

or    

Forgot your details?

or

Create Account