在Windows下为PHP5.6安装memcache扩展

 时间:2026-02-16 14:16:27

1、使用phpinfo()函数查看PHP的版本信息,这将告诉我们使用64位还是32位的扩展,如下图

在Windows下为PHP5.6安装memcache扩展

2、根据版本信息,下载相应扩展,即php_memcache-3.0.8-5.6-ts-vc11-x86.zip,下载地址

https://windows.php.net/downloads/pecl/releases/memcache/3.0.8/

在Windows下为PHP5.6安装memcache扩展

3、下载之后解压,找到php_memcache.dll文件,并把它拷到php的ext目录下

在Windows下为PHP5.6安装memcache扩展

在Windows下为PHP5.6安装memcache扩展

4、打开php.ini,搜索.dll找到如下图中位置,并添加一条extension=php_memcache.dll,保存

在Windows下为PHP5.6安装memcache扩展

5、重启apache,并在phpinfo()函数页面搜索memcache,如果能搜到说明已经安装成功了。

在Windows下为PHP5.6安装memcache扩展

6、假如您使用了64位的php_memcache.dll,将不会安装成功,phpinfo()函数页面搜索memcache将搜不到。

  • 在Windows下为PHP5.5安装redis扩展
  • Windows下安装phpRedis扩展
  • Windows下安装php的redis扩展
  • Windows下PHP安装redis扩展
  • windows下安装redis和memcached扩展
  • 热门搜索
    怎么连接网络打印机 狗狗感冒了怎么办 心的繁体字怎么写 四川麻将怎么打 焗油膏怎么用 怎么脱毛 两个路由器怎么连接 火车票怎么退票 平安银行怎么贷款 交接单怎么写