简体   繁体   English

在Windows Server上安装memcached时出现“致命错误:找不到类'Memcache'”

[英]“Fatal error: Class 'Memcache' not found” when installing memcached on Windows Server

I am using XAMPP 1.7.0. 我正在使用XAMPP 1.7.0。 I have followed these instructions to install memcached and it works fine for Windows 7 but when I have it installed in Windows Server it shows 我已经按照以下说明安装了memcached,它在Windows 7上运行正常,但是在Windows Server中安装它时,它显示

Fatal error: Class 'Memcache' not found 致命错误:找不到类“ Memcache”

I have tried many times to do this but am failing. 我已经尝试过很多次了,但是失败了。

This question has been solved here: Class 'Memcache' not found & PHP 此问题已在此处解决: 找不到类“ Memcache”和PHP

Your problem is probably that the dll file you used is not working with your PHP version; 您的问题可能是您使用的dll文件无法与您的PHP版本一起使用。

This is your solution (I quote from my own answer) 这是您的解决方案(我引用自己的回答)

I found the working dll files for PHP 5.4.4 我找到了适用于PHP 5.4.4的工作dll文件

I don't knowhow stable they are but they work for sure. 我不知道它们的稳定性如何,但是它们确实可以工作。 Credits goes to this link. 积分会转到此链接。

http://x32.elijst.nl/php_memcache-5.4-nts-vc9-x86.zip http://x32.elijst.nl/php_memcache-5.4-nts-vc9-x86.zip

http://x32.elijst.nl/php_memcache-5.4-vc9-x86.zip http://x32.elijst.nl/php_memcache-5.4-vc9-x86.zip

It is the 2.2.5.0 version, I noticed after compiling it (for PHP 5.4.4). 它是2.2.5.0版本,编译后(对于PHP 5.4.4)我注意到了。

Please note that it is not 2.2.6 but works. 请注意,它不是2.2.6,但可以。 I also mirrored them in my own FTP. 我也将它们镜像到自己的FTP中。 Mirror links: 镜像链接:

http://mustafabugra.com/resim/php_memcache-5.4-vc9-x86.zip http://mustafabugra.com/resim/php_memcache-5.4-nts-vc9-x86.zip http://mustafabugra.com/resim/php_memcache-5.4-vc9-x86.zip http://mustafabugra.com/resim/php_memcache-5.4-nts-vc9-x86.zip

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM