i have installed on my server and home server (xampp) memcached with the extions memcache.so / memcache.dll (MemCache)

and today i noticed that it gives MEMCACHED too, and i need to run memcached cause of the memcached command "append" which dont supports memcache

i googled all the day but didnt find any tut how to install memcached for php (most tuts are for memcache and not for memcached)

Can somebody help me with this problem (i want install it on my centos server and on my windows xampp server) My php version is 5x

Thank you very much!

link|improve this question
feedback

2 Answers

memcached is maintained as a php pecl module. If you use php 5.3 on CentOS and the remi repository it is quite trivial to install this module - simply yum --enablerepo=remi install php-pecl-memcached. All the necessary dependencies are in the remi repository, although you should probably remove the standard CentOS version of libmemcached if it is already installed.

I have never installed this module on Windows. This site has php_memcache but not php_memcached. Thus from a brief look at the subject I would recommend not using Windows for this purpose and setting up a development virtual machine. This is what most of our developers do, and the rest are on linux or OSX.

If you do decide to install it anyway I believe you will probably need to compile it from source. In future it may be provided via the official pecl repository, see http://windows.php.net/.

link|improve this answer
feedback

Since you're running PHP on a Windows box, only think about things that are .dll - nothing else is useful. It is also important to know that only Memcache (no d) extension will work for you, the Memcached extension (http://us2.php.net/memcached) does not work on Windows at this time.

Grab the DLL for Memcache from http://downloads.php.net/pierre/. If you don't already have the memcache daemon running on your Windows box, you will need to install that too. (See http://stackoverflow.com/questions/1248066/memcached-extension-for-php-on-windows-server/6598890#6598890)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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