How to use MemcacheD instead of Memcache on PHP and Windows Xampp? - php

Sorry but, I've searched this question and I found a lot of old answers.
Now, I can use memcacheD instead of memcache on windows?
http://www.codeforest.net/how-to-install-memcached-on-windows-machine
I installed php_memcache.dll extension and memcached.exe server service, but this is memcache! (without "D"). in fact if I use
new Memcache;
it works fine, instead if I use:
new Memcached;
or
new MemcacheD;
doesn't work.
I would like to implement memcacheD (with "D" !!!) because I will use it on amazon Elasticache together Zend Framework Cache/Session and it works with memcacheD. Now I'm working in Xampp (windows) ambient. How to work with memcacheD in windows? I need another libraries?
Thanks a lot, I'm fighting for using this -.-
I'm using Win7 (64bit).
My DDL file is available here (php 5.6 - 5.6 Thread Safe (TS) x86):
http://pecl.php.net/package/memcache/3.0.8/windows
My memcached server version is 1.4.4 32bit version, available here
http://blog.elijaa.org/index.php?post/2010/10/15/Memcached-for-Windows&page

You're confusing the two. memcached is the Memcache daemon program (the d stands for daemon). This has to be running for you to use Memcache. This is NOT what you use inside PHP. You launch this inside Windows like you would any other program.
The Memcache PECL library is how you can connect to your running daemon. You use new Memcache inside PHP to create an object that connects to the daemon and then interacts with it.

I've been struggling with this myself, and it seems that the only solution is to compile the DLL yourself from source, because there are no official Windows binaries for the PHP memcached extension available. This is a related question: Does memcached.dll exist?

Related

Is it possible to install memcacheD (with a D) for php on windows so that I can use it with xampp?

I already know that it is possible to install memcache (not memcached, that is another program!) for PHP on windows to be used with xampp.
I am wondering if there are any solutions for a working memcached (mind the d at the end :))?
I have put several hours into this already, I have found out that you can install it with ease on linux.
And that HHVM has this preinstalled, you just need some dependencies such as libmemcached and so on.
But I develop on windows using xampp, so I would like to be able to use the memcached class from php on windows, too. I don't think swapping the database and using redis is an option for me because it is slow.
Even thoough phpredis is a fast C extension, but it is incompatible with HHVM.
There are countless tutorials on the web marketing how to install "memcache" on windows, but they are all just for the php memcache class (no d), not memcached.
The dll file you need to copy to D:\xampp\php\ext only exists for memcache and not memcached.
Can I develop with HHVM and memcached on windows using the php memcached class instead of the memcache one?

memcache, wamp, php 5.4, win8

I am using wamp, PHP 5.4 running on win 8,
I can't seem to get PHP to acknowledge the memcache dll.
I download php_memcache-3.0.8-5.4-ts-vc9-x86.zip (the only one I could find).
I copied the dll to C:\wamp\bin\php\php5.4.12\ext
I added extension=php_memcache.dll
restart the server.
but still I cannot use memcache, and it is missing from Loaded Extensions list.
Please supply a step-by-step instruction on how to set this up,
Thanks.
You have to install memcached as well.
php_memcached is only an interface to the memcached service that also has to be running on the system your Apache/PHP is running on.
This site seems to be offering a ready to go .exe
This may also help with getting it running

How do I reconfigure PHP to enable Thread Safety on my Lamp Server

I'm interested in using pthreads for my PHP application. Only problem is whenever I try to install it on my server using pecl install pthreads it tells me my PHP isn't configured using ZTS. Now I started googeling a bit and found out you need to recompile it with the source code. My problem is, I'm using LAMP and I don't want my whole setup to destroy itself but I'd really love to use Pthreads. Could somebody tell me how to still enable thread safety in a way that doesn't scr*w up my server?
My server is running Ubuntu 12.04. Apache2, MySQL and PHP 5.5.
Thanks!

Does memcached.dll exist?

Does the memcached (not memcache) extension exist for Windows? I have looked through old answers and haven't found anything.
It does not exist and is very unlikely to exist any time soon. The main problem is not the extension itself but the libmemcached library. This library is barely portable to anything but a linux system, so windows support won't happen anytime soon (using Visual C).
You can get the php extension "memcache" to use memcached with php on windows here http://downloads.php.net/pierre/
Memcached is the server daemon and you can get it for windows here http://splinedancer.com/memcached-win32/
The php extension also called memcached requires libmemcached which doesn't seem well supported on windows which is probably why that extension doesn't exist for windows.

Memcached for PHP 5.3

I have looked everywhere for some clues on how to run the Memcached extension in my WAMP windows development environment (thats right, the memcached with an D in the end, not memcache).
I already use memcache (without the D), but it would be handy to take part of memcached's more extended multiple-server features.
How can I get this up and running?
Thanks
memcached uses libmamcached, which -- according to the PHP Windows build team -- doesn't compile on windows. Therefore the extension can't be built either.

Categories