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.




