Troubleshoot - by Hostrare
Free & open-source, high-performance, shared concept object saving policy, generic but designed for use in racing up effective web statements by alleviating database contents.
Memcached is an in-memory key-value store for small chunks of temporary data (strings, objects) from issues of database calls, API calls, or page rendering.
Memcached is easy yet strong. Its simple layout helps quick deployment, ease of improvement, and solves many difficulties facing big data caches. Its API is available for the greatest common words.
memcached: High Production, Distributed Concept Object Cache server package.
Perl-Cache-Memcached: Perl client (library) to work with Memcached server.
python-Memcached: Perl customer (library) to run with Memcached server.
php-pecl-Memcache: PHP addition to work with the Memcached server.
First we need to check if libevent is installed or not?
whereis libevent
Try to install it through yum
yum install libevent
If you don’t find it, then we need to download and install it. Type following sequence of commands on your shell
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gztar xfz libevent-2.0.21-stable.tar.gzcd libevent-2.0.21-stable./configuremakemake install
Try to with Yum
yum install memcached
or
Download and install from source.
wget http://memcached.googlecode.com/files/memcached-1.4.15.tar.gztar xfz memcached-1.4.15.tar.gzcd memcached-1.4.15./configuremakemake install
Run Memcached as a daemon (d = daemon, m = memory, u = user, l = IP to listen to, p = port)
memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211
Try to install it through easyapache. Otherwise, use the following steps.
wget http://pecl.php.net/get/memcache-3.0.8.tgztar zxvf memcache-3.0.8.tgzcd memcache-3.0.8phpize./configuremakemake install
vi /usr/local/lib/php.ini
Find the extension as below and if it is not existed, add it in the php.ini.
extension=memcache.so
Restart the Apache services.
service httpd restart
Tomonitor the memcached status
watch “echo stats | nc 127.0.0.1 11211”
$ echo “stats” | nc 127.0.0.1 11211
watch ‘php -r ‘”‘”‘$m=new Memcache;$m->connect(“127.0.0.1″, 11211);print_r($m->getstats());'”‘”
our suuport team here for you 24/7
+8801977507015support@hostrare.comsend a leter Whether you are looking for a personal website hosting plan or a business website hosting plan, We are the perfect solution for you. Our powerful website hosting services will not only help you achieve your overall website goals, but will also provide you with the confidence you need in knowing that you are partnered with a reliable and secure website hosting platform.