[英]windows - php_memcache.dll - for PHP 5.4
我借用了对我没用的类似线程: PHP 5.3的php_memcache.dll
我使用最新版本的easyPHP for Windows设置服务器。 随之而来的是PHP 5.4。 我现在正在寻找一个对我有用的memcache.dll文件,我收到此错误
“PHP启动:memcache:无法初始化模块。使用模块API编译的模块= 20090626 PHP使用模块编译api = 20100525这些选项需要匹配”
任何PHP 5.4 memcache.dll文件的链接将不胜感激。
在上面提到的帖子中,他们为5.3和皮埃尔的版本添加了版本,但在那里我发现只有旧版本的dll
链接已经死了试试http://windows.php.net/downloads/pecl/releases/memcache/
你会在那里找到最新的memcache dll版本。 下载前您需要了解的内容:
- 操作系统版本(32位或64位)
- PHP编译器版本
- 安全支持
可以使用phpinfo()函数轻松检查PHP编译器版本和线程安全支持
谢谢Kevin Horst,测试并使用我的Win7盒子!
解决方案:只需下载Amazon AWS上托管的静态编译版本 ,然后解压缩。
这是php -i
一些输出:
phpinfo()
PHP Version => 5.4.0
System => Windows NT xxxx 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Build Date => Mar 7 2012 14:17:27
Compiler => MSVC9 (Visual C++ 2008)
Architecture => x86
Configure Command => cscript /nologo configure.js "--enable-cli" "--enable-memcache=shared"
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\Windows
Loaded Configuration File => C:\Users\xxxx\Downloads\UniServer\usr\local\php\php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
Zend Extension Build => API220100525,TS,VC9
PHP Extension Build => API20100525,TS,VC9
memcache
memcache support => enabled
Active persistent connections => 0
Version => 2.2.5
Revision => $Revision: 319585 $
任何正式编译的pecl模块都可以在http://windows.php.net/downloads/pecl/releases/下找到。
你需要知道你正在运行的php版本,即:5.3,5.4,5.5等等
你需要知道你的php版本是32还是64,即x86,x64
您可以从包含以下内容的文件中获取所有信息
<?php phpinfo()
并从Web服务器或命令行查看它,将输出发送到文件:
php -i > phpinfo.txt
注意:从命令行获取php-cli的数据很可能是使用相同的配置编译的
请注意,有Memcache和Memcached但是从php网站上只有memcache可用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.