Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i tried installing memcache from another repo and it all went wrong:

[root@mail ~]# php -v
PHP Warning:  PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

How can i completely uninstall memcached and memcache and then install it to be compatible with PHP 5.2.10?


share|improve this question
up vote 1 down vote accepted

You should install it with pecl:

sudo pecl install memcache

This will compile the extension on your environment.

share|improve this answer
thanks, but how can i remove the prior installation and make sure that your cmd line "sudo pecl install memcache" will download from the correct repo? – andufo Nov 26 '10 at 14:09
mmm i was missing yum install zlib-devel, that is why i could not install memcache with pecl :s -- thanks! – andufo Nov 26 '10 at 14:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.