rolf Posted December 30, 2006 Share Posted December 30, 2006 I closed my previous post on this issue a bit too early...Following an upgrade from PHP 4.3.9 to 4.4.4, Apache (2.0.52) now starts cleanly with php_memcache.dll extension installed. The problem now is, this code... $memcache->connect('localhost') or die ("Could not connect");... gives this error...Can't connect to localhost:11211, Unknown error (0)Most documentation I found refers to php_memcache.dll as an interface to memcached, so on linux machines it seems pretty obvious that memcached must be installed. For windows, however, the PHP manual says nothing about installing memcached-win32. Do I have to install memcached-win32 as well?I'd be really grateful for help on this.ThanksRolfBTW. phpinfo shows this:memcachememcache support enabled Active persistent connections 0 Revision $Revision: 1.70 $ Directive Local Value Master Value memcache.allow_failover 1 1 memcache.chunk_size 8192 8192 memcache.default_port 11211 11211 memcache.max_failover_attempts 20 20 Link to comment https://forums.phpfreaks.com/topic/32262-cant-run-memcache-with-php-444/ Share on other sites More sharing options...
rolf Posted January 1, 2007 Author Share Posted January 1, 2007 I finally found the answer.For linux users the PHP documentation seems clear. But for win32 users, the documentation fails to mention that, in addition to downloading php_memcache.dll and configuring php.ini, you must also install and start the win32 memcache service. Full instructions and binaries are available at http://jehiah.cz/projects/memcached-win32. I just followed the steps as provided and it worked without any problems.-Rolf Link to comment https://forums.phpfreaks.com/topic/32262-cant-run-memcache-with-php-444/#findComment-150766 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.