Install Memcached Php Windows

Posted on by admin
Install Memcached Php Windows Rating: 4,2/5 5047 reviews

I'm having huge problems installing memcached extension for php.Currently using:OS: Windows 10 x64PHP: 7.0.1 via XAMPPApache: 2.4.18 (Win32)I have successfully installed memcached in C:/memcached the service is running.But the problem starts when trying to add the memcache php extension. I've tried numerous versions of phpmemcache.dll and non seem to be working.I did include the extension in php.ini extension=phpmemcache.dllWhen i run php -m memcache is not listed and at the top i recieve the error:PHP Startup: Unable to load dynamic library 'C:xamppphpextphpmemcache.dll'- The specified module could not be found.And when I try running a test.php for memcache initialization i recive the Class not found exceptionThis is a huge problem, because I need it for running selenium tests. The memcached service doesn't actually install the PHP memcached extension for you. It only installs the memcached server used to store your cache.You'll need to download the first ( click on the blue Windows DLL link). Then you must add the extension=phpmemcache.dll line to the correct php.ini file for your SAPI. Also, note the extension DLL file needs to be placed in the correct path for your XAMPP installation.For Apache, simply create a script in your document root with the line.

  1. Install Memcached Php Windows Download

Install it via sudo apt-get install -y php-memcached after adding the php7 repository. If php-memcached was not installed, we can build it manually. (However, it's likely available to install via the php7.0-memcached package now).

Thank you so much for taking the time to write such a detailed response. Yes, I know it doesn't and i tried downloading every single.dll file they offered at PECL, but to no avail. The extension=phpmemcache.dll has been added in my php.ini, as the guides pointed out. And the dll file was placed along with the others C:xamppphpext.

Install Memcached Php Windows

But STILL memcache is not on the phpinfo or php -m list. The php -m list still gives the mentioned error. + I did restart Apache after making the changes.–Aug 23 '16 at 18:06.

A note to anyone who runs into issues with getting memcached working on Windows. For starters ensure that you have the right version of the memcached dll and that it is accessible. There is a wide selection available at and it is all too easy to choose the wrong version of memcached!.

If you are running PHP 5.5 you will additionally require php5.dll. You can get this. You may need to edit your environment PATH settings so this dll can be found. Go to My Computer-Properties-advanced and click on Environment Variables to view/edit the path.

You need to restart the computer if you edit this. Ensure that the memcached server is installed. Ctrl + Alt + Del and check that memcached is present in your list of services. If not you need to.install it from the Cmd prompt run as administrator (from the start menu, choose accessories, click on command prompt and choose to run as administrator)c:pathtomemcachedmemcached.exe -d install. follow this with c:pathtomemcachedmemcached.exe -d start or net start “memcached Server”. On my installation the former does not work. Likewise I am unable to start memcached from the Services tab of the Task Manager.

It is handy to be able to play around with memcached at a low level so, if required, and from the command prompt type telnet. Now open port 11211 and try using memcached.

Install Memcached Php Windows Download

It is also useful to be able to keep tabs on what is happening in memcached. Is by far the best tool for the job. I'm super confused about this.

Install memcached php extension windows

Memcached (with a 'd') and Memcache are not the same thing. Every other post I've read online over the past few hours suggests that Memcached (ending in a 'd') cannot be installed on Windows. Are you sure that you got Memcached working on Win? Could it work with PHP 7.0.1 x64 thread-safe?

I've been stressing for hours trying to get this to work but keep getting PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php-7.0.1-Win32-VC14-x64/ext/phpmemcache.dll' - The specified module could not be found. And/or Class 'Memcached' not found.–Apr 4 '17 at 0:51.