VPS侦探论坛

 找回密码
 注册
查看: 5154|回复: 2

自己安装memcache,结果重启PHP时,出现错误

[复制链接]
发表于 2014-8-29 10:33:46 | 显示全部楼层 |阅读模式

NOTICE: PHP message: PHP Warning:  PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match

好烦人,都不知道怎么办了,
装的时候,是这样装的
cd memcache-3.0.6
/usr/local/php/bin/phpize
./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir
make
make install
安装完后,出现 /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/
把这个加到 php.ini 后,重启PHP,就出现上面错误,
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-8-29 20:19:47 | 显示全部楼层


你的php是5.3,而你这个是编译出来的memcache.so是5.2的
可能编译时的这个目录原来就编译过没make clean,也可能源目录下面就有memcache.so
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-8-30 08:34:52 | 显示全部楼层

重启php 是不是还是你上面的 API 版本问题?

用  telnet 127.0.0.1 11211  能正常连接?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-27 12:57 , Processed in 0.026265 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表