Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php_memcache.dll for WAMP 2.5 - PHP : 5.5.12 - Window8:64 Bit - VC11

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

like image 310
Bujji Avatar asked Aug 15 '14 20:08

Bujji


3 Answers

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=php_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\php{version}\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.

like image 190
RiggsFolly Avatar answered Oct 18 '22 23:10

RiggsFolly


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.

like image 24
agou Avatar answered Oct 19 '22 00:10

agou


Even i got the same issue as shown above and was struggling from 2 days, you can find php.ini in 2 places under wamp server. enable the memcache dll extension in apache folder . i.e C:\wamp\bin\apache\apache2.4.9\bin add the below line

extension=php_memcache.dll

. Now restart your wamp and you can see the memcache enabled.

like image 44
3 revs Avatar answered Oct 19 '22 00:10

3 revs