Class 'Memcached' not found-(php 5.4.9,windows 7)

若如初见. 提交于 2019-12-13 11:51:12

问题


I installed php-5.4.9(32 bit) on my windows 7 (64 bit machine) and configured it to run as a php-fpm process. I need memcached for my web application and hence installed memcached daemon and the necessary dll file in my php\ext folder. But when I try to run my web application folder I always get Class Memcached not found error. I tried googling and also referred to some stackoverflow but couldn't find the solution to my problem.

Can somebody please help me understand what I am doing wrong?



回答1:


memcached PECL extension is built on libmemcached, which has a libevent requirement. memcache PECL extension is built off an older spec of memcache, but not built on any lib.

memcache works everywhere, but memcached only builds on Linux/Mac OSX .

You may be able to build memcached PECL extension, but none currently exist.

If this is for development, maybe something like Vagrant to give yourself a Linux virtual server. This will allow you to run your development if your going to be using a Linux server later.



来源:https://stackoverflow.com/questions/29497463/class-memcached-not-found-php-5-4-9-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!