Class 'Memcached' not found-(php 5.4.9,win

2019-03-31 07:03发布

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?

My PHP Info 1


My PHP Info 2

1条回答
萌系小妹纸
2楼-- · 2019-03-31 07:16

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.

查看更多
登录 后发表回答