Install PHP-MemCache Module On CentOS 5.0 + RHEL

January 17, 2009 | In: Apache, Installation, PHP

Download

wget http://pecl.php.net/get/memcache-2.1.2.tgz
tar -zxf memcache-2.1.2.tgz
cd memcache-2.1.2

phpize &&
./configure –enable-memcache
make
make install

This should create memcache.so in your extenstion directory (/usr/lib/php/modules)

If it is not done copy the file memcache.so to the default module directory.
locate your php.ini file

php -i| grep php.ini

add the line

———————
extension=memcache.so
———————

Restart Apache

/etc/rc.d/init.d/httpd restart

check the module is working
php -i| grep memcache.

should show something like

=============
memcache
memcache support => enabled
memcache.allow_failover => 1 => 1
memcache.chunk_size => 8192 => 8192
memcache.default_port => 11211 => 11211
memcache.max_failover_attempts => 20 => 20
Registered save handlers => files user memcache
OLDPWD => /usr/local/src/ezsmsupport/memcache-2.1.2
=============

Also, you can find it in your phpinfo page.
Thats all.

mm
Hi All… I have been working the IT Industry since last ten years… Specialized in Linux, Cloud Infrastructure and Solution Design.
On the hobby friend, I do research on IOT, Micro-controllers, Electronics etc.
Music is my passion..Connect me on..

Comment Form

*

Authors

mm
Presoon John

Hi All... I have been working the IT Industry since last ten years... Specialized in Linux, Cloud Infrastructure and Solution Design.
On the hobby friend, I do research on IOT, Micro-controllers, Electronics etc.
Music is my passion..Connect me on..

Access this post via Mobile

Scan the QR Code
QR Code Generator

Categories