The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Update memcached -- how?

Discussion in 'General Discussion' started by pkiula, Jan 14, 2012.

  1. pkiula

    pkiula Member

    Joined:
    Jan 14, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi. I want to update memcached from the current 1.2.0 to the latest 1.4.5.

    I have EPEL and RIMO repositories (much more useful than the crap CentOS "Base" repo).

    When I do "yum update memcached", I see that memcached.x84_64 1.4.5 has been installed. Somewhere.

    Yet, when I restart memcached (service memcached restart) and do a "memcached -h", I still see 1.2.0.

    What's this? How do I upgrade 1.4.5?

    Thanks.
     
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    You might try comparing the binary to what RPM things the binary should be. I installed it to test and I get:

    grimlock ~ # which memcached
    /usr/bin/memcached
    grimlock ~ # rpm -V memcached

    (on Centos6 x64)

    Thanks!
     
  3. pkiula

    pkiula Member

    Joined:
    Jan 14, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Not sure what that tells me. Here's the output from my machine:


    Code:
    [B]> which memcached
    [/B]memcached is /usr/local/bin/memcached
    memcached is /usr/bin/memcached
    memcached is /usr/local/bin/memcached
    memcached is /usr/local/bin/memcached
    
    [B]> rpm -V memcached
    [/B]S.5....T  c /etc/sysconfig/memcached
    .....U..    /var/run/memcached
    
    
    [B]> memcached -h
    [/B]memcached [COLOR="#FF0000"]1.2.0[/COLOR]
    ..
    
    So it's still the old one :(
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Try the following:

    Code:
    /usr/local/bin/memcached -h
    /usr/bin/memcached -h
    You have two binaries of it and one likely differs from the other. If you do have two different binary versions, you could try to move the one you do not want and symlink it to the other one.
     
  5. pkiula

    pkiula Member

    Joined:
    Jan 14, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This was exactly it. Thnks so much!
     
Loading...

Share This Page