Install PHP-MemCache Module On Linux


tar -zxf memcache-2.1.2.tgz
cd memcache-2.1.2

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

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

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

php -i| grep php.ini

add the line


Restart Apache

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

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

should show something like

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.

Leave a comment

Leave your opinion

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: