How to install PHP 7 extension "memcached" on Windows -


i'm having huge problems installing memcached extension php.

currently using:

os: windows 10 x64
php: 7.0.1 via xampp
apache: 2.4.18 (win32)

i have installed memcached in c:/memcached service running.

but problem starts when trying add memcache php extension. i've tried numerous versions of php_memcache.dll , non seem working.
i did include extension in php.ini extension=php_memcache.dll

when run php -m memcache not listed , @ top recieve error:

php startup: unable load dynamic library 'c:\xampp\php\ext\php_memcache.dll'
- specified module not found.

and when try running test.php memcache initialization recive class not found exception

this huge problem, because need running selenium tests.

the memcached service doesn't install php memcached extension you. installs memcached server used store cache.

you'll need download windows dll pecl repository first (click on blue windows dll link). must add extension=php_memcache.dll line correct php.ini file sapi. also, note extension dll file needs placed in correct path xampp installation.

for apache, create script in document root line <?php phpinfo(); , try loading in web browser. should see line @ top labeled loaded configuration (php.ini) gives full path loaded php.ini file. on windows path may appear different stated in phpinfo() if installed php through xampp. may need rely on xampp locate correct php.ini file.

for cli sapi, can use php.exe --ini same. again, may need rely on xampp package if has modified configuration path (since compile time directive).

after making changes php.ini need restart php changes take effect.


since you're using php 7 on windows it's important note compiled dll pecl may not work under apache windows, because you're more using theaded sapi. make sure downloading correct version. far can tell version compiled work php 5.6. github alternative, php 7, available @ https://github.com/nono303/php7-memcahe-dll mentioned in comments tested under non-thread safe. may able working cli scripts on windows.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -