Memcached is a caching system that aims to speed up web applications by reducing loads. We will require RPM forge to make PHP available.

* Start with the package installation –

wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-*.rpm
rpm –install rpmforge-release-*.rpm

* yum install –enablerepo=rpmforge memcached

* MemCached is now installed. In order to test it, you can try the following –

memcached -m 512 -u nobody -vv

* Start Memchached daemon. Please make a note, that it does not have a configuration file. it only has command lines to follow –

./memcached -d -m 2048 -l 10.0.0.40 -p 11211 -u nobody

The above lines starts with 2GB RAM from IP to the port.

-m – Amount of memory in MB
-l – IPs to be watched
-p – Port

You can also set it up as a caching Memory server

Installation of PHP MemCache Extension –

* cd /files/download/
* wget http://pecl.php.net/get/memcache-2.1.2.tgz
* tar -xvf memcache-2.1.2.tgz
* cd memcache-2.1.2
* phpize && ./configure –enable-memcache && make
* Now you can copy memcache.so to the default directory
* vi /etc/php.ini
* Add – extension=memcache.so
* /etc/init.d/httpd restart
* phpinfo() will now show Memcache

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How-to-Use-Plesk-to-Delete-an-FTP-Account.png

How to Use Plesk to Delete an FTP Account

In this article, we will explain to you how to use Plesk to delete an…

Process of Creation of account using WHM (WebHostManager)

Here is a more detailed explanation of the process for adding a new domain account…

Execute CGI outside CGI-bin

By default, many web servers (like Apache) are configured to run CGI scripts only inside…