Troubleshoot - by Hostrare
Free & open-source, high-performance, ordered memory object caching policy, generic in character, but indicated for use in promoting up dynamic web applications by relieving database load.
Memcached is an in-memory key-value market for small chunks of temporary data (strings, objects) from results of database calls, API calls, or page rendering.
Memcached is modest yet strong. Its simple design prefers quick deployment, the comfort of development, and resolves many problems facing large data caches. Its API is available for most popular languages.
memcached: High Performance, Distributed Memory Object Cache server combination.
Perl-Cache-Memcached: Perl client (library) to work with Memcached server.
python-Memcached: Perl client (library) to work with Memcached server.
PHP-pecl-Memcache: PHP increase to work with the Memcached server.
First, we want 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 want to download and install it. Type following sequence of management 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.