Results 1 to 3 of 3
  1. #1

    How To install Memchace (WHM)

    Can someone guide me on how to install this on a CentOS machine, when I run the command "yum install memcached" = it complains about dependency errors.

    PHP Code:
    ErrorMissing Dependencyperl(Term::ReadKeyis needed by package memcached-1.4.5-1.el5.rf.i386 (rpmforge)
    ErrorMissing Dependencyperl(AnyEventis needed by package memcached-1.4.5-1.el5.rf.i386 (rpmforge)
    ErrorMissing Dependencyperl(YAMLis needed by package memcached-1.4.5-1.el5.rf.i386 (rpmforge)
    ErrorMissing Dependencyperl(AnyEvent::Handleis needed by package memcached-1.4.5-1.el5.rf.i386 (rpmforge)
    ErrorMissing Dependencyperl(AnyEvent::Socketis needed by package memcached-1.4.5-1.el5.rf.i386 (rpmforge

  2. #2
    Join Date
    Jan 2011

    I hopes the below given information will help you in installing memcache.

    1) Install memcached.

    Enable rpmforge respository to install latest memcached rpm using yum.

    For i386 / i686

    rpm -Uhv

    For x86_64

    rpm -Uhv

    Use yum to install memcached

    yum -y install memcached

    As soon as memcached installation completed, edit options for memcached in /etc/sysconfig/memcached to meet your need.

    vi /etc/sysconfig/memcached

    PORT=”11211″ #define on which port to urn
    USER=”nobody” #same as apache user
    MAXCONN=”1024″ #maximum number of connections allowed
    CACHESIZE=”64″ #memory used for caching
    OPTIONS=”" #use for any custom options

    Save the file. All options can be seen by using following command

    memcached -h

    Start memcached

    /etc/init.d/memcached start
    Starting Distributed memory caching (memcached): [ OK ]

    to check the running status of memcached

    /etc/init.d/memcached status
    memcached (pid 6475) is running…


    netstat -anp | grep 11211
    tcp 0 0 :::11211 :::* LISTEN 6475/memcached
    udp 0 0* 6475/memcached

    2) Install PHP Extension.

    Download and install latest stable memcache version from PECL.

    cd /usr/src
    tar zxvf memcache-2.2.5.tgz
    cd memcache-2.2.5
    make install will be install in php modules directory, now enable extension in php.ini

    To find out your php.ini location, execute following command

    php -i | grep php.ini
    Configuration File (php.ini) Path => /usr/local/lib
    Loaded Configuration File => /usr/local/lib/php.ini

    vi /usr/local/lib/php.ini

    extension = “”

    save the file and restart httpd server.

    /etc/init.d/httpd restart

    To check whether memcache extension is loaded in php, execute the below given command.

    php -i | grep memcache
    memcache support => enabled
    memcache.allow_failover => 1 => 1
    memcache.chunk_size => 8192 => 8192
    memcache.default_port => 11211 => 11211
    memcache.default_timeout_ms => 1000 => 1000
    memcache.hash_function => crc32 => crc32
    memcache.hash_strategy => standard => standard
    memcache.max_failover_attempts => 20 => 20
    Registered save handlers => files user sqlite memcache
    PWD => /usr/src/memcache-2.2.5
    _SERVER["PWD"] => /usr/src/memcache-2.2.5
    _ENV["PWD"] => /usr/src/memcache-2.2.5

    " Your work is to discover your work and then with all your heart to give yourself to it. "

    That's the mark of a true professional !

  3. #3
    issue resolved thanks to the following article:

Similar Threads

  1. WHM Auto Install
    By Mark L in forum Hosting Software and Control Panels
    Replies: 10
    Last Post: 09-09-2004, 04:29 PM
  2. ssl install at WHM
    By jpayam in forum Hosting Security and Technology
    Replies: 1
    Last Post: 09-03-2004, 01:52 AM
  3. WHm Install Problems...
    By darant in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 04-06-2004, 04:17 PM
  4. Install Cpanel/WHM?
    By Rudzer in forum Dedicated Server
    Replies: 5
    Last Post: 12-01-2002, 11:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts