What is Memcached?
Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

memcached_banner75

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Please use following commands for installtion;
[root@ip-192-168-2-125 wordpressapi]# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm

[root@ip-192-168-2-125 wordpressapi]# yum remove php-common

[root@ip-192-168-2-125 wordpressapi]# yum install php-pdo php-mcrypt squirrelmail php-pecl-apc php-xml php-gd php-devel php php-imap php-pgsql php-pear php-soap php-mbstring php-ldap php-mysql php-cli php-pecl-memcache

[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/memcached restart
Shutting down Distributed memory caching (memcached): [ OK ]
Starting Distributed memory caching (memcached): [ OK ]

[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

[root@ip-192-168-2-125 wordpressapi]# vim /etc/php.ini
In php.ini file Please find the “extension=modulename.extension” words
Under that sentance please paste following line:
extension=memcache.so
Note: dont comments that line.

[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ip-192-168-2-125 wordpressapi]#

You might also like

Memcached Server with Rails
How we configure memcached on fedora with machine restart
How to use memcached with php
Easy Steps for setting up nginx with php on Linux
Share Thunderbird Between Windows and Linux

6 Responses to “How to install php – memcached server on centos5 or any linux OS”

  1. This is a exceptional post, but I was wondering how do I suscribe to the RSS feed?

  2. This is a good post, I was wondering if I could use this piece on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away.

  3. Ione Fake says:

    This is a excellent piece of writing, I located your weblog researching aol for a similar topic and came to this. I couldnt get to much additional info on this post, so it was great to find this one. I will probably be back to check out some other articles that you have another time.

  4. Im glad I discovered this blog page, I couldnt find any info on this subject matter prior to. I also operate a niche site and if you want to ever serious in doing a bit of guest writing for me you should feel free to let me know, im always look for people to check out my blog site. Please stop by and leave a comment sometime!

  5. Thanks for producing such a good internet site on the ipad. I have been considering for a long time about buying one and your web site has convinced me to.

  6. Thank you so very much for publishing this.

Leave a Reply

Wordpressapi is developer code book.
wordpressapi on Facebook
© 2010 Wordpressapi. All Rights Reserved. Reproduction without explicit permission is prohibited.