rolf Posted December 29, 2006 Share Posted December 29, 2006 Hello everybody,I have a problem getting memcache to work and would like to ask for your help.I’ve been using WAMP (XP SP2, Apache 2.0.52, MySQL 4.1.21, PHP 4.3.9) without trouble for months now. To make use of memcache, I visited http://pecl4win.php.net/ext.php/php_memcache.dll to fetch php_memcache.dll. The closest (and oldest) version available there was for PHP 4.3.11 – which worried me a little. However, since I can find nothing more suitable, I downloaded it into my extensions directory (C:\php\extensions). I then edited c:\windows\php.ini to uncomment:extension=php_memcache.dllextension_dir = "c:\php\extensions\"Restarting apache now results in the error message“Unknown(): Unable to load dynamic library ‘C:\php\extensions\php_memcache.dll’ – The specified module could not be found.I double-checked that my extensions directory is in my system %PATH%, so I really don’t understand why the dll cannot be found.I’d be very grateful for any help on this.Thanks,Rolf. Quote Link to comment https://forums.phpfreaks.com/topic/32179-solved-cant-install-memcache-for-php-439/ Share on other sites More sharing options...
wildteen88 Posted December 29, 2006 Share Posted December 29, 2006 In order to use that extension it will have to be the same version as the version of PHP your are using. Upgrade PHP to the latest version for PHP4 which is PHP4.4.4 Quote Link to comment https://forums.phpfreaks.com/topic/32179-solved-cant-install-memcache-for-php-439/#findComment-149358 Share on other sites More sharing options...
rolf Posted December 29, 2006 Author Share Posted December 29, 2006 I was hoping to avoid that... But I suspect you're right...Thanks for the advice. I'll try it.Rolf. Quote Link to comment https://forums.phpfreaks.com/topic/32179-solved-cant-install-memcache-for-php-439/#findComment-149365 Share on other sites More sharing options...
rolf Posted December 29, 2006 Author Share Posted December 29, 2006 To close this post cleanly, I want to say thanks. You were right. I upgraded to 4.4.4 and downloaded php_memcache.dll (shown there as suitable for php-4.4.1 (4_4)). It just worked immediately, without any complications.Sincere thanks for your help. Without it I might have struggled on with 4.3.9 a lot longer.Rolf. Quote Link to comment https://forums.phpfreaks.com/topic/32179-solved-cant-install-memcache-for-php-439/#findComment-149404 Share on other sites More sharing options...
rolf Posted December 30, 2006 Author Share Posted December 30, 2006 Ooops. I was a bit to fast. The installation works fine now and apache no longer complains, but now I have the next error. When I put the following line in my php 4.4.4 code, $memcache->connect('localhost') or die ("Could not connect");the I get the following errorCan't connect to localhost:11211, Unknown error (0)Any Idea what I'm doing wrong?Rolf Quote Link to comment https://forums.phpfreaks.com/topic/32179-solved-cant-install-memcache-for-php-439/#findComment-149753 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.