The tuto you refer to is about installing memcached server on windows. It will not help with the php extension if you really need to build it, you can use pecl. Likely you will have to install the server to retrieve libmemcached.dll. Fix Bug #63142 - memcache client Segmentation fault - Fix Bug #63272 - Explicitly reserve range of flags in php_memcache.h so application code can use - Fix Bug #59602 - getExtendedStats fails on the host intermittently after restarting memcache. How can the answer be improved?
Active1 month ago
I am doing a project on Laravel. I'm trying to make a simple system that uses cache focused on memcache. When I started studying, I checked Laravel site first and then I found that using the Memcached cache requires the Memcached PECL package to be installed.
I searched through it and I got some problems during installation.
How to install
Tunakimemcache
?97k2424 gold badges224224 silver badges306306 bronze badges
ShwetaShweta64122 gold badges1111 silver badges3131 bronze badges
1 Answer
Here are the steps that should be followed when you install memcache.
- start your xampp.
- click on 'config' and open php.ini file.
search for
;extension=php_memcache.dll
If not found add
3. download the file
php_memecache.dll
from windows.php.net(make sure to check your php version and php_memcache.dll are same. Otherwise, it will through error.)unzip it and paste '.dll' file in the path xamppphpext, in my case it is F:xamppphpext (I had to rename the file to memcache.dll but when you take a look on other sites that describes the steps for this, they don't tell to rename, but I have done this in my project!).
- Download and installing Memcache server for windows
Download the Memcache.exe from jellycan
After completion of download, unzip and put the memcache.exe file into any desired directory of your choice (e.g. C:/memcached/). make sure folder name should be memcached
- Open the cmd prompt with “Run as Administrator” and execute the line to install
c:/memcached/memcached.exe -d install
then type
net start 'memcached server'
In case you get memcache is already installed. then just go through line
net start 'memcached server'
.Or
For the installation purpose you can go to the path where you have copied the memcache.exe. and double click to the file, memcache is installed, now just add line
net start 'memcached server'
and your memcache is enabled.- Restart Xampp Apache
- Restart Memcached:
C:Windowssystem32> net start “memcached”
The memcached service is starting.The memcached service was started successfully.C:Windowssystem32> net stop “memcached”
The memcached service is stopping.The memcached service was stopped successfully.
64122 gold badges1111 silver badges3131 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Not the answer you're looking for? Browse other questions tagged phplaravel-5memcached or ask your own question.
![Memcache Memcache](/uploads/1/2/6/0/126076421/633531705.png)
Active4 years ago
I am borrowing the similar thread that wasn't helpfull for me:php_memcache.dll for PHP 5.3
I setup a server using the latest version of easyPHP for Windows. With it came PHP 5.4. I'm now looking for a memcache.dll file that worked for me before and I get this error
'PHP Startup: memcache: Unable t initialize module.Module compiled with module API=20090626PHP compiled with module api=20100525These options need to match'
Any links to a PHP 5.4 memcache.dll file would be greatly appreciated.
In the mentioned thread they adressed version for 5.3 and pierre, but there I find only an older version of the dll
Community♦
DS_web_developerDS_web_developer1,65377 gold badges3838 silver badges6767 bronze badges
5 Answers
I found this link and it worked for me:
Or you can browse a list of the latest releases here and find an applicable version:
DevilrojDevilroj
I found out this:
Try the following if the above fails:
Arvind GuptaArvind Gupta
The link is dead tryhttp://windows.php.net/downloads/pecl/releases/memcache/
You'll find the latest memcache dll release in there. What you need to know before downloading:
-The OS version (32 or 64 bit)
-The PHP Compiler version
-Thread Safe support
The PHP Compiler version and thread safe support can be easily checked using the phpinfo() function
gadelkareemgadelkareem
Thanks Kevin Horst, tested and working on my Win7 box !
The solution : just download the statically compiled version hosted on Amazon AWS, and extract.
Here is some output from
Justin T.Justin T.php -i
:3,32211 gold badge1717 silver badges4242 bronze badges
Any pecl modules that have officially been compiled for windows you find under http://windows.php.net/downloads/pecl/releases/
- You need to know what php version you are running ie: 5.3,5.4,5.5 and so on
- You need to know if your php version is 32 or 64 ie x86, x64
- You need to know if the php version was compiled as thread safe or not ie:ts,nts
All the information you can get from a file with the following content
and view it from the webserveror from the command line sending the output to a file with:
Install Memcached Php Windows 7
NOTE: from the command line you get the data for php-cli witch most likely was compiled with the same configuration
And note that there is Memcache and Memcached but from the php website only memcache is available
stevensteven
protected by Community♦Nov 10 '12 at 3:43
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?