Jump to content

Recommended Posts

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.dll
extension_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.
Link to comment
https://forums.phpfreaks.com/topic/32179-solved-cant-install-memcache-for-php-439/
Share on other sites

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.
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 error

Can't connect to localhost:11211, Unknown error (0)

Any Idea what I'm doing wrong?

Rolf

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.