This article will help you install memcached on CentOS, in particularly Hostgator's CentOS 5.7 i686 standard. For the installation to work you must have root access privileges. You must also be able to use shell or connect through ssh using a program like PuTTy.
We are going to start by making a new folder named memcached:
mkdir ~/memcachedNext we need to get the latest Libevent version because Memcached requires libevent to handle its network IO stuff:
cd ~/memcached
wget https://github.com/downloads/libevent/libevent/libevent-2.0.15-stable.tar.gzNext we need to manually load the libevent library file into the system via the ld configuration:
tar xvfz libevent-2.0.15-stable.tar.gz
cd libevent-2.0.15-stable
./configure –prefix=/usr/local; make; make install
vim /etc/ld.so.conf.d/libevent-i386.confenter /usr/local/lib/ and save using :wq ; afterwards you need to reload the ld configuration:
ldconfigNow we are ready to get memcached since all its dependencies are installed:
cd ..Start memcached using:
wget http://memcached.org/latest
tar xvfz memcached-1.4.10.tar.gz
cd memcached-1.4.10
./configure;make && make test;sudo make install
memcached -d -u nobody -m 512 -p 11211 127.0.0.1Getting to this point we have memcached installed. However we still need a way to talk to it. This is where the client APIs come into picture. We will be using the PHP API, so we will install the PHP memcache extenstion.
cd ..Let's now enable the memcache.so extension in php.ini. First we must find our php.ini file:
wget http://pecl.php.net/get/memcache-2.2.6.tgz
tar xvfz memcache-2.2.6.tgz
cd memcache-2.2.6
phpize
./configure;make;make install
php -i | grep php.iniand then add extension = "memcache.so" to it using vim. All that is left to do is restart the apache server:
httpd restartAnd voila, you can start alleviating database load.
Subscribe now and get all the important articles delivered directly to you.
In this article we will take a look at some of the best pranks made this year and we will list our t
Accessing your Google Plus page on you mobile device is as easy as it gets.
Publishing a post on WordPress.com just became simpler. Users are now able to publish a new post no
During the DICE summit, the 15th annual Interactive Achievements Awards just took place
On April 8th, 2014, Microsoft will be ending the support of Windows XP