Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am searching for php_memcache.dll and found the below links

http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/

http://downloads.php.net/pierre/

I tried all of them but still it shows warning sign for the dll like below . Is any one tried and have working dll , if so could you please help me and share the one you have ( memcache or memcached ) ? Thanks for your help .

enter image description here

share|improve this question

2 Answers 2

up vote 6 down vote accepted

The warning icon means one of 2 things when seen on the extension menu.

  1. There is a dll in the ext folder but there is no matching extension=php_memcache.dll entry in the PHP.INI file.
  2. There is a extension=xxx.dll in the PHP.INI file but no matching dll in the ext folder.

So if you copied the dll into \wamp\bin\php\phpx.y.z\ext folder then you need to add the extension=memcache.dll to the PHP.INI file. Remember this is not a default extension as you needed to download it yourself, so there will be no entry in the php.ini file for it either.

Also remember that you have to install MEMCACHED as the extension on its own is just an interface to the MEMCACHE service.

Also you will need the Thread Safe version of the memcache.dll to run with WampServers configuration of Apache and PHP.

Also make sure you have the right 32/64bit version of memcache.dll to match the version of WAMPServer you installed.

Also remember there are 2 php.ini files, to edit the one used by Apache, use the wampmanager menus like so :-

wampmanager -> PHP -> php.ini

That will launch your editor on \wamp\bin\php\phpForApache.ini

The other one \wamp\bin\php\php.ini is only used by the PHP CLI (Command Line Interface) and will have no effect on what is loaded to an Apache instance.

share|improve this answer
    
Thanks for the answer and sorry for late response . I missed out adding the entry in PHP.INI file . –  Bujji Aug 16 '14 at 19:06
    
@RiggsFolly Thank You! Solved my problem too! –  Junaid Atari Sep 28 '14 at 16:34
    
Need to remember to edit the correct php.ini in: \wamp\bin\apache2.4.9\bin\php.ini. I always edit the wrong one in the php folder –  John Magnolia Dec 16 '14 at 13:41
    
@JohnMagnolia Then use the wampmanager menu wampmanager->PHP->php.ini thats why its there. –  RiggsFolly Dec 16 '14 at 15:07
    
The linebreaks are all messed up using notepad and I prefer to vim edit –  John Magnolia Dec 16 '14 at 15:49

Not sure how you installed it... I'm using the same version of WAMP (2.5, Windows8, 64bit, PHP 5.5.12)

I copied php_memcache.dll to C:\wamp\bin\php\php5.5.12\ext (default installation), and then modified C:\wamp\bin\apache\apache2.4.9\bin\php.ini (also default installation) by adding

extension=php_memcache.dll

in the "Dynamic Extensions" section, restart WAMP services and it works fine. Just make sure you modified the right php.ini, it's not the one in php's directory.

BTW, I don't have php_memcache in the menu like yours as shown in the picture, but it's loaded and working.

share|improve this answer
    
Thanks for the answer and sorry for late response . I missed out adding the entry in PHP.INI file . I think RiggsFolly responded first and so I selected his answer . Thanks again –  Bujji Aug 16 '14 at 19:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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